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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x54ee28
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x5b2920]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
cmp edi, 0x202
je 0x4c0c84
cmp edi, 0x205
je 0x4c0c84
cmp edi, 0x200
je 0x4c0c84
cmp edi, 0x203
je 0x4c0c84
cmp edi, 0x201
jne 0x4c0963
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push ecx
push edx
mov ecx, esi
call fcn.004f6ef5
cmp dword [esp + 0x14], 0
jne 0x4c08b0
lea ecx, [esp + 0x40]
push ecx
push eax
mov ecx, esi
call fcn.0043bb70
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x48]
call fcn.00427110
test eax, eax
jne 0x4c08b0
mov dword [esp + 0x14], 1
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [esp + 0x14], 0
je 0x4c090e
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edi
push eax
push 0x201
mov ecx, esi
call fcn.0043d850
push edi
movzx ecx, word [esi + 0x78]
or ecx, 0x2010000
push ecx
push 0x111
mov ecx, esi
call fcn.00417360
mov ecx, eax
call fcn.00418d60
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0xb
push edx
call edi
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ebx
push eax
push 0x201
mov ecx, esi
call fcn.0043d850
mov ecx, dword [esi + 0x20]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [esi + 0x20]
push 0
push 1
push 0xb
push edx
call edi
mov eax, dword [esi + 0x20]
push 0
push 1
push 0x85
push eax
call edi
push ebx
jmp 0x4c08db
cmp edi, 0x100
jne 0x4c09fd
mov edx, dword [esi + 0x20]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
xor edi, edi
push edi
push edi
push 0xb
push edx
call ebx
movzx ecx, word [esi + 0x78]
mov eax, dword [ebp + 0xc]
push eax
or ecx, 0x1000000
push ecx
push 0x111
mov ecx, esi
call fcn.00417360
mov ecx, eax
call fcn.00418d60
test eax, eax
je 0x4c09bd
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edx
push eax
push 0x100
mov ecx, esi
call fcn.0043d850
mov edi, eax
mov ecx, dword [esi + 0x20]
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [esi + 0x20]
push 0
push 1
push 0xb
push edx
call ebx
mov eax, dword [esi + 0x20]
push 0
push 1
push 0x85
push eax
call ebx
mov eax, edi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp edi, 0x215
jne 0x4c0a5d
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push edi
push ecx
push 0x215
mov ecx, esi
call fcn.0043d850
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [esi + 0x20]
je 0x4c0a43
movzx edx, word [esi + 0x78]
push edi
or edx, 0x2150000
push edx
push 0x111
mov ecx, esi
call fcn.00417360
mov ecx, eax
call fcn.00418d60
mov eax, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp edi, 0xf
jne 0x4c0af9
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push edi
mov ecx, esi
call fcn.0043d850
mov edx, dword [esi + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.004ea1f6
mov edi, eax
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call fcn.0043cc30
sub eax, 1
push eax
mov ecx, esi
call fcn.0043bb70
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x4c]
cmp eax, dword [esp + 0x24]
jge 0x4c0ad7
push 0
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
call fcn.004ea4bd
push eax
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call fcn.00427270
push edi
mov ecx, esi
call fcn.00424300
mov eax, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp edi, 0x14
je 0x4c0a43
cmp edi, 0x20a
je 0x4c0b5d
cmp edi, 0x115
jne 0x4c0b45
mov edx, dword [esi + 0x20]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ecx
push edx
push edi
mov ecx, esi
call fcn.0043d850
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp edi, 5
jne 0x4c0b67
mov eax, dword [esi + 0x20]
push 0
push 1
push 0x85
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x20]
push 1
push 0
push ecx
jmp 0x4c0b1a
cmp edi, 0x83
jne 0x4c0bcb
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
push edi
push ebx
push 0x83
call fcn.0043d850
cmp dword [esi + 0x7c], 0
je 0x4c0cbf
test ebx, ebx
je 0x4c0cbf
mov edx, dword [esi + 0x80]
add dword [edi], edx
mov ecx, dword [esi + 0x80]
add dword [edi + 4], ecx
mov edx, dword [esi + 0x80]
sub dword [edi + 8], edx
mov ecx, dword [esi + 0x80]
sub dword [edi + 0xc], ecx
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp edi, 0x85
jne 0x4c0b20
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edx
push eax
push edi
call fcn.0043d850
xor edi, edi
cmp dword [esi + 0x7c], edi
mov ebx, eax
je 0x4c0c6d
push esi
lea ecx, [esp + 0x64]
call fcn.004ea326
lea ecx, [esp + 0x30]
mov dword [esp + 0x80], edi
mov edx, dword [esi + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov edx, dword [esi + 0x84]
sub dword [esp + 0x3c], ecx
sub dword [esp + 0x38], eax
push edx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
call fcn.004ea686
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x64]
call fcn.00427130
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], vtable.CBrush.0
call fcn.00424150
lea ecx, [esp + 0x60]
mov dword [esp + 0x80], 0xffffffff
call fcn.004ea37a
mov eax, ebx
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ebx
push eax
push edi
call fcn.0043d850
mov ecx, dword [esi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004edd60
movzx edx, word [esi + 0x78]
mov eax, dword [eax + 0x20]
movzx ecx, di
shl ecx, 0x10
push ebx
or ecx, edx
push ecx
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc