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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
push esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_SetCapture]
mov ebx, dword [sym.imp.USER32.dll_PeekMessageW]
mov edi, dword [sym.imp.USER32.dll_MapWindowPoints]
xor eax, eax
mov byte [esp + 0x13], 0
mov byte [esp + 0x10], 1
mov byte [esp + 0x12], 0
mov byte [esp + 0x11], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
lea ebx, [ebx]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
call ebx
test eax, eax
jne 0x4d53ee
call dword [sym.imp.USER32.dll_WaitMessage]
jmp 0x4d5778
mov ecx, dword [esp + 0x20]
lea edx, [ecx - 0x200]
cmp edx, 0xe
ja 0x4d5643
mov edx, dword [esp + 0x1c]
cmp edx, esi
jne 0x4d54ab
mov eax, dword [esp + 0x28]
movsx ecx, ax
push 1
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x3c]
shr eax, 0x10
push ecx
cwde
push 0
push edx
mov dword [esp + 0x4c], eax
call edi
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push edx
push eax
call dword [sym.imp.USER32.dll_WindowFromPoint]
mov esi, eax
test esi, esi
je 0x4d54a7
mov ecx, dword [esp + 0x14]
push esi
push ecx
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x4d54d8
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 1
push eax
push eax
push edx
lea eax, [esp + 0x60]
push eax
call ebx
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
push 1
lea eax, [esp + 0x4c]
push eax
push esi
push 0
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
call edi
movzx ecx, word [esp + 0x4c]
movzx edx, word [esp + 0x48]
mov eax, dword [esp + 0x24]
shl ecx, 0x10
or ecx, edx
push ecx
mov ecx, dword [esp + 0x24]
push eax
push ecx
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esp + 0x20]
cmp byte [esp + 0x10], 0
je 0x4d553b
push 0
push 0
push 0
push 0
lea eax, [esp + 0x2c]
push eax
call ebx
test eax, eax
jne 0x4d5662
call dword [sym.imp.USER32.dll_WaitMessage]
jmp 0x4d5778
cmp byte [ebp + 0x1c], 0
mov eax, dword [esp + 0x18]
jne 0x4d5598
cmp eax, dword [esp + 0x14]
je 0x4d561a
cmp esi, eax
jne 0x4d5598
mov ecx, dword [esp + 0x20]
mov eax, ecx
sub eax, 0x201
je 0x4d550a
sub eax, 3
jne 0x4d54ab
mov edx, dword [esp + 0x1c]
push 1
push ecx
push ecx
push edx
lea eax, [esp + 0x60]
push eax
call ebx
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push ecx
push edx
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
mov ecx, dword [esp + 0x20]
test eax, eax
jne 0x4d553b
mov byte [esp + 0x13], 1
cmp ecx, 0x9105
jne 0x4d5551
mov edi, dword [esp + 0x14]
cmp dword [esp + 0x1c], edi
je 0x4d57ca
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
xor eax, eax
lea edx, [esp + 0x6c]
push edx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], 0x9105
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov edi, dword [esp + 0x14]
jmp 0x4d57ce
cmp eax, dword [esp + 0x14]
je 0x4d561a
push esi
push eax
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x4d561a
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 1
push eax
push eax
push edx
lea eax, [esp + 0x60]
push eax
call ebx
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
push 1
lea eax, [esp + 0x44]
push eax
push esi
push 0
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
call edi
movzx ecx, word [esp + 0x44]
movzx edx, word [esp + 0x40]
mov eax, dword [esp + 0x24]
shl ecx, 0x10
or ecx, edx
push ecx
mov ecx, dword [esp + 0x24]
push eax
push ecx
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esp + 0x20]
mov eax, ecx
sub eax, 0x201
je 0x4d553b
sub eax, 3
je 0x4d553b
jmp 0x4d54ab
cmp esi, dword [esp + 0x14]
je 0x4d54a7
mov ecx, dword [esp + 0x20]
mov eax, ecx
sub eax, 0x201
je 0x4d553b
sub eax, 3
je 0x4d553b
jmp 0x4d54ab
cmp ecx, 0x9106
jne 0x4d54ab
mov edx, dword [esp + 0x24]
cmp edx, dword [esp + 0x14]
je 0x4d5555
jmp 0x4d54ab
push 0
push 0
push 0
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
je 0x4d57bd
mov ecx, dword [esp + 0x20]
test eax, eax
je 0x4d553b
mov edx, dword [esp + 0x1c]
cmp ecx, 0x201
ja 0x4d56e3
je 0x4d56dc
lea eax, [ecx - 0x100]
cmp eax, 5
ja case.0x4d56d5.14
movzx eax, byte [eax + 0x4d5844]
jmp dword [eax*4 + 0x4d583c]
cmp byte [esp + 0x11], 0
jne 0x4d56c1
cmp byte [esp + 0x12], 0
je case.0x4d56d5.14
movzx eax, word [esp + 0x24]
add eax, 0xfffffff3
cmp eax, 0x1b
ja case.0x4d56d5.14
movzx eax, byte [eax + 0x4d5854]
jmp dword [eax*4 + 0x4d584c]
mov byte [esp + 0x11], 1
jmp case.0x4d56d5.14
cmp ecx, 0x205
ja 0x4d5710
je 0x4d5709
mov eax, ecx
sub eax, 0x202
je 0x4d5702
sub eax, 2
jne case.0x4d56d5.14
mov byte [esp + 0x12], 1
jmp case.0x4d56d5.14
mov byte [esp + 0x11], 0
jmp case.0x4d56d5.14
mov byte [esp + 0x12], 0
jmp case.0x4d56d5.14
cmp ecx, 0x9105
jne case.0x4d56d5.14
cmp edx, dword [esp + 0x14]
je 0x4d5724
cmp edx, dword [esp + 0x18]
jne case.0x4d56d5.14
mov byte [esp + 0x10], 0
add ecx, 0xfffffe00
cmp ecx, 0xe
ja case.0x4d5753.512
mov esi, dword [esp + 0x14]
push edx
push esi
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je case.0x4d5753.512
mov ecx, dword [esp + 0x20]
lea eax, [ecx - 0x200]
cmp eax, 5
ja case.0x4d5753.515
jmp dword [eax*4 + 0x4d5870]
mov dword [esp + 0x20], 0x200
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov ecx, dword [esp + 0x20]
cmp byte [esp + 0x10], 0
je 0x4d553b
mov esi, dword [esp + 0x18]
jmp 0x4d53d0
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x24], 0x200
call dword [sym.imp.USER32.dll_DispatchMessageW]
mov edx, dword [ebp + 0x20]
cmp byte [edx], 0
je 0x4d5778
push 0
push 1
push 0x9105
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4d5778
mov dword [esp + 0x20], 0
jmp 0x4d5551
mov esi, dword [esp + 0x18]
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, esi
jne 0x4d57e0
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov edi, edi
push 1
push 0x9105
push 0x9105
push esi
lea eax, [esp + 0x60]
push eax
call ebx
test eax, eax
jne 0x4d57e0
cmp esi, edi
je 0x4d5818
lea esp, [esp]
push 1
push 0x9105
push 0x9105
push edi
lea ecx, [esp + 0x60]
push ecx
call ebx
test eax, eax
jne 0x4d5800
cmp byte [esp + 0x13], 0
je 0x4d5835
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push edx
push eax
push ecx
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret