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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cf7a8
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x500770]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0xa0], 0
jne 0x415677
cmp dword [ebp + 8], 0xffffffff
je 0x415677
mov ecx, dword [esi + 0x20]
mov eax, 1
lea edx, [esp + 0x3c]
push edx
mov dword [esi + 0xa0], eax
mov dword [esp + 0x40], 0x10
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], 2
mov dword [esp + 0x4c], eax
call dword [sym.imp.COMCTL32.dll__TrackMouseEvent]
mov dword [esi + 0xa0], eax
cmp dword [esi + 0x80], 0
je 0x415918
mov eax, dword [esi + 0x58]
mov ecx, dword [esi + 0x60]
mov edi, dword [esi + 0x70]
sub edi, dword [esi + 0x6c]
add eax, eax
sub ecx, eax
mov eax, dword [esi + 0x74]
imul eax, ecx
add edi, 1
xor edx, edx
div edi
cmp eax, 6
jge 0x4156ab
mov eax, 6
cmp ecx, 6
jge 0x4156b2
xor eax, eax
sub ecx, eax
mov edi, ecx
mov ecx, esi
call fcn.00490706
test al, 1
je 0x4156cc
mov ecx, dword [ebp + 0x10]
sub ecx, dword [esi + 0x88]
jmp 0x4156d5
mov ecx, dword [ebp + 0xc]
sub ecx, dword [esi + 0x84]
test edi, edi
jne 0x4156dd
xor eax, eax
jmp 0x4156ef
mov eax, dword [esi + 0x70]
sub eax, dword [esi + 0x6c]
sub eax, dword [esi + 0x74]
add eax, 1
imul eax, ecx
cdq
idiv edi
mov edi, dword [esi + 0x8c]
add edi, eax
mov eax, dword [esi + 0x6c]
cmp edi, eax
jl 0x41570d
mov ecx, dword [esi + 0x70]
sub ecx, eax
sub ecx, dword [esi + 0x74]
lea eax, [ecx + 1]
cmp edi, eax
jle 0x41570f
mov edi, eax
cmp edi, dword [esi + 0x7c]
je 0x415b91
mov edx, dword [esi + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.00494a4a
mov ebx, eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x14], ebx
call fcn.004944df
xor eax, eax
cmp ebx, eax
mov dword [esp + 0x88], eax
je 0x415747
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x30]
call fcn.00494a58
mov eax, dword [esi + 0x54]
mov ecx, dword [esp + 0x30]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
push 5
push esi
lea ebx, [esp + 0x54]
mov dword [esp + 0x20], eax
call fcn.00414eb0
push 5
push esi
lea ebx, [esp + 0x44]
mov dword [esi + 0x7c], edi
call fcn.00414eb0
mov ecx, esi
mov edi, 3
call fcn.00490706
test al, 1
jne 0x41579b
mov edi, 7
mov eax, dword [esi + 0x58]
mov ecx, eax
imul ecx, edi
add edi, 1
imul edi, eax
add ecx, 2
xor ebx, ebx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x64], edi
mov ecx, esi
mov dword [esp + 0x60], ebx
mov dword [esp + 0x68], eax
lea edi, [ebx + 2]
call fcn.00490706
test al, 1
jne 0x4157d1
mov edi, 6
mov eax, dword [esi + 0x58]
mov ecx, eax
imul ecx, edi
add edi, 1
imul edi, eax
add ecx, 2
lea edx, [eax + eax]
lea eax, [eax + eax*2]
mov dword [esp + 0x6c], ecx
mov ecx, esi
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], eax
call fcn.00490706
test al, 1
mov ecx, dword [esi + 0x58]
je 0x415836
mov eax, dword [esp + 0x48]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x58]
cmp eax, ecx
mov dword [esp + 0x1c], ebx
jle 0x41582c
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], eax
jmp 0x415864
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], ecx
jmp 0x415864
mov eax, dword [esp + 0x44]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x54]
cmp eax, ecx
mov dword [esp + 0x20], ebx
jle 0x41585c
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], eax
jmp 0x415864
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ecx
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x30]
push edx
push edi
push esi
lea ebx, [esp + 0x2c]
call fcn.004152c0
lea eax, [esp + 0x2c]
push eax
push edi
lea eax, [esp + 0x74]
lea ecx, [esp + 0x44]
mov edx, esi
call fcn.00415370
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [edi + 4]
mov ecx, dword [esi + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, esi
call fcn.00490706
mov edx, dword [esi + 0x20]
push edx
mov ebx, eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.0048c8d6
movzx ecx, word [esi + 0x7c]
mov edx, dword [esi + 0x20]
mov eax, dword [eax + 0x20]
shl ecx, 0x10
push edx
or ecx, 5
push ecx
and ebx, 1
or ebx, 0x114
push ebx
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x88], 0xffffffff
call fcn.00494ad2
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi + 0x90]
cmp eax, 0xffffffff
je 0x415995
push eax
push esi
lea ebx, [esp + 0x64]
call fcn.00414eb0
push eax
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edx
push eax
lea ecx, [esp + 0x74]
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
mov ecx, dword [esi + 0x90]
neg eax
sbb eax, eax
add eax, 1
test ecx, ecx
mov dword [esi + 0x9c], eax
je 0x41596d
cmp ecx, 1
jne 0x415b91
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 2
push eax
call fcn.00415f70
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edx
push eax
mov eax, esi
call fcn.00414930
mov ecx, dword [esi + 0x98]
mov edi, eax
cmp edi, ecx
mov dword [esp + 0x14], edi
je 0x415b91
cmp ecx, 0xffffffff
je 0x415aa1
cmp ecx, 5
jne 0x415a91
mov ecx, esi
call fcn.0040df90
lea ecx, [esp + 0x3c]
mov edi, eax
call fcn.004944df
push edi
lea ecx, [esp + 0x40]
mov dword [esp + 0x8c], 1
call fcn.00408750
mov ecx, dword [esi + 0x54]
mov edx, dword [esp + 0x40]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
push 5
push esi
lea ebx, [esp + 0x64]
mov dword [esp + 0x20], eax
call fcn.00414eb0
mov ecx, esi
mov ebx, 2
call fcn.00490706
test al, 1
jne 0x415a25
mov ebx, 6
mov eax, dword [esi + 0x58]
mov ecx, eax
imul ecx, ebx
add ebx, 1
imul ebx, eax
mov dword [esp + 0x78], eax
add ecx, 2
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x70], ecx
push edi
lea eax, [esp + 0x74]
lea ecx, [esp + 0x64]
mov edx, esi
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], ebx
call fcn.00415370
push edi
mov ecx, esi
call fcn.004163a0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x40]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x88], 0xffffffff
call fcn.00494ad2
mov edi, dword [esp + 0x14]
jmp 0x415aa1
test ecx, ecx
je 0x415a9a
cmp ecx, 1
jne 0x415aa1
push 0
call fcn.00415f70
cmp edi, 0xffffffff
je 0x415b8b
cmp edi, 5
jne 0x415b79
mov ecx, esi
call fcn.0040df90
lea ecx, [esp + 0x1c]
mov edi, eax
call fcn.004944df
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x8c], 2
call fcn.00408750
mov eax, dword [esi + 0x54]
mov ecx, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
push 5
push esi
lea ebx, [esp + 0x54]
mov dword [esp + 0x20], eax
call fcn.00414eb0
mov ecx, esi
mov ebx, 2
call fcn.00490706
test al, 1
jne 0x415b0e
mov ebx, 6
mov eax, dword [esi + 0x58]
mov ecx, eax
imul ecx, ebx
add ebx, 1
imul ebx, eax
lea edx, [eax + eax]
mov dword [esp + 0x70], eax
add ecx, 2
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x7c], edx
mov dword [esp + 0x70], ecx
push edi
lea eax, [esp + 0x74]
lea ecx, [esp + 0x54]
mov edx, esi
mov dword [esp + 0x7c], ebx
call fcn.00415370
push edi
mov ecx, esi
call fcn.004163a0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x88], 0xffffffff
call fcn.00494ad2
mov edi, dword [esp + 0x14]
jmp 0x415b8b
test edi, edi
je 0x415b82
cmp edi, 1
jne 0x415b8b
push 1
mov ecx, edi
call fcn.00415f70
mov dword [esi + 0x98], edi
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc