Function at 0x4d6070
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 0x4d6084
mov dword [eax], 0
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
je 0x4d6097
xor eax, eax
pop esi
add esp, 0x54
ret 0x18
push ebx
push ebp
push edi
call fcn.0051acd2
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.00515cbf
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 0x4d60e8
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.0052f88a
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.005154ea
shr eax, 0x19
and eax, 1
cmp eax, 1
mov dword [esp + 0x70], eax
jne 0x4d6167
push 0
push 0
push 0x2000000
mov ecx, ebx
call fcn.0051551e
mov ebp, dword [esp + 0x78]
test ebp, ebp
je 0x4d617f
mov ecx, dword [ebp + 0x1c]
push 2
push 0
push ecx
call dword [sym.imp.USER32.dll_GetDCEx]
jmp 0x4d6189
mov edx, dword [ebx + 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.0051c7c7
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 0x4d639f
mov eax, dword [esp + 0x4c]
cmp eax, 0x202
ja 0x4d62f2
je 0x4d61ef
cmp eax, 0x100
je 0x4d61df
cmp eax, 0x200
je 0x4d61ef
jmp 0x4d62f9
cmp dword [esp + 0x50], 0x1b
je 0x4d6361
jmp 0x4d6304
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 0x4d621f
movsx ecx, word [esp + 0x54]
sub ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4d6237
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 0x4d6257
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 0x4d6289
mov eax, dword [esi + 0x44]
test eax, eax
je 0x4d62cf
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4d62aa
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 0x4d62c8
mov dword [esp + 0x6c], 1
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x4d6326
lea ecx, [esp + 0x38]
push edi
push ecx
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x4d6304
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 0x4d6304
cmp eax, 0x204
je 0x4d6361
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 0x4d61bb
jmp 0x4d639f
mov ecx, dword [esp + 0x7c]
test ecx, ecx
je 0x4d639f
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4d6359
mov eax, dword [edi + 8]
mov edx, dword [edi]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 2
jg 0x4d639f
mov eax, dword [edi + 0xc]
mov edx, dword [edi + 4]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 2
jg 0x4d639f
mov dword [ecx], 1
jmp 0x4d639f
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4d6382
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 0x4d63b0
mov ecx, dword [ebp + 0x1c]
jmp 0x4d63b3
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 0x4d63d7
push 0
push 0x2000000
push 0
mov ecx, ebx
call fcn.0051551e
xor ebx, ebx
push ebx
call fcn.0051acdb
cmp dword [esp + 0x6c], ebx
jne 0x4d6402
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