Function at 0x40e2d0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x48eb93
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bb028]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [esp + 0x3c]
mov ecx, esi
call fcn.004899de
xor ecx, ecx
mov dword [esp + 0x34], ecx
lea ebp, [esi + 0x10]
mov dword [esi], vtable.CMemDC.0
mov dword [ebp + 4], ecx
mov dword [ebp], vtable.CBitmap.0
mov byte [esp + 0x34], 1
xor eax, eax
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ecx
cmp dword [ebx + 0xc], ecx
lea edi, [esi + 0x20]
sete al
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x40]
cmp eax, ecx
jne 0x40e34a
mov edx, dword [ebx]
mov eax, dword [edx + 0x58]
push edi
mov ecx, ebx
call eax
jmp 0x40e360
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
cmp dword [esi + 0x30], 0
je 0x40e43e
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 0x40e3af
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 edx, dword [ebx + 8]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.GDI32.dll_GetWindowExtEx]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esi]
push ecx
push edx
mov edx, dword [eax + 0x50]
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call edx
mov ecx, dword [ebx + 8]
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetViewportExtEx]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi]
mov edx, dword [edx + 0x48]
push eax
push ecx
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call edx
mov eax, dword [ebx + 8]
push 2
push edi
push eax
call dword [sym.imp.GDI32.dll_DPtoLP]
mov ecx, dword [esi + 0x24]
mov edx, dword [edi]
push ecx
push edx
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call sub.mfc90u.dll_CDC::SetWindowOrg
jmp 0x40e450
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0xc], ecx
mov edx, dword [ebx + 4]
mov dword [esi + 4], edx
mov eax, dword [ebx + 8]
mov dword [esi + 8], eax
cmp dword [esp + 0x44], 0
je 0x40e489
mov ebx, dword [edi]
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
mov ebp, dword [esi + 0x1c]
sub eax, dword [edi + 4]
mov edx, dword [esi + 0x24]
sub ecx, ebx
test ebp, ebp
je 0x40e471
mov ebp, dword [ebp + 4]
push 0xcc0020
push edx
push ebx
push ebp
push eax
push ecx
mov ecx, dword [esi + 4]
push edx
push ebx
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x40e49c
mov edx, dword [ebx + 8]
push edx
call dword [sym.imp.GDI32.dll_GetBkColor]
push eax
push edi
mov ecx, esi
call sub.mfc90u.dll_CDC::FillSolidRect_1
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0xc