Function at 0x401670
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x40a8c3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call sub.MFC71.DLL_CDC::CDC
xor ecx, ecx
lea ebp, [esi + 0x10]
mov dword [esi], 0x40cba8
mov dword [esp + 0x2c], ecx
mov dword [ebp + 4], ecx
mov dword [ebp], 0x40cb94
mov ebx, dword [esp + 0x34]
xor eax, eax
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ecx
cmp dword [ebx + 0xc], ecx
sete al
mov byte [esp + 0x2c], 1
lea edi, [esi + 0x20]
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x38]
cmp eax, ecx
jne 0x4016df
mov edx, dword [ebx]
push edi
mov ecx, ebx
call dword [edx + 0x58]
jmp 0x4016f7
mov edx, dword [eax]
mov ecx, edi
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4017d6
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call sub.MFC71.DLL_CDC::Attach
mov ecx, dword [ebx + 8]
push 2
push edi
push ecx
call dword [sym.imp.GDI32.dll_LPtoDP]
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0xc]
mov edx, dword [edi]
sub eax, ecx
mov ecx, dword [edi + 8]
sub ecx, edx
mov edx, dword [ebx + 4]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, ebp
call sub.MFC71.DLL_CGdiObject::Attach
test ebp, ebp
je 0x40174b
mov ebp, dword [ebp + 4]
mov eax, dword [esi + 4]
push ebp
push eax
call sub.MFC71.DLL_CDC::SelectGdiObject
mov dword [esi + 0x18], eax
mov ecx, dword [ebx + 8]
push ecx
call dword [sym.imp.GDI32.dll_GetMapMode]
push eax
mov ecx, esi
call sub.MFC71.DLL_CDC::SetMapMode
mov eax, dword [ebx + 8]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.GDI32.dll_GetWindowExtEx]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov edx, dword [esi]
push ecx
push eax
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call dword [edx + 0x50]
mov edx, dword [ebx + 8]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.GDI32.dll_GetViewportExtEx]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov edx, dword [esi]
push ecx
push eax
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call dword [edx + 0x48]
mov ecx, dword [ebx + 8]
push 2
push edi
push ecx
call dword [sym.imp.GDI32.dll_DPtoLP]
mov edx, dword [esi + 0x24]
mov eax, dword [edi]
push edx
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call sub.MFC71.DLL_CDC::SetWindowOrg
jmp 0x4017e8
mov edx, dword [ebx + 0xc]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov ecx, dword [ebx + 8]
mov dword [esi + 8], ecx
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x401824
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0xc]
mov ebx, dword [edi]
mov ebp, dword [esi + 0x1c]
mov edx, dword [esi + 0x24]
sub eax, ecx
mov ecx, dword [edi + 8]
sub ecx, ebx
test ebp, ebp
je 0x40180c
mov ebp, dword [ebp + 4]
push 0xcc0020
push edx
push ebx
push ebp
push eax
push ecx
push edx
mov edx, dword [esi + 4]
push ebx
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x401837
mov eax, dword [ebx + 8]
push eax
call dword [sym.imp.GDI32.dll_GetBkColor]
push eax
push edi
mov ecx, esi
call sub.MFC71.DLL_CDC::FillSolidRect
mov ecx, dword [esp + 0x24]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc