alloc(newmem,4048,"SbieDll.dll"+2BB40)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:

push rax // address
mov rax,newmem+500 // address 0x0 value vtmem
//mov byte ptr [rcx+6C],01 // test

cmp [rbx],00000780 // 1920
jne if01
//mov [rbx],000003B2 // 952 > 720 -8
mov [rbx],000002C0 // 952 > 720 -8
if01:

cmp [rbx+4],00000438 // 1080 > 00000440 1088
jne if02
//mov [rbx+4],000001EF // 534 > 540 -39
mov [rbx+4],000001EB // 534 > 540 -39
if02:


pop rax

mov [rsp+148],000002C0 // x
mov [rsp+14C],000001EB // y


exit:

mov [rsp+10],rbx
//mov [rsp+18],rbp
//push rdi
//push r14
//push r15

jmp returnhere

"SbieDll.dll"+2BB40:
jmp newmem
returnhere:

