Function at 0x47a450
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x579830
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
push esi
push edi
push ecx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CClientDC::CClientDC
lea ecx, [esp + 0x20]
mov dword [esp + 0x4c], 0
call fcn.004eab2e
mov edi, dword [esp + 0x34]
lea eax, [esp + 0x30]
neg eax
sbb eax, eax
mov byte [esp + 0x4c], 1
and eax, edi
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CDC::Attach
mov esi, dword [esp + 0x54]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
mov ebp, dword [esi]
sub eax, ecx
mov ecx, dword [esi + 8]
push eax
mov eax, dword [esp + 0x38]
sub ecx, ebp
push ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edi, dword [esp + 0x58]
push eax
mov ecx, edi
call sub.MFC42.DLL_CGdiObject::Attach
test edi, edi
jne 0x47a4df
xor eax, eax
jmp 0x47a4e2
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x24]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
push 0
push 1
push 0
lea ecx, [esp + 0x1c]
mov ebx, eax
call sub.MFC42.DLL_CPen::CPen
lea edx, [esp + 0x10]
lea ecx, [esp + 0x30]
push edx
mov byte [esp + 0x50], 2
call sub.MFC42.DLL_CDC::SelectObject_1
mov edi, dword [esi + 4]
mov ebp, dword [esi]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x30]
sub ecx, edi
sub edx, ebp
neg eax
sbb eax, eax
push 0xcc0020
and eax, dword [esp + 0x38]
push edi
push ebp
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
push ecx
lea ecx, [esp + 0x1c]
push eax
push ecx
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
push edx
push eax
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esi + 4]
mov edx, dword [esi]
inc ecx
inc edx
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CDC::MoveTo
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
inc ecx
dec edx
push ecx
push edx
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esi + 4]
mov ecx, dword [esi]
add eax, 2
add ecx, 2
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
sub eax, 2
add ecx, 2
push eax
push ecx
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CDC::LineTo
mov edx, dword [esi + 4]
mov eax, dword [esi]
add edx, 2
add eax, 3
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [esi + 0xc]
mov eax, dword [esi]
sub edx, 2
add eax, 3
push edx
push eax
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esi + 0xc]
mov edx, dword [esi]
dec ecx
lea eax, [esp + 0x18]
push ecx
push edx
push eax
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CDC::MoveTo
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
dec ecx
push ecx
push edx
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CDC::LineTo
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
sub eax, 2
inc ecx
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CDC::MoveTo
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
sub eax, 2
dec ecx
push eax
push ecx
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CDC::LineTo
test ebx, ebx
je 0x47a658
mov ebx, dword [ebx + 4]
mov edx, dword [esp + 0x24]
push ebx
push edx
call sub.MFC42.DLL_CDC::SelectGdiObject
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CDC::DeleteDC
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x30]
push eax
call sub.MFC42.DLL_CDC::SelectObject_1
mov dword [esp + 0x10], vtable.CGdiObject.0
lea ecx, [esp + 0x10]
mov byte [esp + 0x4c], 3
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], vtable.CObject.0
mov byte [esp + 0x4c], 0
call sub.MFC42.DLL_CDC::CDC
lea ecx, [esp + 0x30]
mov dword [esp + 0x4c], 0xffffffff
call fcn.004eaedc
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 8