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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10057b56
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x10086038]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push dword [edi + 0x18]
call sub.mfc90u.dll_CDC::FromHandle
mov ebx, eax
add edi, 0x1c
push edi
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
xor edi, edi
push edi
push 0xffffff
lea eax, [esp + 0x38]
push eax
push ebx
lea ecx, [esp + 0x50]
call sym.PCBRhelper.dll_Ordinal_81
mov dword [esp + 0x80], edi
cmp dword [esi + 0x108], edi
jne 0x1001cac6
lea ebx, [esi + 0x104]
push ebx
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowRect]
push ebx
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call sub.mfc90u.dll_CWnd::FromHandle
mov ecx, eax
call sub.mfc90u.dll_CWnd::ScreenToClient
lea eax, [esi + 0x88]
push eax
mov ecx, esi
call sub.mfc90u.dll_CWnd::GetWindowTextW
test byte [0x1008c63c], 1
mov ebx, 0x1008c62c
jne 0x1001cb0f
or dword [0x1008c63c], 1
push 0x448
push ebx
mov byte [esp + 0x88], 1
call fcn.100112b5
push 0x10060b94
call fcn.100508e5
pop ecx
mov byte [esp + 0x80], 0
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x34]
push 0xcc0020
push ebx
push eax
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
push eax
push dword [esi + 0x108]
lea eax, [esp + 0x54]
push dword [esi + 0x104]
push edi
push edi
push eax
call sym.PCBRhelper.dll_Ordinal_877
add esp, 0x24
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call sym.PCBRhelper.dll_Ordinal_879
push 1
lea ecx, [esp + 0x44]
call sub.mfc90u.dll_CDC::SetBkMode
xor eax, eax
cmp byte [esi + 0x54], al
mov dword [esp + 0x1c], edi
sete al
mov edi, vtable.CFont.0
mov dword [esp + 0x18], edi
dec eax
and eax, 0x12c
add eax, 0x190
mov dword [esi + 0x9c], eax
lea eax, [esi + 0x8c]
push eax
mov byte [esp + 0x84], 2
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
lea ecx, [esp + 0x1c]
call sub.mfc90u.dll_CGdiObject::Attach
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x44]
call dword [eax + 0x30]
mov cl, byte [esi + 0x55]
and dword [esp + 0x24], 0
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x114]
movzx ecx, cl
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x40]
add eax, 0x38
neg ecx
sbb ecx, ecx
and ecx, 0xcfc6bd
push ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xa3
mov dword [esp + 0x30], 0x1a
mov dword [esi + 0xe8], 0x24
call dword [eax]
mov eax, dword [ebp + 8]
mov bl, byte [eax + 0x10]
mov al, byte [esi + 0x55]
and bl, 1
dec dword [esp + 0x24]
dec dword [esp + 0x20]
test al, al
jne 0x1001cc1b
cmp byte [esi + 0x54], al
jne 0x1001cc1b
mov eax, dword [esi + 0x78]
jmp 0x1001cc1e
mov eax, dword [esi + 0x7c]
push eax
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x44]
call dword [eax + 0x38]
cmp byte [esi + 0x54], 0
jne 0x1001cc34
test bl, bl
je 0x1001cc41
mov eax, dword [esp + 0x40]
push 0
lea ecx, [esp + 0x44]
call dword [eax + 0x38]
push dword [esi + 0xe8]
mov eax, dword [esi + 0x88]
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x24]
push edx
push ecx
push eax
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x50]
call dword [eax + 0x70]
push dword [esp + 0x14]
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x44]
call dword [eax + 0x30]
mov byte [esp + 0x80], 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], edi
call fcn.1000b470
or dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x40]
call sym.PCBRhelper.dll_Ordinal_135
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4