Function at 0x4c864c
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 edi, dword [sym.imp.USER32.dll_PeekMessageW]
mov ebx, 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 edi
test eax, eax
jne 0x4c834e
call dword [sym.imp.USER32.dll_WaitMessage]
jmp case.0x4c86eb.515
mov eax, dword [esp + 0x20]
lea edx, [eax - 0x200]
cmp edx, 0xe
ja 0x4c85bd
mov ecx, dword [esp + 0x1c]
cmp ecx, esi
jne 0x4c85d2
mov eax, dword [esp + 0x28]
movsx edx, ax
push 1
mov dword [esp + 0x3c], edx
lea edx, [esp + 0x3c]
shr eax, 0x10
push edx
cwde
push 0
push ecx
mov dword [esp + 0x4c], eax
call ebx
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push eax
push ecx
call dword [sym.imp.USER32.dll_WindowFromPoint]
mov esi, eax
test esi, esi
je 0x4c85d2
mov edx, dword [esp + 0x14]
push esi
push edx
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x4c840c
mov eax, dword [esp + 0x20]
push 1
push eax
push eax
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x60]
push ecx
call edi
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
push 1
lea ecx, [esp + 0x4c]
push ecx
push esi
push 0
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], eax
call ebx
movzx edx, word [esp + 0x4c]
movzx eax, word [esp + 0x48]
mov ecx, dword [esp + 0x24]
shl edx, 0x10
or edx, eax
push edx
mov edx, dword [esp + 0x24]
push ecx
push edx
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4c85d2
cmp byte [ebp + 0x1c], 0
mov eax, dword [esp + 0x18]
jne 0x4c8538
cmp eax, dword [esp + 0x14]
je 0x4c85b5
cmp esi, eax
jne 0x4c8538
mov eax, dword [esp + 0x20]
sub eax, 0x201
je 0x4c8440
sub eax, 3
jne 0x4c85d2
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push edx
push eax
lea ecx, [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4c8751
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 edi
cmp dword [esp + 0x20], 0x9105
jne 0x4c8484
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x1c], esi
je 0x4c84be
mov esi, dword [esp + 0x14]
xor eax, eax
lea ecx, [esp + 0x6c]
push ecx
mov dword [esp + 0x70], esi
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]
call dword [sym.imp.USER32.dll_GetCapture]
mov ebx, dword [esp + 0x18]
cmp eax, ebx
jne 0x4c84d2
call dword [sym.imp.USER32.dll_ReleaseCapture]
push 1
push 0x9105
push 0x9105
push ebx
lea edx, [esp + 0x60]
push edx
call edi
test eax, eax
jne 0x4c84d2
cmp ebx, esi
je 0x4c8508
mov edi, edi
push 1
push 0x9105
push 0x9105
push esi
lea eax, [esp + 0x60]
push eax
call edi
test eax, eax
jne 0x4c84f0
cmp byte [esp + 0x13], 0
je 0x4c8531
mov eax, dword [0x56ed14]
cmp eax, 6
ja 0x4c851b
jne 0x4c8531
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
push ebx
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, dword [esp + 0x14]
je 0x4c85b5
push esi
push eax
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x4c85b5
mov eax, dword [esp + 0x20]
push 1
push eax
push eax
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x60]
push ecx
call edi
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
push 1
lea ecx, [esp + 0x44]
push ecx
push esi
push 0
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
call ebx
movzx edx, word [esp + 0x44]
movzx eax, word [esp + 0x40]
mov ecx, dword [esp + 0x24]
shl edx, 0x10
or edx, eax
push edx
mov edx, dword [esp + 0x24]
push ecx
push edx
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esp + 0x20]
sub eax, 0x201
je 0x4c8470
sub eax, 3
je 0x4c8470
jmp 0x4c85d2
cmp esi, dword [esp + 0x14]
je 0x4c85d2
jmp 0x4c859b
cmp eax, 0x9106
jne 0x4c85d2
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x24], eax
je 0x4c8484
cmp byte [esp + 0x10], 0
je 0x4c8470
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
call edi
test eax, eax
jne 0x4c85fb
call dword [sym.imp.USER32.dll_WaitMessage]
jmp case.0x4c86eb.515
push 0
push 0
push 0
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
je 0x4c875b
test eax, eax
je 0x4c8470
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
cmp edx, 0x201
ja 0x4c867c
je 0x4c8675
lea eax, [edx - 0x100]
cmp eax, 5
ja case.0x4c866e.14
movzx eax, byte [eax + 0x4c8770]
jmp dword [eax*4 + 0x4c8768]
cmp byte [esp + 0x11], 0
jne 0x4c865a
cmp byte [esp + 0x12], 0
je case.0x4c866e.14
movzx eax, word [esp + 0x24]
add eax, 0xfffffff3
cmp eax, 0x1b
ja case.0x4c866e.14
movzx eax, byte [eax + 0x4c8780]
jmp dword [eax*4 + 0x4c8778]
mov byte [esp + 0x11], 1
jmp case.0x4c866e.14
cmp edx, 0x205
ja 0x4c86a9
je 0x4c86a2
mov eax, edx
sub eax, 0x202
je 0x4c869b
sub eax, 2
jne case.0x4c866e.14
mov byte [esp + 0x12], 1
jmp case.0x4c866e.14
mov byte [esp + 0x11], 0
jmp case.0x4c866e.14
mov byte [esp + 0x12], 0
jmp case.0x4c866e.14
cmp edx, 0x9105
jne case.0x4c866e.14
cmp ecx, dword [esp + 0x14]
je 0x4c86bd
cmp ecx, dword [esp + 0x18]
jne case.0x4c866e.14
mov byte [esp + 0x10], 0
add edx, 0xfffffe00
cmp edx, 0xe
ja case.0x4c86eb.512
mov esi, dword [esp + 0x14]
push ecx
push esi
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je case.0x4c86eb.512
mov eax, dword [esp + 0x20]
add eax, 0xfffffe00
cmp eax, 5
ja case.0x4c86eb.515
jmp dword [eax*4 + 0x4c879c]
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]
cmp byte [esp + 0x10], 0
je 0x4c8470
mov esi, dword [esp + 0x18]
jmp 0x4c8330
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 case.0x4c86eb.515
push 0
push 1
push 0x9105
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
jmp case.0x4c86eb.515
mov byte [esp + 0x13], 1
jmp 0x4c8470
mov dword [esp + 0x20], 0
jmp 0x4c8484