Function at 0x401ec4
Capabilities:
Check for peb beingdebugged flag
Resolve function by parsing pe exports

Disassembly:
jmp 0x4548c0
push 0xffffffffffffffff
push 0x529298
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x60]
mov dword [esp + 0x14], esi
call fcn.004fe082
mov edi, dword [esp + 0x90]
lea ecx, [esp + 0x60]
mov dword [esp + 0x88], 0
mov eax, dword [edi + 0x18]
push eax
call sub.MFC42.DLL_CDC::Attach
add edi, 0x1c
lea ecx, [esp + 0x70]
push edi
push ecx
call dword [0x56df74]
mov ebx, dword [esp + 0x78]
mov ebp, dword [esp + 0x70]
mov eax, ebx
sub eax, ebp
cdq
and edx, 0xf
add eax, edx
mov edx, dword [esp + 0x74]
mov edi, eax
mov eax, dword [esp + 0x7c]
sub eax, edx
cdq
sar edi, 4
and edx, 0xf
sub edi, 2
add eax, edx
mov dword [esp + 0x38], edi
mov ecx, eax
lea eax, [edi + 2]
shl eax, 4
mov edx, eax
mov eax, ebx
sub eax, edx
sub eax, ebp
xor ebp, ebp
add eax, 2
mov dword [esp + 0x34], ebp
cdq
sar ecx, 4
sub ecx, 2
sub eax, edx
mov dword [esp + 0x3c], ecx
add ecx, 2
sar eax, 1
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x7c]
shl ecx, 4
sub eax, ecx
mov ecx, dword [esp + 0x74]
sub eax, ecx
add eax, 2
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x4c], eax
mov eax, vtable.CPen.0
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], eax
mov ebx, dword [0x56cbb8]
push ebp
push 1
push ebp
mov byte [esp + 0x94], 2
call ebx
push eax
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CGdiObject::Attach
push 0xff0000
push 3
push ebp
call ebx
push eax
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CGdiObject::Attach
xor eax, eax
lea ebx, [esi + 0x58]
lea ecx, [esi + 0x458]
xor esi, esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x90], ecx
mov dword [esp + 0x1c], 0x10
mov ecx, dword [esp + 0x14]
cmp eax, dword [ecx + 0x50]
jge 0x454b51
mov eax, dword [ebx]
xor edx, edx
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x22]
mov dh, al
mov eax, dword [esp + 0x21]
and eax, 0xff
and ecx, 0xff
or edx, eax
mov dword [esp + 0x50], esi
shl edx, 8
or edx, ecx
mov ecx, dword [esp + 0x3c]
mov edi, edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x54], ebp
lea eax, [esi + edx]
lea edx, [ecx + ebp]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x5c], edx
push eax
lea edx, [esp + 0x54]
push ecx
push edx
call dword [0x56df70]
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
push edi
mov dword [eax], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x60]
mov dword [eax + 8], ecx
lea ecx, [esp + 0x44]
mov dword [eax + 0xc], edx
call sub.MFC42.DLL_CBrush::CBrush
lea eax, [esp + 0x40]
lea ecx, [esp + 0x60]
push eax
mov byte [esp + 0x8c], 3
call sub.MFC42.DLL_CDC::SelectObject
mov edi, eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x48]
test ecx, ecx
je 0x454ad7
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + 0x4c]
cmp edx, ecx
jne 0x454ad7
lea edx, [esp + 0x28]
lea ecx, [esp + 0x60]
push edx
call sub.MFC42.DLL_CDC::SelectObject_2
mov dword [esp + 0x18], eax
push 0xffffffffffffffff
lea eax, [esp + 0x54]
push 0xffffffffffffffff
push eax
call dword [0x56df78]
jmp 0x454ae9
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x64]
call sub.MFC42.DLL_CDC::SelectObject_2
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x6c]
push ecx
push edx
push eax
call dword [0x56cbf4]
mov ecx, dword [esp + 0x18]
push ecx
lea ecx, [esp + 0x64]
call sub.MFC42.DLL_CDC::SelectObject_2
push edi
lea ecx, [esp + 0x64]
call sub.MFC42.DLL_CDC::SelectObject
mov dword [esp + 0x40], vtable.CGdiObject.0
lea ecx, [esp + 0x40]
mov byte [esp + 0x88], 4
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x10]
mov byte [esp + 0x88], 2
mov dword [esp + 0x40], vtable.CObject.0
mov edx, dword [esp + 0x90]
lea ecx, [edi + 2]
add esi, ecx
mov ecx, dword [esp + 0x1c]
add ebx, 4
add edx, 0x10
inc eax
dec ecx
mov dword [esp + 0x90], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ecx
jne 0x4549f4
mov ecx, edx
mov edx, dword [esp + 0x3c]
add edx, 2
add ebp, edx
cmp eax, 0x100
jb 0x4549df
lea ecx, [esp + 0x60]
call sub.MFC42.DLL_CDC::Detach
mov edi, vtable.CGdiObject.0
mov dword [esp + 0x28], edi
lea ecx, [esp + 0x28]
mov byte [esp + 0x88], 5
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov esi, vtable.CObject.0
mov dword [esp + 0x30], edi
mov dword [esp + 0x28], esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x88], 6
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x60]
mov dword [esp + 0x30], esi
mov dword [esp + 0x88], 0xffffffff
call sub.MFC42.DLL_CDC::CDC
mov ecx, dword [esp + 0x80]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x7c
ret 4