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

Disassembly:
mov eax, dword [esp + 0x18]
sub esp, 0x54
test eax, eax
push esi
mov esi, ecx
je 0x4fa5a4
mov dword [eax], 0
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
je 0x4fa5b7
xor eax, eax
pop esi
add esp, 0x54
ret 0x18
push ebx
push ebp
push edi
call fcn.005c2eb4
mov eax, dword [esi + 0x10]
mov ebx, dword [esi + 8]
lea edi, [esi + 8]
sub eax, ebx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0xc]
mov edx, dword [edi + 4]
sub eax, edx
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.005bde79
mov ecx, dword [ebx + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_UpdateWindow]
push ecx
call ebp
mov eax, dword [esp + 0x78]
test eax, eax
je 0x4fa608
mov edx, dword [eax + 0x1c]
push edx
call ebp
mov eax, edi
mov ecx, dword [eax]
mov dword [esp + 0x28], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x2c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x10]
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x14]
mov dword [esp + 0x34], edx
push eax
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x70]
lea eax, [esp + 0x20]
push edx
push eax
push ecx
mov ecx, esi
call fcn.005d7c70
mov edx, dword [esp + 0x70]
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x14]
sub edx, ebp
sub eax, ecx
mov ecx, ebx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
call fcn.005bd62d
shr eax, 0x19
and eax, 1
cmp eax, 1
mov dword [esp + 0x70], eax
jne 0x4fa687
push 0
push 0
push 0x2000000
mov ecx, ebx
call fcn.005bd661
mov ebp, dword [esp + 0x78]
test ebp, ebp
je 0x4fa69f
mov ecx, dword [ebp + 0x1c]
push 2
push 0
push ecx
call dword [sym.imp.USER32.dll_GetDCEx]
jmp 0x4fa6a9
mov edx, dword [ebx + 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.005c49a8
mov dword [esp + 0x78], eax
push 0
push 0
lea eax, [esp + 0x50]
push 0
push eax
mov dword [esp + 0x7c], 0
call dword [sym.imp.USER32.dll_GetMessageA]
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [ebx + 0x1c]
jne 0x4fa8bf
mov eax, dword [esp + 0x4c]
cmp eax, 0x202
ja 0x4fa812
je 0x4fa70f
cmp eax, 0x100
je 0x4fa6ff
cmp eax, 0x200
je 0x4fa70f
jmp 0x4fa819
cmp dword [esp + 0x50], 0x1b
je 0x4fa881
jmp 0x4fa824
mov ecx, edi
mov edx, dword [ecx]
mov dword [esp + 0x38], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x3c], eax
mov edx, dword [ecx + 8]
mov dword [esp + 0x40], edx
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4fa73f
movsx ecx, word [esp + 0x54]
sub ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4fa757
mov edx, dword [esp + 0x54]
shr edx, 0x10
movsx ecx, dx
sub ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov eax, dword [esp + 0x68]
cmp eax, 8
jne 0x4fa777
mov edx, dword [edi]
mov ecx, dword [esp + 0x20]
add edx, ecx
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x10], edx
mov edx, dword [esp + 0x24]
add ecx, edx
mov dword [esi + 0x14], ecx
mov edx, dword [esi]
push edi
push eax
mov ecx, esi
call dword [edx + 4]
mov ecx, dword [esp + 0x4c]
xor eax, eax
cmp ecx, 0x202
lea ecx, [esp + 0x38]
sete al
push edi
push ecx
mov dword [esi + 0x44], eax
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
je 0x4fa7a9
mov eax, dword [esi + 0x44]
test eax, eax
je 0x4fa7ef
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4fa7ca
mov eax, dword [esp + 0x78]
mov edx, dword [esi]
push ebx
push eax
lea ecx, [esp + 0x40]
push ebp
push ecx
mov ecx, esi
mov dword [esi + 0x40], 1
call dword [edx]
mov edx, dword [esi]
lea eax, [esp + 0x38]
push eax
mov ecx, esi
call dword [edx + 8]
cmp dword [esp + 0x4c], 0x202
je 0x4fa7e8
mov dword [esp + 0x6c], 1
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x4fa846
lea ecx, [esp + 0x38]
push edi
push ecx
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x4fa824
mov edx, dword [esi]
mov dword [esi + 0x40], eax
mov eax, dword [esp + 0x78]
push ebx
push eax
push ebp
push edi
mov ecx, esi
call dword [edx]
jmp 0x4fa824
cmp eax, 0x204
je 0x4fa881
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
lea edx, [esp + 0x50]
push 0
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [ebx + 0x1c]
je 0x4fa6db
jmp 0x4fa8bf
mov ecx, dword [esp + 0x7c]
test ecx, ecx
je 0x4fa8bf
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4fa879
mov eax, dword [edi + 8]
mov edx, dword [edi]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 2
jg 0x4fa8bf
mov eax, dword [edi + 0xc]
mov edx, dword [edi + 4]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 2
jg 0x4fa8bf
mov dword [ecx], 1
jmp 0x4fa8bf
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4fa8a2
mov ecx, dword [esp + 0x78]
mov eax, 1
push ebx
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], eax
mov eax, dword [esi]
push ecx
push ebp
push edi
mov ecx, esi
call dword [eax]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, edi
mov dword [edx], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov edx, dword [esp + 0x78]
test ebp, ebp
mov eax, dword [edx + 4]
push eax
je 0x4fa8d0
mov ecx, dword [ebp + 0x1c]
jmp 0x4fa8d3
mov ecx, dword [ebx + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
call dword [sym.imp.USER32.dll_ReleaseCapture]
cmp dword [esp + 0x70], 1
jne 0x4fa8f7
push 0
push 0x2000000
push 0
mov ecx, ebx
call fcn.005bd661
xor ebx, ebx
push ebx
call fcn.005c2ebd
cmp dword [esp + 0x6c], ebx
jne 0x4fa922
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, edi
mov dword [edx], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea edx, [esp + 0x28]
push edi
push edx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x40], ebx
call dword [sym.imp.USER32.dll_EqualRect]
neg eax
pop edi
pop ebp
sbb eax, eax
pop ebx
inc eax
pop esi
add esp, 0x54
ret 0x18