Function at 0x438850
Capabilities:
Check for time delay via queryperformancecounter
Check for unmoving mouse cursor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47eba6
push eax
mov dword fs:[0], esp
sub esp, 0xb4
xor eax, eax
push ebx
mov dword [edi + 0x108], eax
mov dword [edi + 0x10c], eax
push esi
lea eax, [edi + 0x118]
push eax
mov byte [edi + 0x110], 1
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea eax, [edi + 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
cmp byte [edi + 0xb88], 0
jne 0x4388ca
mov eax, dword [edi + 0xc58]
mov edx, dword [eax]
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
cmp byte [edi + 0x8b0], 0
fild dword [esp + 0x28]
fstp dword [esp + 0x24]
fild dword [esp + 0x2c]
fstp dword [esp + 0x20]
fld dword [esp + 0x24]
fstp dword [edi + 0xb44]
fld dword [esp + 0x20]
fstp dword [edi + 0xb48]
je 0x438ebe
jmp 0x438900
cmp byte [edi + 0xb34], 0
je 0x438e89
lea ebx, [edi + 0x300]
mov eax, ebx
call fcn.0044e4b0
mov ecx, dword [edi + 0xb3c]
mov edx, ebx
call fcn.004514f0
push 0x4a8284
mov ecx, ebx
call fcn.004511e0
fild dword [edi + 0xb38]
fld1
lea esi, [edi + 0x120]
fdivrp st(1)
push esi
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fst dword [esp + 0x1c]
fld dword [esp + 0x1c]
fst dword [esp + 0x1c]
fst dword [esp + 0x20]
fstp dword [esp + 0x10]
fstp dword [esp + 0x7c]
fld dword [esp + 0x1c]
fstp dword [esp + 0x80]
fld dword [esp + 0x20]
fstp dword [esp + 0x84]
fld dword [esp + 0x10]
fstp dword [esp + 0x88]
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esi]
mov esi, dword [esi + 4]
mov ecx, eax
sub ecx, dword [edi + 0x128]
mov edx, esi
sbb edx, dword [edi + 0x12c]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edx
fild qword [esp + 0x60]
mov dword [edi + 0x128], eax
fild qword [edi + 0x118]
lea eax, [esp + 0x28]
push eax
mov dword [edi + 0x12c], esi
fdivp st(1)
fstp qword [edi + 0xca0]
fild dword [edi + 0xb38]
fdivr qword [edi + 0xca0]
fstp qword [edi + 0xca0]
call dword [sym.imp.USER32.dll_GetCursorPos]
cmp byte [edi + 0xb88], 0
jne 0x438a00
mov eax, dword [edi + 0xc58]
mov edx, dword [eax]
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
cmp dword [edi + 0xb38], 0
fld dword [esp + 0x24]
fstp dword [esp + 0x1c]
fld dword [esp + 0x20]
fstp dword [esp + 0x18]
fild dword [esp + 0x28]
fstp dword [esp + 0x24]
fild dword [esp + 0x2c]
fstp dword [esp + 0x20]
jle 0x438c7e
fld dword [esp + 0x24]
mov dword [esp + 0xc], 1
fsub dword [esp + 0x1c]
fstp qword [esp + 0xb0]
fld dword [esp + 0x20]
fsub dword [esp + 0x18]
fstp qword [esp + 0xa8]
fld qword [edi + 0xca0]
mov ecx, dword [edi + 0x7f4]
fmul qword [edi + 0xcd8]
mov edx, ebx
mov dword [edi + 0xb40], 0
fsub qword [edi + 0xcb0]
fst qword [edi + 0xcb8]
fld st(0)
fadd qword [edi + 0xca8]
fst qword [edi + 0xcc0]
fsub qword [edi + 0xca8]
fsubrp st(1)
fstp qword [edi + 0xcb0]
fld qword [edi + 0xcc0]
fstp qword [edi + 0xca8]
fild dword [esp + 0xc]
fstp dword [esp + 0x14]
fild dword [edi + 0xb38]
fstp dword [esp + 0x10]
fld dword [esp + 0x14]
fld qword [esp + 0xb0]
fmul st(1)
fld dword [esp + 0x10]
fld st(0)
fdivp st(2)
fld dword [esp + 0x1c]
faddp st(2)
fxch st(1)
fstp dword [edi + 0xb44]
fxch st(1)
fmul qword [esp + 0xa8]
fdivrp st(1)
fadd dword [esp + 0x18]
fstp dword [edi + 0xb48]
call fcn.004514f0
push 0
mov esi, edi
call fcn.00438fc0
test al, al
jne 0x438ee4
mov eax, 2
cmp dword [ebx + 0x204], eax
jne 0x438b25
mov dword [ebx + 0x224], 0
and dword [ebx + 0x1fc], 0xfffffffd
jmp 0x438b31
mov dword [ebx + 0x224], eax
or dword [ebx + 0x1fc], eax
cmp dword [ebx + 0x208], eax
jne 0x438b4c
mov dword [ebx + 0x228], 0
and dword [ebx + 0x1fc], 0xfffffffb
jmp 0x438b59
mov dword [ebx + 0x228], eax
or dword [ebx + 0x1fc], 4
cmp dword [edi + 0xb3c], 0xffffffff
jne 0x438b68
push edi
call fcn.00425520
mov ecx, dword [edi + 0xb3c]
mov edx, ebx
call fcn.004514f0
mov ecx, dword [edi + 0x7f4]
mov edx, ebx
call fcn.004513d0
fild dword [edi + 0x88c]
cmp dword [ebx + 0x460], 0
fstp dword [esp + 0x10]
fild dword [edi + 0x890]
fstp dword [esp + 0x14]
je 0x438eed
mov eax, dword [ebx + 0x460]
fld dword [eax + 0x10]
mov ecx, dword [0x4a82d4]
fld dword [esp + 0x10]
xor esi, esi
fld st(0)
lea edx, [esp + 0x78]
faddp st(2)
fxch st(1)
fstp dword [esp + 0x10]
fld dword [eax + 0x14]
mov eax, dword [0x4a82d8]
fld dword [esp + 0x14]
push eax
fld st(0)
push ecx
faddp st(2)
push ecx
fxch st(1)
lea ecx, [esp + 0x94]
fstp dword [esp + 0x20]
fxch st(1)
fstp dword [esp + 0x94]
fstp dword [esp + 0x98]
fld dword [esp + 0x1c]
fstp dword [esp + 0x9c]
fld dword [esp + 0x20]
fstp dword [esp + 0xa0]
fldz
fstp dword [esp]
push ebx
call fcn.00452300
mov eax, 2
cmp dword [ebx + 0x204], eax
jne 0x438c33
mov dword [ebx + 0x224], esi
and dword [ebx + 0x1fc], 0xfffffffd
jmp 0x438c3f
mov dword [ebx + 0x224], eax
or dword [ebx + 0x1fc], eax
mov eax, 6
cmp dword [ebx + 0x208], eax
jne 0x438c5b
mov dword [ebx + 0x228], esi
and dword [ebx + 0x1fc], 0xfffffffb
jmp 0x438c68
mov dword [ebx + 0x228], eax
or dword [ebx + 0x1fc], 4
mov eax, dword [esp + 0xc]
inc eax
mov dword [esp + 0xc], eax
dec eax
cmp eax, dword [edi + 0xb38]
jl 0x438a53
cmp byte [edi + 0x8b0], 0
je 0x438ebe
mov eax, dword [edi + 0x744]
test eax, eax
jne 0x438cf9
xor ecx, ecx
mov edx, ebx
call fcn.004514f0
mov ecx, dword [edi + 0xb3c]
mov edx, ebx
call fcn.004513d0
fild dword [edi + 0x88c]
mov edx, dword [0x4a8280]
mov eax, dword [0x4a827c]
fstp dword [esp + 0x10]
push edx
fild dword [edi + 0x890]
push eax
push 0x4a49d0
push ecx
fstp dword [esp + 0x24]
xor esi, esi
fld dword [esp + 0x20]
lea eax, [esp + 0x60]
fstp dword [esp + 0x60]
mov edx, ebx
fld dword [esp + 0x24]
fstp dword [esp + 0x64]
fldz
fstp dword [esp]
call fcn.00452280
jmp 0x438dcd
cmp eax, 1
jne 0x438dcd
mov eax, dword [edi + 0xc34]
mov dword [esp + 0xc], eax
cmp eax, dword [edi + 0xc38]
je 0x438dcd
jmp 0x438d24
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push ecx
mov ecx, ebx
call fcn.00453040
xor ecx, ecx
mov edx, ebx
call fcn.004514f0
mov ecx, dword [edi + 0xb3c]
mov edx, ebx
call fcn.004513d0
cmp dword [ebx + 0x460], 0
je 0x438f10
mov eax, dword [ebx + 0x460]
fld dword [eax + 0x10]
mov edx, dword [0x4a82d8]
fldz
push edx
fadd st(1), st(0)
xor esi, esi
fxch st(1)
mov edx, 0x4a49d0
fstp dword [esp + 0x14]
fadd dword [eax + 0x14]
mov eax, dword [0x4a82d4]
push eax
push ecx
fstp dword [esp + 0x20]
lea ecx, [esp + 0xa4]
fldz
fst dword [esp + 0xa4]
fst dword [esp + 0xa8]
fld dword [esp + 0x1c]
fstp dword [esp + 0xac]
fld dword [esp + 0x20]
fstp dword [esp + 0xb0]
fstp dword [esp]
push ebx
call fcn.00452300
mov eax, dword [esp + 0xc]
add eax, 4
mov dword [esp + 0xc], eax
cmp eax, dword [edi + 0xc38]
jne 0x438d20
mov eax, ebx
call fcn.00450ef0
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xa8]
push eax
call edx
mov esi, eax
mov dword [ebx + 0x4b0], esi
test esi, esi
jl 0x438f62
mov eax, dword [edi + 0x4e4]
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea ecx, [esp + 0x70]
push ecx
mov dword [edi + 0x8c8], eax
call esi
mov eax, ebx
call fcn.00450ef0
mov eax, dword [ebx + 8]
mov edx, dword [eax]
push 0
push 0
push 0
push 0
push eax
mov eax, dword [edx + 0x44]
call eax
lea ecx, [esp + 0x58]
push ecx
mov dword [ebx + 0x4b0], eax
mov byte [ebx + 0x465], 0
call esi
mov edx, dword [esp + 0x58]
sub edx, dword [esp + 0x70]
mov eax, dword [esp + 0x5c]
sbb eax, dword [esp + 0x74]
cmp byte [edi + 0xb35], 0
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], eax
fild qword [esp + 0x68]
mov byte [edi + 0xb36], 0
fild qword [edi + 0x118]
fdivp st(1)
fadd qword [edi + 0x130]
fstp qword [edi + 0x130]
je 0x438eb1
mov byte [edi + 0xb35], 0
mov byte [edi + 0xb34], 0
jmp 0x438eb1
push 1
mov esi, edi
call fcn.00438fc0
test al, al
jne 0x438ebe
mov byte [edi + 0xb35], al
cmp byte [edi + 0xb36], al
je 0x438eb1
mov byte [edi + 0xb36], al
mov byte [edi + 0xb34], 1
cmp byte [edi + 0x8b0], 0
jne 0x438900
mov edx, dword [edi]
mov eax, dword [edx + 0x98]
push 0
push 4
push 0xffffffffffffffff
mov ecx, edi
call eax
mov ecx, dword [esp + 0xbc]
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [edi + 0x8b0], 0
jmp 0x438ebe
push 0x80004005
lea ecx, [esp + 0x34]
push ecx
mov edx, str.Cant_draw_a_quad_using_this_overload_with_no_texture_set
call fcn.0044b870
push 0x4979fc
lea edx, [esp + 0x34]
push edx
call fcn.004637cb
push 0x39
push str.Cant_draw_a_quad_using_this_overload_with_no_texture_set
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
call fcn.00414d30
mov dword [esp + 0xc4], 0
mov dword [esp + 0x4c], 0x80004005
mov dword [esp + 0xc4], 0xffffffff
push 0x4979fc
lea eax, [esp + 0x34]
push eax
call fcn.004637cb
push 0x13
push str.Could_not_end_scene
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
call fcn.00414d30
mov dword [esp + 0xc4], 1
mov dword [esp + 0x4c], esi
mov dword [esp + 0xc4], 0xffffffff
push 0x4979fc
lea ecx, [esp + 0x34]
push ecx
call fcn.004637cb
int3