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

Disassembly:
push 0xffffffffffffffff
push 0x4c4d68
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e880c]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x2c]
xor ebp, ebp
cmp ecx, ebp
je 0x486463
push ebp
call fcn.00488ce0
test al, al
je 0x486463
xor eax, eax
jmp 0x4866cf
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x68]
movzx ebx, ax
shr eax, 0x10
mov edi, eax
xor eax, eax
cmp ecx, 0x200
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
jne 0x4866c0
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], 0x1f
mov dword [esp + 0x24], 0xcc
mov dword [esp + 0x28], 0x5d
mov dword [esp + 0x2c], 8
mov dword [esp + 0x30], 0xeb
mov dword [esp + 0x34], 0x80
mov dword [esp + 0x38], 0xf9
push edi
push ebx
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x4864fc
mov eax, 0x3e
add dword [esp + 0x20], eax
add dword [esp + 0x28], eax
add ebp, 1
cmp ebp, 3
jl 0x4864d1
jmp 0x486632
mov eax, dword [0x4e702c]
mov dword [esp + 0x70], eax
mov edi, dword [esi + 0x120]
imul edi, dword [esi + 0x114]
add edi, ebp
cmp edi, dword [esi + 0x110]
mov dword [esp + 0x60], 0
jl 0x48655b
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4e7028]
mov dword [esp + 0x60], 0xffffffff
je 0x486632
lea edi, [eax - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x486632
push edi
call fcn.0048c37a
add esp, 4
jmp 0x486632
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x48657e
mov ecx, dword [esi + 0x40]
sub ecx, eax
mov eax, 0xa57eb503
imul ecx
add edx, ecx
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x486583
call fcn.0048c687
mov ebx, dword [esi + 0x3c]
mov eax, dword [esi + 0x3c]
mov ebp, edi
imul ebp, ebp, 0x630
add ebx, ebp
test eax, eax
je 0x4865b3
mov ecx, dword [esi + 0x40]
sub ecx, eax
mov eax, 0xa57eb503
imul ecx
add edx, ecx
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x4865b8
call fcn.0048c687
mov edx, dword [esi + 0x3c]
add ebx, 0x18
push ebx
lea eax, [edx + ebp + 0x428]
push eax
lea ecx, [esp + 0x78]
push str._s:__s
push ecx
call fcn.00484260
mov ebx, dword [esp + 0x80]
mov eax, dword [esi + 0x1f4]
add esp, 0x10
lea edi, [esi + 0x1f4]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x486604
lea edx, [esp + 0x70]
push edx
mov ecx, edi
call fcn.0040d0b0
lea eax, [ebx - 0xc]
cmp eax, dword [0x4e7028]
mov dword [esp + 0x60], 0xffffffff
je 0x48662e
lea edi, [ebx - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x48662e
push edi
call fcn.0048c37a
add esp, 4
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov edi, dword [sym.imp.USER32.dll_PtInRect]
push ebp
push ebx
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x48], 0xb0
mov dword [esp + 0x4c], 5
mov dword [esp + 0x50], 0xc8
mov dword [esp + 0x54], 0x1d
call edi
test eax, eax
je 0x486679
mov ecx, esi
call fcn.00485cc0
mov byte [esi + 0x14c], 1
jmp 0x4866b2
push ebp
push ebx
lea eax, [esp + 0x44]
push eax
call edi
test eax, eax
je 0x48669a
mov ecx, dword [esi + 4]
push 1
push 0
mov dword [esi + 0x10c], 1
push ecx
jmp 0x4866ba
mov ecx, esi
mov dword [esi + 0x10c], 0
call fcn.00485bd0
mov byte [esi + 0x14c], 0
mov edx, dword [esi + 4]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esp + 0x74]
mov dword [eax], 0
mov eax, 1
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0x10