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

Disassembly:
sub esp, 0x5c
push ebx
push ebp
mov ebp, dword [esp + 0x6c]
push esi
push edi
mov esi, eax
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
je 0x487f03
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0x10
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 8]
lea edi, [esi + 8]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov dword [esp + 0x28], eax
mov eax, dword [ebp]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
mov ecx, dword [ebp]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [edi + 4]
mov edx, dword [edi]
mov ecx, dword [edi + 8]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], edx
mov edx, dword [edi + 0xc]
lea eax, [esp + 0x18]
mov dword [esp + 0x34], ecx
push eax
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], edx
push ecx
lea ebx, [esp + 0x1c]
lea edx, [esp + 0x28]
call fcn.00488280
mov eax, dword [esp + 0x78]
sub eax, dword [esp + 0x14]
mov edx, dword [ebp]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x7c]
sub eax, dword [esp + 0x18]
push edx
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_GetDC]
push 0
push 0
mov dword [esp + 0x7c], eax
push 0
lea eax, [esp + 0x58]
push eax
mov dword [esp + 0x88], 0
call dword [sym.imp.USER32.dll_GetMessageW]
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [ebp]
jne 0x4880a9
mov eax, dword [esp + 0x50]
cmp eax, 0x202
ja 0x48823d
je 0x487fdc
cmp eax, 0x100
je 0x488060
cmp eax, 0x200
jne 0x488248
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov ebx, dword [esp + 0x20]
test ebx, ebx
mov eax, dword [edi + 8]
mov dword [esp + 0x3c], ecx
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
je 0x488026
mov ecx, dword [esi + 0x24]
movsx eax, dx
cmp eax, ecx
jle 0x48811d
mov ecx, dword [esi + 0x2c]
cmp eax, ecx
jge 0x4880fe
sub eax, dword [esp + 0x14]
mov dword [ebx], eax
mov edx, dword [esp + 0x58]
mov ebx, dword [esp + 0x70]
cmp dword [esp + 0x1c], 0
je 0x488169
mov ecx, dword [esi + 0x28]
shr edx, 0x10
movsx eax, dx
cmp eax, ecx
jle 0x488156
mov ecx, dword [esi + 0x30]
cmp eax, ecx
jge 0x488142
sub eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [edx], eax
jmp 0x488169
cmp dword [esp + 0x54], 0x1b
jne 0x488253
cmp dword [esp + 0x78], 0
je 0x48808e
mov edx, dword [esi]
mov edx, dword [edx]
mov eax, 1
push ebp
mov dword [esi + 0x60], eax
mov dword [esi + 0x5c], eax
mov eax, dword [esp + 0x78]
push eax
push 0
push edi
mov ecx, esi
call edx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [edi], eax
mov eax, dword [esp + 0x38]
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
mov ecx, dword [esp + 0x74]
mov edx, dword [ebp]
push ecx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
xor eax, eax
cmp dword [esp + 0x78], eax
jne 0x4880db
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [edi], ecx
mov ecx, dword [esp + 0x34]
mov dword [edi + 4], edx
mov edx, dword [esp + 0x38]
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
mov dword [esi + 0x60], eax
mov dword [esi + 0x5c], eax
push edi
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_EqualRect]
pop edi
neg eax
pop esi
sbb eax, eax
pop ebp
add eax, 1
pop ebx
add esp, 0x5c
ret 0x10
mov ebx, dword [esp + 0x70]
cmp ebx, 1
je 0x488115
cmp ebx, 2
je 0x488115
cmp ebx, 5
jne 0x48802a
mov dword [esi + 0x10], ecx
jmp 0x48802a
jge 0x488026
mov eax, dword [esp + 0x70]
test eax, eax
je 0x488139
cmp eax, 3
je 0x488139
cmp eax, 7
jne 0x488026
mov dword [edi], ecx
mov ebx, eax
jmp 0x48802a
cmp ebx, 2
je 0x488151
cmp ebx, 3
je 0x488151
cmp ebx, 6
jne 0x488169
mov dword [esi + 0x14], ecx
jmp 0x488169
jge 0x488169
test ebx, ebx
je 0x488166
cmp ebx, 1
je 0x488166
cmp ebx, 4
jne 0x488169
mov dword [esi + 0xc], ecx
cmp ebx, 8
jne 0x488181
mov eax, dword [edi]
add eax, dword [esp + 0x24]
mov ecx, dword [esi + 0xc]
add ecx, dword [esp + 0x28]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
mov edx, dword [esi]
mov eax, dword [edx + 4]
push edi
push ebx
mov ecx, esi
call eax
xor ecx, ecx
mov ebx, 0x202
cmp dword [esp + 0x50], ebx
push edi
sete cl
lea edx, [esp + 0x40]
push edx
mov dword [esi + 0x60], ecx
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
je 0x4881b3
cmp dword [esi + 0x60], 0
je 0x488217
cmp dword [esp + 0x78], 0
je 0x4881d6
mov ecx, dword [esp + 0x74]
mov eax, dword [esi]
mov eax, dword [eax]
push ebp
push ecx
push 0
lea edx, [esp + 0x48]
push edx
mov ecx, esi
mov dword [esi + 0x5c], 1
call eax
mov edx, dword [esi]
mov edx, dword [edx + 8]
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
call edx
cmp dword [esp + 0x50], ebx
je 0x4881f2
mov dword [esp + 0x78], 1
cmp dword [esi + 0x60], 0
je 0x488217
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [ebp]
push 0
push 0
push ebx
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esi + 0x60], 0
jne 0x4880a9
push edi
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x488253
mov edx, dword [esi]
mov edx, dword [edx]
push ebp
mov dword [esi + 0x5c], eax
mov eax, dword [esp + 0x78]
push eax
push 0
push edi
mov ecx, esi
call edx
jmp 0x488253
cmp eax, 0x204
je 0x48806b
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.USER32.dll_GetMessageW]
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [ebp]
je 0x487fb5
jmp 0x4880a9