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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ead2e
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x6089a0]
xor eax, esp
mov dword [esp + 0x158], eax
push ebx
mov eax, dword [0x6089a0]
xor eax, esp
push eax
lea eax, [esp + 0x168]
mov dword fs:[0], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x58]
lea ecx, [esp + 0x78]
push ecx
mov ecx, edi
call edx
test eax, eax
je 0x4bb0b0
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esi + 0x94]
push edx
lea eax, [esp + 0x3c]
push eax
mov ecx, edi
call sub.MFC80U.DLL_Ordinal_2255
mov ecx, dword [esi + 0x20]
push 0
push 0
push 0x1200
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esi + 0x98]
push edx
push 1
mov ebx, eax
push 0
lea ecx, [esp + 0x34]
mov dword [esp + 0x30], ebx
call sub.MFC80U.DLL_Ordinal_502
mov dword [esp + 0x170], 0
mov eax, dword [edi + 8]
push 1
push eax
call dword [sym.imp.GDI32.dll_GetCurrentObject]
push eax
call sub.MFC80U.DLL_Ordinal_2362
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0xa4]
push eax
call sub.MFC80U.DLL_Ordinal_2362
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x30]
mov ecx, edi
call eax
mov edx, dword [edi]
mov eax, dword [esi + 0x8c]
mov edx, dword [edx + 0x34]
push eax
mov ecx, edi
call edx
mov ecx, dword [esi + 0x90]
mov eax, dword [edi]
mov edx, dword [eax + 0x38]
push ecx
mov ecx, edi
call edx
xor eax, eax
cmp ebx, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
jle 0x4bb07f
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 0x20]
push 0
push eax
push 0x120f
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x20]
mov ebx, eax
lea eax, [esp + 0x88]
push eax
push ebx
push 0x120b
lea edx, [esp + 0xc8]
push ecx
mov dword [esp + 0x98], 0x17
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa8], 0xa0
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x14]
push edx
push ebx
push 0x1207
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x14]
jge 0x4baf40
cmp edx, dword [esp + 0x80]
jg 0x4bb028
test dword [esp + 0x9c], 0x8000
je 0x4bafb7
mov ecx, esi
mov dword [esp + 0x48], 4
call sub.MFC80U.DLL_Ordinal_2648
mov ecx, dword [esi + 0x20]
mov edx, dword [edi + 4]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x4c], eax
xor eax, eax
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x74], eax
mov eax, dword [esi]
lea ecx, [esp + 0x48]
mov dword [esp + 0x70], edx
mov edx, dword [eax + 0x144]
push ecx
mov ecx, esi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], 1
call edx
jmp 0x4bafe5
push ebx
lea ebx, [esp + 0x8c]
push ebx
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x30]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 0xc], ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x148]
push edi
mov ecx, esi
call edx
mov eax, dword [esp + 0xc]
add eax, 1
cmp eax, dword [esp + 0x24]
jge 0x4bb028
lea ecx, [esp + 0x28]
push ecx
mov ecx, edi
call sub.MFC80U.DLL_Ordinal_5637
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0xbc]
push ecx
mov ecx, edi
call sub.MFC80U.DLL_Ordinal_4117
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push edx
push eax
mov ecx, edi
call sub.MFC80U.DLL_Ordinal_3995
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x8c]
add dword [esp + 0x10], ecx
add eax, 1
cmp eax, dword [esp + 0x24]
mov dword [esp + 0xc], eax
jl 0x4baebc
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x4bb07f
cmp dword [esi + 0xb0], 0
jne 0x4bb07f
mov ecx, dword [esp + 0x38]
mov edx, dword [esi + 0x98]
add eax, ecx
push edx
mov dword [esp + 0x44], eax
sub eax, ecx
push 1
push eax
mov eax, dword [esp + 0x50]
add eax, 0xffffffff
push eax
push ecx
mov ecx, edi
call sub.MFC80U.DLL_Ordinal_2254
mov ecx, dword [esp + 0x30]
push ecx
mov ecx, edi
call sub.MFC80U.DLL_Ordinal_5637
lea ecx, [esp + 0x28]
call sub.MFC80U.DLL_Ordinal_1925
mov dword [esp + 0x170], 0xffffffff
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], vtable.CPen.0
call fcn.00406940
mov ecx, dword [esp + 0x168]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x158]
xor ecx, esp
call fcn.00432b8e
mov esp, ebp
pop ebp
ret