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

Disassembly:
push 0xffffffffffffffff
push 0x4e94c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call sub.MFC42.DLL_CDC::CDC
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
xor eax, eax
mov dword [esi + 0x10], edi
cmp edi, eax
mov dword [esp + 0x30], eax
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], eax
mov dword [esi], 0x4f14d0
je 0x451fde
cmp dword [edi + 0xc], eax
je 0x451e1c
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
cmp eax, ecx
je 0x451fcf
mov dword [esi + 4], eax
mov edx, dword [edi + 8]
mov dword [esi + 8], edx
jmp 0x451fde
mov eax, dword [edi]
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call dword [eax + 0x58]
mov eax, dword [edi + 8]
lea edx, [esp + 0x18]
push 2
push edx
push eax
call dword [sym.imp.GDI32.dll_LPtoDP]
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CRect::NormalizeRect
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
sub ecx, edx
sub eax, ebx
push ecx
push eax
push edi
mov ecx, 0x57c120
call fcn.004521c0
test eax, eax
je 0x451fcf
mov ecx, dword [edi + 4]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::Attach
mov ecx, dword [0x57c124]
mov edx, dword [esi + 4]
mov eax, 0x57c120
neg eax
sbb eax, eax
and eax, ecx
push eax
push edx
call sub.MFC42.DLL_CDC::SelectGdiObject
mov dword [esi + 0x18], eax
mov eax, dword [edi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetMapMode]
mov ebx, eax
mov ecx, esi
push ebx
call sub.MFC42.DLL_CDC::SetMapMode
mov edx, dword [edi + 8]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.GDI32.dll_GetWindowOrgEx]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::SetWindowOrg
mov ecx, dword [edi + 8]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetViewportOrgEx]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi]
push eax
lea eax, [esp + 0x14]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x40]
cmp ebx, 6
jle 0x451f48
mov edx, dword [edi + 8]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.GDI32.dll_GetWindowExtEx]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [esi]
push ecx
lea ecx, [esp + 0x14]
push edx
push ecx
mov ecx, esi
call dword [eax + 0x50]
mov eax, dword [edi + 8]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.GDI32.dll_GetViewportExtEx]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi]
push eax
lea eax, [esp + 0x14]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x48]
mov ecx, dword [edi + 8]
push ebp
push ecx
call dword [sym.imp.GDI32.dll_GetBkColor]
mov edx, dword [edi]
mov ebp, eax
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
call dword [edx + 0x58]
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CRect::NormalizeRect
cmp ebx, 1
je 0x451f9d
lea ecx, [esp + 0x14]
mov eax, 2
push ecx
mov ecx, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
call sub.MFC42.DLL_CDC::DPtoLP
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_InflateRect]
lea edx, [esp + 0x1c]
push ebp
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::FillSolidRect_1
mov eax, dword [esi + 4]
push 7
push 0
push eax
call dword [sym.imp.GDI32.dll_SetBoundsRect]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 8
mov ecx, edi
call sub.MFC42.DLL_CDC::Detach
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::Attach
mov ecx, dword [esp + 0x28]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 8