Function at 0x4511e0
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 0x4515c8
je 0x451363
add edx, 0xfffffffb
cmp edx, 0x7f
ja case.default.0x451374
movzx eax, byte [edx + 0x4519ac]
jmp dword [eax*4 + 0x45198c]
mov ecx, dword [edi + 0x2a3d8]
test ecx, ecx
je case.default.0x451374
cmp dword [edi + 0x2a38c], 0
jne case.default.0x451374
cmp dword [edi + 0x2a384], 0
je case.default.0x451374
mov eax, dword [ecx]
push 0
push 0
push 0
push 0
push ecx
call dword [eax + 0x3c]
jmp case.default.0x451374
mov dword [esi + 0x18], 0x64
mov dword [esi + 0x1c], 0x64
jmp case.default.0x451374
cmp ecx, 4
je 0x451292
cmp ecx, 1
je 0x451292
mov eax, 1
mov dword [edi + 0x2a388], eax
jmp case.default.0x451374
xor eax, eax
mov dword [edi + 0x2a388], eax
jmp case.default.0x451374
cmp dword [edi + 0x2a388], 0
je case.default.0x451374
cmp dword [edi + 0x2a38c], 0
je case.default.0x451374
cmp dword [edi + 0x2a384], 0
jne case.default.0x451374
push 0
call dword [sym.imp.USER32.dll_SetCursor]
cmp dword [edi + 0x2a5a0], 0
je 0x4512e5
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.0x451374
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.0x451374
mov ecx, edi
call fcn.00453460
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.0x451374
jmp dword [eax*4 + 0x451a2c]
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.00459510
jmp case.default.0x451374
cmp dword [edi + 0x2a390], 0
jne 0x45146d
cmp dword [0x593808], 0
jne 0x4513ea
lea eax, [esp + 0x10]
mov dword [0x593808], 1
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov dword [0x593818], eax
test eax, eax
je 0x45143c
mov ecx, dword [esp + 0x10]
mov dword [0x5937e0], ecx
mov ecx, dword [esp + 0x14]
mov dword [0x5937e4], ecx
jmp 0x4513ef
mov eax, dword [0x593818]
test eax, eax
je 0x45143c
mov esi, dword [0x5937f8]
mov eax, esi
or eax, dword [0x5937fc]
jne 0x451414
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov esi, dword [0x5937f8]
push 0
push 0xa
push dword [0x5937e4]
push dword [0x5937e0]
call fcn.005399c0
add esi, eax
mov dword [0x5937f8], esi
adc dword [0x5937fc], edx
jmp 0x451532
movsd xmm0, qword [0x593820]
ucomisd xmm0, qword [0x56a7f8]
lahf
test ah, 0x44
jp 0x451460
call dword [sym.imp.WINMM.dll_timeGetTime]
movsd xmm0, qword [0x593820]
addsd xmm0, qword [0x56a928]
jmp 0x45152a
cmp dword [0x593808], 0
jne 0x4514aa
lea eax, [esp + 0x10]
mov dword [0x593808], 1
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov dword [0x593818], eax
test eax, eax
je 0x4514f2
mov ecx, dword [esp + 0x10]
mov dword [0x5937e0], ecx
mov ecx, dword [esp + 0x14]
mov dword [0x5937e4], ecx
jmp 0x4514af
mov eax, dword [0x593818]
test eax, eax
je 0x4514f2
mov ecx, dword [0x5937f8]
mov eax, ecx
mov edx, dword [0x5937fc]
or eax, edx
jne 0x4514d8
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 [0x5937f8], ecx
mov dword [0x5937fc], edx
mov dword [0x593810], ecx
mov dword [0x593814], edx
jmp 0x451532
movsd xmm0, qword [0x593820]
ucomisd xmm0, qword [0x56a7f8]
lahf
test ah, 0x44
jp 0x45152a
call dword [sym.imp.WINMM.dll_timeGetTime]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x56ad20]
mulsd xmm0, qword [0x56a8d0]
movsd qword [0x593820], xmm0
mov dword [edi + 0x2a390], 0
mov dword [edi + 0x2a394], 1
jmp case.default.0x451374
cmp dword [edi + 0x2a388], 0
je 0x4515a5
cmp dword [edi + 0x2a38c], 0
je 0x4515a5
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 0x34]
mov ecx, edi
call fcn.004522f0
test eax, eax
js 0x4515a5
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 0x4515a5
cmp dword [edi + 0x2a38c], 0
je 0x4515a5
mov ecx, edi
call fcn.00452000
test eax, eax
js 0x451863
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 0x45169e
je 0x451690
mov eax, edx
sub eax, 0x112
je 0x451649
sub eax, 0xee
je 0x451601
sub eax, 0x11
jne case.default.0x451374
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 0x34]
jmp case.default.0x451374
cmp dword [edi + 0x2a388], 0
je case.default.0x451374
cmp dword [edi + 0x2a38c], 0
je case.default.0x451374
cmp dword [edi + 0x2a3d8], 0
je case.default.0x451374
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.0x451374
cmp ecx, 0xf030
ja 0x451665
je case.0x451223.132
sub ecx, 0xf000
je case.0x451223.132
sub ecx, 0x10
je case.0x451223.132
jmp case.default.0x451374
sub ecx, 0xf100
je case.0x451223.132
sub ecx, 0x70
jne case.default.0x451374
cmp dword [edi + 0x2a384], 0
jne case.default.0x451374
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.0x451374
mov eax, edx
sub eax, 0x218
je 0x45195e
sub eax, 0x19
je 0x45188a
sub eax, 1
jne case.default.0x451374
cmp dword [edi + 0x2a390], eax
je 0x4517a6
cmp dword [0x593808], eax
jne 0x451705
lea eax, [esp + 0x10]
mov dword [0x593808], 1
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov dword [0x593818], eax
test eax, eax
je 0x451756
mov ecx, dword [esp + 0x10]
mov dword [0x5937e0], ecx
mov ecx, dword [esp + 0x14]
mov dword [0x5937e4], ecx
jmp 0x45170a
mov eax, dword [0x593818]
test eax, eax
je 0x451756
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 [0x5937f8]
mov eax, edx
mov dword [0x593810], esi
sbb eax, dword [0x5937fc]
add dword [0x5937f0], ecx
movlpd qword [0x5937f8], xmm0
adc dword [0x5937f4], eax
mov dword [0x593814], edx
jmp 0x4517a6
call dword [sym.imp.WINMM.dll_timeGetTime]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x56ad20]
mulsd xmm1, qword [0x56a8d0]
movaps xmm0, xmm1
movsd qword [0x5937e8], xmm1
subsd xmm0, qword [0x593820]
addsd xmm0, qword [0x593800]
movsd qword [0x593800], xmm0
xorps xmm0, xmm0
movsd qword [0x593820], xmm0
cmp dword [edi + 0x2a388], 0
je case.default.0x451374
cmp dword [edi + 0x2a384], 0
je case.default.0x451374
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 0x451836
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.0x451374
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.00451d90
test eax, eax
jns 0x45187b
push 1
push 0x8200000c
mov ecx, edi
call fcn.004534c0
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov dword [edi + 0x2a38c], 1
jmp case.default.0x451374
cmp dword [edi + 0x2a390], 0
je case.default.0x451374
cmp dword [0x593808], 0
jne 0x4518d4
lea eax, [esp + 0x10]
mov dword [0x593808], 1
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov dword [0x593818], eax
test eax, eax
je 0x45191c
mov ecx, dword [esp + 0x10]
mov dword [0x5937e0], ecx
mov ecx, dword [esp + 0x14]
mov dword [0x5937e4], ecx
jmp 0x4518d9
mov eax, dword [0x593818]
test eax, eax
je 0x45191c
mov ecx, dword [0x5937f8]
mov eax, ecx
mov edx, dword [0x5937fc]
or eax, edx
jne 0x451902
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 [0x5937f8], ecx
mov dword [0x5937fc], edx
mov dword [0x593810], ecx
mov dword [0x593814], edx
jmp case.default.0x451374
movsd xmm0, qword [0x593820]
ucomisd xmm0, qword [0x56a7f8]
lahf
test ah, 0x44
jp 0x451954
call dword [sym.imp.WINMM.dll_timeGetTime]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x56ad20]
mulsd xmm0, qword [0x56a8d0]
movsd qword [0x593820], xmm0
jmp case.default.0x451374
test ecx, ecx
je 0x4512e5
cmp ecx, 7
je 0x4512e5
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