Function at 0x40eca0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
mov eax, dword [0x530010]
xor eax, esp
mov dword [esp + 0x84], eax
cmp dword [ebp + 0x1c], 0
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
push esi
mov esi, ecx
mov dword [esp + 8], edx
mov ecx, dword [ebp + 0x10]
push edi
mov dword [esp + 0x24], ecx
mov dword [esp + 8], eax
jne 0x40f7d1
mov edi, dword [ebp + 0xc]
cmp edi, 5
jne 0x40ed80
push dword [esi + 0x160]
movsx eax, dx
mov dword [esp + 0x34], eax
mov eax, edx
shr eax, 0x10
cwde
mov dword [esi + 0x16c], 1
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x40ef12
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x40ef12
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40ef12
push eax
push ecx
push 0
push 0
lea ecx, [esi + 4]
mov dword [esi + 0x1a0], 1
call fcn.004192f0
mov eax, dword [esi + 0xcc]
mov ecx, dword [esi + 0xc8]
sub eax, ecx
test eax, 0xfffffffc
je 0x40ed71
mov eax, dword [esp + 0x20]
mov ecx, dword [ecx]
push eax
push dword [esp + 0x34]
push 0
push 0
call fcn.004192f0
mov dword [esi + 0x1a0], 0
jmp 0x40ef12
cmp edi, 0x317
jne 0x40ed97
mov dword [esi + 0x16c], 1
jmp 0x40ef16
cmp edi, 0xf
jne 0x40edb3
push ecx
mov ecx, esi
mov dword [esi + 0x16c], 1
call fcn.0041b9f0
jmp 0x40ef12
cmp edi, 0x18
jne 0x40edda
mov dword [esi + 0x16c], 0
test ecx, ecx
je 0x40ef16
mov eax, dword [esi + 4]
lea ecx, [esi + 4]
push 0
call dword [eax + 0x4c]
jmp 0x40ef12
cmp edi, 1
jne 0x40edf8
push ecx
mov ecx, esi
mov dword [esi + 0x16c], edi
call fcn.0041c6f0
mov ecx, dword [esp + 8]
mov dword [ecx], eax
jmp 0x40ef1c
cmp edi, 2
jne 0x40ee1b
push 0
push 0
push 0
push edi
lea ecx, [esi + 4]
mov dword [esi + 0x16c], 1
call fcn.00419910
jmp 0x40ef12
cmp edi, 0x14
jne 0x40ee35
mov dword [esi + 0x16c], 1
mov dword [eax], 1
jmp 0x40ef1c
cmp edi, 0x2a3
jne 0x40ee75
push 0
push 0
mov dword [esi + 0x16c], 1
mov dword [esi + 0x194], 0
mov dword [esi + 0x1b4], edi
mov dword [esi + 0x1b8], 0
mov dword [esi + 0x1bc], 0
push edi
jmp 0x40ef04
cmp edi, 0x200
jne 0x40ef5a
cmp dword [esi + 0x194], 0
movzx eax, dx
mov dword [esi + 0x16c], 1
mov dword [esp + 0x30], eax
jne 0x40eed6
mov eax, dword [esi + 0x160]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x58], 0x10
mov dword [esp + 0x5c], 2
mov dword [esp + 0x64], 0
call dword [sym.imp.USER32.dll_TrackMouseEvent]
mov edx, dword [esp + 0xc]
mov dword [esi + 0x194], eax
mov eax, dword [esp + 0x30]
mov ecx, edx
movzx eax, ax
mov edx, dword [esp + 0x24]
and ecx, 0xffff0000
or ecx, eax
mov dword [esi + 0x1b4], 0
push ecx
push edx
mov dword [esi + 0x1b8], edx
mov dword [esi + 0x1bc], ecx
push 0x200
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x68]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x44]
mov eax, dword [esp + 8]
mov dword [eax], 0
cmp dword [esi + 0x16c], 0
jne 0x40f797
mov ecx, dword [esp + 0x24]
cmp edi, 6
jne 0x40f133
mov dword [esi + 0x16c], 1
test cx, cx
je 0x40f0a3
push dword [esi + 0x160]
call dword [sym.imp.USER32.dll_SetFocus]
jmp case.0x40f0c6.514
cmp edi, 0x20a
jne 0x40ef29
mov eax, edx
movsx ecx, dx
shr eax, 0x10
cwde
mov dword [esp + 0x34], eax
lea eax, [esp + 0x30]
push eax
push dword [esi + 0x160]
mov dword [esi + 0x16c], 1
mov dword [esp + 0x38], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
movzx ecx, word [esp + 0x34]
movzx eax, word [esp + 0x30]
mov edx, dword [esi]
shl ecx, 0x10
or ecx, eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, eax
movzx eax, ax
and ecx, 0xffff0000
or ecx, eax
mov eax, dword [edx + 0x68]
push ecx
push edi
mov ecx, esi
call eax
mov ecx, dword [esp + 8]
neg eax
sbb eax, eax
neg eax
mov dword [ecx], eax
cmp dword [esi + 0x16c], 0
jne 0x40f797
mov ecx, dword [esp + 0x24]
push dword [esp + 0xc]
mov dword [esi + 0x16c], 1
push ecx
push edi
mov ecx, esi
call fcn.0041c8d0
mov ecx, dword [esp + 8]
mov dword [ecx], eax
cmp dword [esi + 0x16c], 0
jne 0x40f797
mov ecx, dword [esp + 0x24]
lea eax, [edi - 0x100]
cmp eax, 9
ja 0x40f03a
push dword [esp + 0xc]
mov dword [esi + 0x16c], 1
push ecx
push edi
mov ecx, esi
call fcn.0041ca60
mov ecx, dword [esp + 8]
mov dword [ecx], eax
cmp dword [esi + 0x16c], 0
jne 0x40f797
lea eax, [edi - 0x10d]
cmp eax, 2
ja 0x40f072
push dword [esp + 0xc]
mov ecx, esi
mov dword [esi + 0x16c], 1
push dword [esp + 0x28]
push edi
call fcn.0041ca60
mov ecx, dword [esp + 8]
mov dword [ecx], eax
cmp dword [esi + 0x16c], 0
jne 0x40f797
cmp edi, 0x286
jne 0x40f190
push dword [esp + 0xc]
mov ecx, esi
mov dword [esi + 0x16c], 1
push dword [esp + 0x28]
push edi
call fcn.0041ca60
mov ecx, dword [esp + 8]
mov dword [ecx], eax
jmp 0x40f78e
push 0
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0x1b4]
add eax, 0xfffffdff
cmp eax, 8
ja case.0x40f0c6.514
movzx eax, byte [eax + 0x40f834]
jmp dword [eax*4 + 0x40f824]
push dword [esi + 0x1bc]
push dword [esi + 0x1b8]
push 0x202
push dword [esi + 0x160]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.0x40f0c6.514
push dword [esi + 0x1bc]
push dword [esi + 0x1b8]
push 0x205
push dword [esi + 0x160]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.0x40f0c6.514
push dword [esi + 0x1bc]
push dword [esi + 0x1b8]
push 0x208
push dword [esi + 0x160]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.0x40f0c6.514
cmp edi, 7
jne 0x40f153
mov eax, dword [esi]
mov ecx, esi
push 0
push 0
push edi
mov dword [esi + 0x16c], 1
call dword [eax + 0x68]
jmp case.0x40f0c6.514
cmp edi, 8
jne 0x40f173
mov eax, dword [esi]
mov ecx, esi
push 0
push 0
push edi
mov dword [esi + 0x16c], 1
call dword [eax + 0x68]
jmp case.0x40f0c6.514
cmp edi, 0x200
jb 0x40f005
cmp edi, 0x20e
ja 0x40f005
jmp 0x40efd7
cmp edi, 0x1c
jne 0x40f1bd
mov ecx, dword [esp + 0xc]
mov eax, dword [esi]
push ecx
push dword [esp + 0x28]
mov ecx, esi
mov dword [esi + 0x16c], 1
mov eax, dword [eax + 0x68]
push edi
call eax
mov ecx, dword [esp + 8]
mov dword [ecx], eax
jmp 0x40f78e
cmp edi, 0x20
jne 0x40f25e
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0xc]
mov dword [esi + 0x16c], 1
movzx edx, ax
cmp ecx, dword [esi + 0x160]
je 0x40f1f0
mov eax, dword [esp + 8]
xor ecx, ecx
mov dword [eax], ecx
jmp 0x40f78e
cmp edx, 1
jne 0x40f23f
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [esp + 0x40]
push eax
push dword [esi + 0x160]
call dword [sym.imp.USER32.dll_ScreenToClient]
movzx ecx, word [esp + 0x44]
movzx eax, word [esp + 0x40]
mov edx, dword [esi]
shl ecx, 0x10
or ecx, eax
push ecx
mov eax, dword [edx + 0x68]
mov ecx, esi
push 0
push 0x20
call eax
neg eax
sbb ecx, ecx
mov eax, dword [esp + 8]
neg ecx
mov dword [eax], ecx
jmp 0x40f78e
shr eax, 0x10
push eax
push edx
push 0x20
push ecx
call dword [sym.imp.USER32.dll_DefWindowProcW]
neg eax
sbb ecx, ecx
mov eax, dword [esp + 8]
neg ecx
mov dword [eax], ecx
jmp 0x40f78e
cmp edi, 0x113
jne 0x40f3b1
mov edi, dword [esp + 0x24]
mov dword [esi + 0x16c], 1
test edi, edi
jns 0x40f77a
mov eax, edi
and eax, 0xffffff
mov dword [esp + 0xc], eax
mov dword [esp + 0x20], eax
je 0x40f39f
call fcn.0041f340
xor ecx, ecx
mov dword [esp + 0x24], eax
push eax
mov dword [esp + 0x34], ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x44]
push eax
lea ecx, [ecx + 0x1c]
call fcn.0041f4b0
mov ecx, dword [esp + 0x48]
cmp byte [ecx + 0xd], 0
jne 0x40f395
mov eax, dword [esp + 0xc]
cmp eax, dword [ecx + 0x10]
jb 0x40f395
mov eax, dword [esp + 0x24]
cmp ecx, dword [eax + 0x1c]
je 0x40f2ec
mov ecx, dword [ecx + 0x14]
mov dword [esp + 0x30], ecx
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [esp + 0x30]
test edx, edx
je 0x40f39f
shr edi, 0x18
lea eax, [esi + 4]
mov dword [esp + 0x24], edi
mov ecx, esi
and edi, 0x7f
neg ecx
sbb ecx, ecx
and ecx, eax
cmp edx, ecx
jne 0x40f37f
cmp edi, 1
jne 0x40f369
push dword [esi + 0x19c]
mov ecx, dword [esi + 0x1d8]
lea edx, [esp + 0x58]
push dword [esi + 0x1d4]
push dword [esi + 0x1d0]
mov eax, dword [ecx]
push dword [esi + 0x1dc]
push edx
call dword [eax + 0xc]
mov eax, dword [esi + 4]
lea ecx, [esi + 4]
lea edx, [esp + 0x54]
push edx
call dword [eax + 0x4c]
xor eax, eax
cmp dword [esi + 0x19c], eax
sete al
mov dword [esi + 0x19c], eax
jmp case.0x40f0c6.514
mov eax, dword [esp + 0x24]
mov ecx, esi
mov edx, dword [esi]
and al, 0x7f
movzx eax, al
push eax
call dword [edx + 0x6c]
jmp case.0x40f0c6.514
push 0
push 0
push edi
push 0x113
mov ecx, edx
call fcn.00419910
jmp case.0x40f0c6.514
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
push dword [esi + 0x160]
call dword [sym.imp.USER32.dll_KillTimer]
jmp case.0x40f0c6.514
cmp edi, 0x86
jne 0x40f3d2
mov eax, dword [esp + 8]
mov dword [esi + 0x16c], 1
mov dword [eax], 1
jmp 0x40f78e
cmp edi, 0x83
jne 0x40f3fe
push dword [esp + 0xc]
mov ecx, esi
mov dword [esi + 0x16c], 1
push dword [esp + 0x28]
call fcn.0041cb40
mov ecx, dword [esp + 8]
mov dword [ecx], eax
jmp 0x40f78e
cmp edi, 0x84
jne 0x40f571
mov eax, dword [esp + 0xc]
movsx ecx, ax
shr eax, 0x10
cwde
mov dword [esp + 0x44], eax
lea eax, [esp + 0x40]
push eax
push dword [esi + 0x160]
mov dword [esi + 0x16c], 1
mov dword [esp + 0x48], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
test byte [esi + 0x1a8], 1
je 0x40f52e
push dword [esi + 0x160]
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
jne 0x40f52e
mov eax, dword [esi]
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call dword [eax + 0x78]
lea eax, [esp + 0x54]
push eax
push dword [esi + 0x160]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
cmp edx, eax
mov eax, dword [esp + 0x60]
jle 0x40f4c2
sub eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
cmp edx, eax
jle 0x40f4a6
mov eax, dword [esp + 8]
mov ecx, 0x11
mov dword [eax], ecx
jmp 0x40f78e
cmp edx, dword [esp + 0x34]
mov eax, 0xe
mov ecx, 0xb
cmovl ecx, eax
mov eax, dword [esp + 8]
mov dword [eax], ecx
jmp 0x40f78e
sub eax, dword [esp + 0x3c]
cmp edx, dword [esp + 0x30]
jge 0x40f500
mov edx, dword [esp + 0x44]
cmp edx, eax
jle 0x40f4e4
mov eax, dword [esp + 8]
mov ecx, 0x10
mov dword [eax], ecx
jmp 0x40f78e
cmp edx, dword [esp + 0x34]
mov eax, 0xd
mov ecx, 0xa
cmovl ecx, eax
mov eax, dword [esp + 8]
mov dword [eax], ecx
jmp 0x40f78e
mov ecx, dword [esp + 0x44]
cmp ecx, eax
jle 0x40f518
mov eax, dword [esp + 8]
mov ecx, 0xf
mov dword [eax], ecx
jmp 0x40f78e
cmp ecx, dword [esp + 0x34]
jge 0x40f536
mov eax, dword [esp + 8]
mov ecx, 0xc
mov dword [eax], ecx
jmp 0x40f78e
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push ecx
push edx
lea ecx, [esi + 4]
call fcn.004184a0
test eax, eax
je 0x40f55b
mov eax, dword [eax + 0xc]
xor ecx, ecx
cmp eax, dword [esi + 0x10]
mov eax, dword [esp + 8]
sete cl
inc ecx
mov dword [eax], ecx
jmp 0x40f78e
xor eax, eax
xor ecx, ecx
cmp eax, dword [esi + 0x10]
mov eax, dword [esp + 8]
sete cl
inc ecx
mov dword [eax], ecx
jmp 0x40f78e
cmp edi, 0x24
jne 0x40f6a3
push 0
push dword [esi + 0x160]
mov dword [esi + 0x16c], 1
call dword [sym.imp.USER32.dll_MonitorFromWindow]
test eax, eax
je case.0x40f0c6.514
lea ecx, [esp + 0x64]
mov dword [esp + 0x64], 0x28
xorps xmm0, xmm0
mov dword [esp + 0x88], 0
push ecx
push eax
movups xmmword [esp + 0x70], xmm0
movups xmmword [esp + 0x80], xmm0
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
movups xmm0, xmmword [esp + 0x78]
mov eax, dword [esi]
lea ecx, [esp + 0x54]
push ecx
movaps xmmword [esp + 0x34], xmm0
mov ecx, esi
movups xmm0, xmmword [esp + 0x6c]
movaps xmmword [esp + 0x14], xmm0
call dword [eax + 0x74]
movaps xmm2, xmmword [esp + 0x30]
movaps xmm1, xmmword [esp + 0x10]
movaps xmm0, xmm2
mov edi, dword [esp + 0x54]
movd eax, xmm2
movd ecx, xmm1
psrldq xmm0, 4
mov dword [esp + 0x30], eax
sub eax, ecx
psrldq xmm1, 4
mov ecx, dword [esp + 0xc]
cdq
xor eax, edx
sub eax, edx
sub eax, edi
mov dword [ecx + 0x10], eax
movd eax, xmm0
movaps xmm0, xmm2
movd ecx, xmm1
psrldq xmm0, 8
mov dword [esp + 0x20], eax
sub eax, ecx
psrldq xmm2, 0xc
mov ecx, dword [esp + 0xc]
cdq
xor eax, edx
sub eax, edx
sub eax, dword [esp + 0x58]
mov dword [ecx + 0x14], eax
movd eax, xmm0
sub eax, dword [esp + 0x30]
cdq
xor eax, edx
sub eax, edx
add eax, dword [esp + 0x5c]
lea ecx, [eax + edi]
mov edi, dword [esp + 0xc]
movd eax, xmm2
sub eax, dword [esp + 0x20]
cdq
xor eax, edx
mov dword [edi + 8], ecx
sub eax, edx
mov dword [edi + 0x20], ecx
add eax, dword [esp + 0x60]
lea ecx, [esp + 0x24]
add eax, dword [esp + 0x58]
mov dword [edi + 0xc], eax
mov dword [edi + 0x24], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x70]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
jmp case.0x40f0c6.514
cmp edi, 0x215
jne 0x40f764
mov eax, dword [esp + 0xc]
mov dword [esi + 0x16c], 1
cmp eax, dword [esi + 0x160]
je case.0x40f0c6.514
mov eax, dword [esi + 0xe0]
mov dword [esp + 0x20], eax
test eax, eax
je case.0x40f0c6.514
mov dword [esp + 0x40], eax
call fcn.0041f340
mov edi, eax
xor eax, eax
push edi
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x28]
lea ecx, [edi + 0x1c]
push eax
call fcn.0041f4b0
mov eax, dword [esp + 0x2c]
cmp byte [eax + 0xd], 0
jne 0x40f751
mov ecx, dword [esp + 0x20]
cmp ecx, dword [eax + 0x10]
jb 0x40f751
cmp eax, dword [edi + 0x1c]
je 0x40f724
mov eax, dword [eax + 0x14]
mov dword [esp + 0x30], eax
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x30]
mov dword [esi + 0xe0], 0
test eax, eax
je case.0x40f0c6.514
push 0
push 0
push 0
push 0x215
mov ecx, eax
call fcn.00419910
jmp case.0x40f0c6.514
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esi + 0xe0], 0
jmp case.0x40f0c6.514
cmp edi, 0x46
jne 0x40f775
mov dword [esi + 0x16c], 1
jmp case.0x40f0c6.514
cmp edi, 0x3d
jne 0x40f7b2
mov dword [esi + 0x16c], 0
mov eax, dword [esp + 8]
mov dword [eax], 0
cmp dword [esi + 0x16c], 0
je 0x40f7d1
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.00476a44
mov esp, ebp
pop ebp
ret 0x18
cmp edi, 0x4e
jne 0x40f7d1
mov esi, dword [esp + 0xc]
cmp dword [esi + 8], 0xfffffff4
jne 0x40f7d1
mov edi, dword [esi]
test edi, edi
jne 0x40f7e9
mov eax, dword [esp + 8]
mov dword [eax], 1
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.00476a44
mov esp, ebp
pop ebp
ret 0x18
push edi
call dword [sym.imp.USER32.dll_IsWindow]
push esi
push dword [esp + 0x28]
push 0x204e
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 8]
pop edi
pop esi
mov dword [ecx], eax
mov eax, 1
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.00476a44
mov esp, ebp
pop ebp
ret 0x18