Function at 0x4dd850
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 0x4dd864
mov dword [eax], 0
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
je 0x4dd877
xor eax, eax
pop esi
add esp, 0x54
ret 0x18
push ebx
push ebp
push edi
call fcn.0052e992
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.00529958
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 0x4dd8c8
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.0054372d
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.0052910c
shr eax, 0x19
and eax, 1
cmp eax, 1
mov dword [esp + 0x70], eax
jne 0x4dd947
push 0
push 0
push 0x2000000
mov ecx, ebx
call fcn.00529140
mov ebp, dword [esp + 0x78]
test ebp, ebp
je 0x4dd95f
mov ecx, dword [ebp + 0x1c]
push 2
push 0
push ecx
call dword [sym.imp.USER32.dll_GetDCEx]
jmp 0x4dd969
mov edx, dword [ebx + 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.00530486
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 0x4ddb7f
mov eax, dword [esp + 0x4c]
cmp eax, 0x202
ja 0x4ddad2
je 0x4dd9cf
cmp eax, 0x100
je 0x4dd9bf
cmp eax, 0x200
je 0x4dd9cf
jmp 0x4ddad9
cmp dword [esp + 0x50], 0x1b
je 0x4ddb41
jmp 0x4ddae4
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 0x4dd9ff
movsx ecx, word [esp + 0x54]
sub ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4dda17
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 0x4dda37
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 0x4dda69
mov eax, dword [esi + 0x44]
test eax, eax
je 0x4ddaaf
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4dda8a
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 0x4ddaa8
mov dword [esp + 0x6c], 1
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x4ddb06
lea ecx, [esp + 0x38]
push edi
push ecx
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x4ddae4
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 0x4ddae4
cmp eax, 0x204
je 0x4ddb41
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 0x4dd99b
jmp 0x4ddb7f
mov ecx, dword [esp + 0x7c]
test ecx, ecx
je 0x4ddb7f
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4ddb39
mov eax, dword [edi + 8]
mov edx, dword [edi]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 2
jg 0x4ddb7f
mov eax, dword [edi + 0xc]
mov edx, dword [edi + 4]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, 2
jg 0x4ddb7f
mov dword [ecx], 1
jmp 0x4ddb7f
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4ddb62
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 0x4ddb90
mov ecx, dword [ebp + 0x1c]
jmp 0x4ddb93
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 0x4ddbb7
push 0
push 0x2000000
push 0
mov ecx, ebx
call fcn.00529140
xor ebx, ebx
push ebx
call fcn.0052e99b
cmp dword [esp + 0x6c], ebx
jne 0x4ddbe2
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