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

Disassembly:
push 0xffffffffffffffff
push 0x54414b
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5c403c]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [esp + 0x58]
mov ecx, esi
call sub.mfc90u.dll_CDC::CDC
xor edi, edi
mov dword [esp + 0x50], edi
lea ebp, [esi + 0x10]
mov dword [esi], vtable.CMemDC.0
mov dword [esp + 0x14], ebp
mov dword [ebp], vtable.CGdiObject.0
mov dword [ebp + 4], edi
mov byte [esp + 0x50], 1
mov dword [ebp], vtable.CBitmap.0
mov byte [esp + 0x50], 2
mov dword [esi + 0x18], edi
xor ecx, ecx
mov dword [esi + 0x1c], ebx
mov eax, dword [ebx + 0xc]
cmp eax, edi
mov eax, dword [esp + 0x5c]
sete cl
cmp eax, edi
lea edi, [esi + 0x20]
mov dword [esi + 0x30], ecx
jne 0x40855c
mov edx, dword [ebx]
mov eax, dword [edx + 0x58]
push edi
mov ecx, ebx
call eax
jmp 0x408572
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov dword [edi + 4], edx
mov ecx, dword [eax + 8]
mov dword [edi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [edi + 0xc], edx
xor eax, eax
cmp dword [esi + 0x30], eax
je 0x4086c3
cmp dword [esp + 0x64], eax
jne 0x408610
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call sub.mfc90u.dll_CDC::Attach
mov eax, dword [ebx + 8]
push 2
push edi
push eax
call dword [sym.imp.GDI32.dll_LPtoDP]
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov ecx, dword [edi + 8]
sub ecx, dword [edi]
push eax
push ecx
mov ecx, dword [ebx + 4]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, ebp
call sub.mfc90u.dll_CGdiObject::Attach
test ebp, ebp
je 0x4085cc
mov ebp, dword [ebp + 4]
mov edx, dword [esi + 4]
push ebp
push edx
call sub.mfc90u.dll_CDC::SelectGdiObject
mov dword [esi + 0x18], eax
mov eax, dword [ebx + 8]
push eax
call dword [sym.imp.GDI32.dll_GetMapMode]
push eax
mov ecx, esi
call sub.mfc90u.dll_CDC::SetMapMode
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 + 0x1c]
push ecx
mov ecx, esi
call sub.mfc90u.dll_CDC::SetWindowOrg
jmp 0x4086d5
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call sub.mfc90u.dll_CDC::Attach
mov eax, dword [edi + 4]
sub eax, dword [edi + 0xc]
mov edx, dword [edi + 8]
sub edx, dword [edi]
push 0
push 0
push 0
mov dword [esp + 0x30], eax
mov ecx, 1
push 0
lea eax, [esp + 0x2c]
mov word [esp + 0x38], cx
mov ecx, dword [ebx + 4]
mov dword [esp + 0x30], edx
push eax
mov edx, 0x20
push ecx
mov dword [esp + 0x34], 0x28
mov word [esp + 0x42], dx
mov dword [esp + 0x44], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push eax
mov ecx, ebp
call sub.mfc90u.dll_CGdiObject::Attach
test ebp, ebp
jne 0x4086b4
mov edx, dword [esi + 4]
push ebp
push edx
call sub.mfc90u.dll_CDC::SelectGdiObject
jmp 0x4086d5
mov ebp, dword [ebp + 4]
mov edx, dword [esi + 4]
push ebp
push edx
call sub.mfc90u.dll_CDC::SelectGdiObject
jmp 0x4086d5
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [ebx + 4]
mov dword [esi + 4], ecx
mov edx, dword [ebx + 8]
mov dword [esi + 8], edx
cmp dword [esp + 0x60], 0
mov ecx, esi
je 0x408719
push 1
call sub.mfc90u.dll_CDC::SetBkMode
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
mov edx, dword [esi + 0x1c]
sub eax, dword [edi + 4]
sub ecx, dword [edi]
mov ebx, dword [esi + 0x24]
mov edi, dword [edi]
test edx, edx
je 0x4086ff
mov edx, dword [edx + 4]
push 0xcc0020
push 0
push 0
push edx
push eax
mov eax, dword [esi + 4]
push ecx
push ebx
push edi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x408733
push 2
call sub.mfc90u.dll_CDC::SetBkMode
mov ecx, dword [ebx + 8]
push ecx
call dword [sym.imp.GDI32.dll_GetBkColor]
push eax
push edi
mov ecx, esi
call sub.mfc90u.dll_CDC::FillSolidRect_1
mov dword [esp + 0x50], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 0x10