Function at 0x4d8a00
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 0x4d8a14
mov dword [eax], 0
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
je 0x4d8a27
xor eax, eax
pop esi
add esp, 0x54
ret 0x18
push ebx
push ebp
push edi
call fcn.00520312
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.0051b300
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 0x4d8a78
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.00534e31
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.0051ab2b
shr eax, 0x19
and eax, 1
cmp eax, 1
mov dword [esp + 0x70], eax
jne 0x4d8af7
push 0
push 0
push 0x2000000
mov ecx, ebx
call fcn.0051ab5f
mov ebp, dword [esp + 0x78]
test ebp, ebp
je 0x4d8b0f
mov ecx, dword [ebp + 0x1c]
push 2
push 0
push ecx
call dword [sym.imp.USER32.dll_GetDCEx]
jmp 0x4d8b19
mov edx, dword [ebx + 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.00521e07
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 0x4d8d2f
mov eax, dword [esp + 0x4c]
cmp eax, 0x202
ja 0x4d8c82
je 0x4d8b7f
cmp eax, 0x100
je 0x4d8b6f
cmp eax, 0x200
je 0x4d8b7f
jmp 0x4d8c89
cmp dword [esp + 0x50], 0x1b
je 0x4d8cf1
jmp 0x4d8c94
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 0x4d8baf
movsx ecx, word [esp + 0x54]
sub ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4d8bc7
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 0x4d8be7
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 0x4d8c19
mov eax, dword [esi + 0x44]
test eax, eax
je 0x4d8c5f
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4d8c3a
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 0x4d8c58
mov dword [esp + 0x6c], 1
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x4d8cb6
lea ecx, [esp + 0x38]
push edi
push ecx
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x4d8c94
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 0x4d8c94
cmp eax, 0x204
je 0x4d8cf1
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 0x4d8b4b
jmp 0x4d8d2f
mov ecx, dword [esp + 0x7c]
test ecx, ecx
je 0x4d8d2f
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4d8ce9
mov eax, dword [edi + 8]
mov edx, dword [edi]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 2
jg 0x4d8d2f
mov eax, dword [edi + 0xc]
mov edx, dword [edi + 4]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 2
jg 0x4d8d2f
mov dword [ecx], 1
jmp 0x4d8d2f
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4d8d12
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 0x4d8d40
mov ecx, dword [ebp + 0x1c]
jmp 0x4d8d43
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 0x4d8d67
push 0
push 0x2000000
push 0
mov ecx, ebx
call fcn.0051ab5f
xor ebx, ebx
push ebx
call fcn.0052031b
cmp dword [esp + 0x6c], ebx
jne 0x4d8d92
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