Function at 0x451ee0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x28
mov edx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
mov dword [esp + 4], esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0xc], ecx
cmp edx, 0x111
ja 0x4522c8
je 0x452063
add edx, 0xfffffffb
cmp edx, 0x7f
ja case.default.0x452074
movzx eax, byte [edx + 0x4526ac]
jmp dword [eax*4 + 0x45268c]
mov ecx, dword [edi + 0x2a3d8]
test ecx, ecx
je case.default.0x452074
cmp dword [edi + 0x2a38c], 0
jne case.default.0x452074
cmp dword [edi + 0x2a384], 0
je case.default.0x452074
mov eax, dword [ecx]
push 0
push 0
push 0
push 0
push ecx
call dword [eax + 0x3c]
jmp case.default.0x452074
mov dword [esi + 0x18], 0x64
mov dword [esi + 0x1c], 0x64
jmp case.default.0x452074
cmp ecx, 4
je 0x451f92
cmp ecx, 1
je 0x451f92
mov eax, 1
mov dword [edi + 0x2a388], eax
jmp case.default.0x452074
xor eax, eax
mov dword [edi + 0x2a388], eax
jmp case.default.0x452074
cmp dword [edi + 0x2a388], 0
je case.default.0x452074
cmp dword [edi + 0x2a38c], 0
je case.default.0x452074
cmp dword [edi + 0x2a384], 0
jne case.default.0x452074
push 0
call dword [sym.imp.USER32.dll_SetCursor]
cmp dword [edi + 0x2a5a0], 0
je 0x451fe5
mov eax, dword [edi + 0x2a3d8]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
cmp dword [edi + 0x2a384], 0
je case.default.0x452074
push 0
push dword [ebp + 8]
mov eax, esi
shr eax, 0x10
push eax
movzx eax, si
push eax
push 0x40
push 0
push 0x8e
push 0
call dword [sym.imp.USER32.dll_LoadMenuA]
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call dword [sym.imp.USER32.dll_TrackPopupMenuEx]
jmp case.default.0x452074
mov ecx, edi
call fcn.004543f0
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call dword [sym.imp.USER32.dll_DestroyMenu]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
movzx eax, cx
add eax, 0xffff63be
cmp eax, 4
ja case.default.0x452074
jmp dword [eax*4 + 0x45272c]
mov edx, dword [edi + 0x2a390]
xor eax, eax
test edx, edx
sete al
xor ecx, ecx
test edx, edx
mov dword [edi + 0x2a390], eax
setne cl
inc ecx
call fcn.0045a230
jmp case.default.0x452074
cmp dword [edi + 0x2a390], 0
jne 0x45216d
cmp dword [0x596be0], 0
jne 0x4520ea
lea eax, [esp + 0x10]
mov dword [0x596be0], 1
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov dword [0x596bf0], eax
test eax, eax
je 0x45213c
mov ecx, dword [esp + 0x10]
mov dword [0x596bb8], ecx
mov ecx, dword [esp + 0x14]
mov dword [0x596bbc], ecx
jmp 0x4520ef
mov eax, dword [0x596bf0]
test eax, eax
je 0x45213c
mov esi, dword [0x596bd0]
mov eax, esi
or eax, dword [0x596bd4]
jne 0x452114
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov esi, dword [0x596bd0]
push 0
push 0xa
push dword [0x596bbc]
push dword [0x596bb8]
call fcn.0053c300
add esi, eax
mov dword [0x596bd0], esi
adc dword [0x596bd4], edx
jmp 0x452232
movsd xmm0, qword [0x596bf8]
ucomisd xmm0, qword [0x56da00]
lahf
test ah, 0x44
jp 0x452160
call dword [sym.imp.WINMM.dll_timeGetTime]
movsd xmm0, qword [0x596bf8]
addsd xmm0, qword [0x56db18]
jmp 0x45222a
cmp dword [0x596be0], 0
jne 0x4521aa
lea eax, [esp + 0x10]
mov dword [0x596be0], 1
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov dword [0x596bf0], eax
test eax, eax
je 0x4521f2
mov ecx, dword [esp + 0x10]
mov dword [0x596bb8], ecx
mov ecx, dword [esp + 0x14]
mov dword [0x596bbc], ecx
jmp 0x4521af
mov eax, dword [0x596bf0]
test eax, eax
je 0x4521f2
mov ecx, dword [0x596bd0]
mov eax, ecx
mov edx, dword [0x596bd4]
or eax, edx
jne 0x4521d8
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [0x596bd0], ecx
mov dword [0x596bd4], edx
mov dword [0x596be8], ecx
mov dword [0x596bec], edx
jmp 0x452232
movsd xmm0, qword [0x596bf8]
ucomisd xmm0, qword [0x56da00]
lahf
test ah, 0x44
jp 0x45222a
call dword [sym.imp.WINMM.dll_timeGetTime]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x56deb0]
mulsd xmm0, qword [0x56dad8]
movsd qword [0x596bf8], xmm0
mov dword [edi + 0x2a390], 0
mov dword [edi + 0x2a394], 1
jmp case.default.0x452074
cmp dword [edi + 0x2a388], 0
je 0x4522a5
cmp dword [edi + 0x2a38c], 0
je 0x4522a5
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 0x34]
mov ecx, edi
call fcn.004530b0
test eax, eax
js 0x4522a5
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 0x34]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
cmp dword [edi + 0x2a388], 0
je 0x4522a5
cmp dword [edi + 0x2a38c], 0
je 0x4522a5
mov ecx, edi
call fcn.00452d10
test eax, eax
js 0x452563
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
push 0
push 0
push 0x10
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
cmp edx, 0x212
ja 0x45239e
je 0x452390
mov eax, edx
sub eax, 0x112
je 0x452349
sub eax, 0xee
je 0x452301
sub eax, 0x11
jne case.default.0x452074
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 0x34]
jmp case.default.0x452074
cmp dword [edi + 0x2a388], 0
je case.default.0x452074
cmp dword [edi + 0x2a38c], 0
je case.default.0x452074
cmp dword [edi + 0x2a3d8], 0
je case.default.0x452074
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [esp + 0x10]
push eax
push dword [edi + 0x2a3cc]
call dword [sym.imp.USER32.dll_ScreenToClient]
jmp case.default.0x452074
cmp ecx, 0xf030
ja 0x452365
je case.0x451f23.132
sub ecx, 0xf000
je case.0x451f23.132
sub ecx, 0x10
je case.0x451f23.132
jmp case.default.0x452074
sub ecx, 0xf100
je case.0x451f23.132
sub ecx, 0x70
jne case.default.0x452074
cmp dword [edi + 0x2a384], 0
jne case.default.0x452074
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 0x34]
jmp case.default.0x452074
mov eax, edx
sub eax, 0x218
je 0x45265e
sub eax, 0x19
je 0x45258a
sub eax, 1
jne case.default.0x452074
cmp dword [edi + 0x2a390], eax
je 0x4524a6
cmp dword [0x596be0], eax
jne 0x452405
lea eax, [esp + 0x10]
mov dword [0x596be0], 1
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov dword [0x596bf0], eax
test eax, eax
je 0x452456
mov ecx, dword [esp + 0x10]
mov dword [0x596bb8], ecx
mov ecx, dword [esp + 0x14]
mov dword [0x596bbc], ecx
jmp 0x45240a
mov eax, dword [0x596bf0]
test eax, eax
je 0x452456
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov esi, dword [esp + 0x10]
xorps xmm0, xmm0
mov edx, dword [esp + 0x14]
mov ecx, esi
sub ecx, dword [0x596bd0]
mov eax, edx
mov dword [0x596be8], esi
sbb eax, dword [0x596bd4]
add dword [0x596bc8], ecx
movlpd qword [0x596bd0], xmm0
adc dword [0x596bcc], eax
mov dword [0x596bec], edx
jmp 0x4524a6
call dword [sym.imp.WINMM.dll_timeGetTime]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x56deb0]
mulsd xmm1, qword [0x56dad8]
movaps xmm0, xmm1
movsd qword [0x596bc0], xmm1
subsd xmm0, qword [0x596bf8]
addsd xmm0, qword [0x596bd8]
movsd qword [0x596bd8], xmm0
xorps xmm0, xmm0
movsd qword [0x596bf8], xmm0
cmp dword [edi + 0x2a388], 0
je case.default.0x452074
cmp dword [edi + 0x2a384], 0
je case.default.0x452074
movups xmm0, xmmword [edi + 0x2a4e8]
lea eax, [edi + 0x2a4d8]
lea esi, [edi + 0x2a4e8]
push eax
push dword [edi + 0x2a3cc]
movaps xmmword [esp + 0x28], xmm0
movaps xmmword [esp + 0x18], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
push esi
push dword [edi + 0x2a3cc]
call dword [sym.imp.USER32.dll_GetClientRect]
movaps xmm1, xmmword [esp + 0x20]
mov edx, dword [edi + 0x2a4f0]
movaps xmm0, xmm1
sub edx, dword [esi]
psrldq xmm0, 8
movd ecx, xmm0
movd eax, xmm1
sub ecx, eax
cmp ecx, edx
jne 0x452536
mov ecx, dword [edi + 0x2a4f4]
mov eax, dword [esp + 0x1c]
sub ecx, dword [edi + 0x2a4ec]
sub eax, dword [esp + 0x14]
cmp eax, ecx
je case.default.0x452074
mov eax, dword [edi + 0x2a4f4]
mov ecx, edi
sub eax, dword [edi + 0x2a4ec]
mov dword [edi + 0x2a38c], 0
mov dword [edi + 0x2a398], edx
mov dword [edi + 0x2a39c], eax
call fcn.00452aa0
test eax, eax
jns 0x45257b
push 1
push 0x8200000c
mov ecx, edi
call fcn.00454450
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov dword [edi + 0x2a38c], 1
jmp case.default.0x452074
cmp dword [edi + 0x2a390], 0
je case.default.0x452074
cmp dword [0x596be0], 0
jne 0x4525d4
lea eax, [esp + 0x10]
mov dword [0x596be0], 1
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov dword [0x596bf0], eax
test eax, eax
je 0x45261c
mov ecx, dword [esp + 0x10]
mov dword [0x596bb8], ecx
mov ecx, dword [esp + 0x14]
mov dword [0x596bbc], ecx
jmp 0x4525d9
mov eax, dword [0x596bf0]
test eax, eax
je 0x45261c
mov ecx, dword [0x596bd0]
mov eax, ecx
mov edx, dword [0x596bd4]
or eax, edx
jne 0x452602
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [0x596bd0], ecx
mov dword [0x596bd4], edx
mov dword [0x596be8], ecx
mov dword [0x596bec], edx
jmp case.default.0x452074
movsd xmm0, qword [0x596bf8]
ucomisd xmm0, qword [0x56da00]
lahf
test ah, 0x44
jp 0x452654
call dword [sym.imp.WINMM.dll_timeGetTime]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x56deb0]
mulsd xmm0, qword [0x56dad8]
movsd qword [0x596bf8], xmm0
jmp case.default.0x452074
test ecx, ecx
je 0x451fe5
cmp ecx, 7
je 0x451fe5
push dword [esp + 8]
push dword [esp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DefWindowProcA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10