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

Disassembly:
push 0xffffffffffffffff
push 0x430f88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x10]
call fcn.00402620
mov dword [esp + 0x10], 0x435d14
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
push eax
mov dword [esp + 0x38], 0
mov dword [edi + 0x8c], ecx
call sub.MFC42.DLL_CWnd::GetDlgItem
mov dword [edi + 0x90], eax
mov ecx, dword [eax + 0x20]
lea esi, [edi + 0x78]
push esi
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [edi + 0x90]
lea ecx, [esp + 0x18]
push edx
call sub.MFC42.DLL_CClientDC::CClientDC
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push str.font
push 0x50
mov byte [esp + 0x40], 1
call sub.MFC42.DLL_CFont::CreatePointFont
mov eax, dword [esi + 0xc]
mov ebx, dword [esi + 4]
mov ecx, dword [esi + 8]
mov edx, dword [esi]
sub eax, ebx
sub ecx, edx
push eax
push ecx
mov ecx, dword [esp + 0x24]
lea ebx, [edi + 0x60]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, ebx
call sub.MFC42.DLL_CGdiObject::Attach
push 4
call dword [sym.imp.GDI32.dll_GetStockObject]
mov ebp, dword [esp + 0x1c]
mov dword [edi + 0x74], eax
lea eax, [esp + 0x18]
neg eax
sbb eax, eax
and eax, ebp
lea ebp, [edi + 0x40]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, ebp
call sub.MFC42.DLL_CDC::Attach
test ebx, ebx
je 0x40d852
mov ebx, dword [ebx + 4]
mov edx, dword [edi + 0x44]
push ebx
push edx
call sub.MFC42.DLL_CDC::SelectGdiObject
mov eax, dword [ebp]
push 6
mov ecx, ebp
call dword [eax + 0x2c]
lea eax, [edi + 0x70]
mov ecx, ebp
push eax
call sub.MFC42.DLL_CDC::SelectObject_2
mov edx, dword [ebp]
lea eax, [esp + 0x10]
push eax
mov ecx, ebp
call dword [edx + 0x30]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
mov ebx, dword [esi]
sub eax, ecx
mov ecx, dword [esi + 8]
push 0xf00021
sub ecx, ebx
push eax
push ecx
mov ecx, dword [edi + 0x44]
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
push 1
mov ecx, ebp
call sub.MFC42.DLL_CDC::SetBkMode
mov edx, dword [ebp]
push 0
mov ecx, ebp
call dword [edx + 0x38]
mov eax, dword [esi + 0xc]
mov ebp, dword [esi + 4]
mov ecx, dword [esi + 8]
mov ebx, dword [esi]
sub eax, ebp
sub ecx, ebx
push eax
mov eax, dword [esp + 0x20]
push ecx
push eax
lea ebx, [edi + 0x68]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, ebx
call sub.MFC42.DLL_CGdiObject::Attach
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0x18]
neg eax
sbb eax, eax
and eax, ebp
lea ebp, [edi + 0x50]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, ebp
call sub.MFC42.DLL_CDC::Attach
test ebx, ebx
je 0x40d903
mov ebx, dword [ebx + 4]
mov ecx, dword [edi + 0x54]
push ebx
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
mov edx, dword [ebp]
push 6
mov ecx, ebp
call dword [edx + 0x2c]
lea eax, [edi + 0x70]
mov ecx, ebp
push eax
call sub.MFC42.DLL_CDC::SelectObject_2
mov eax, dword [ebp]
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebp
call dword [eax + 0x30]
mov eax, dword [esi + 0xc]
mov ebx, dword [esi + 4]
mov ecx, dword [esi + 8]
mov edx, dword [esi]
sub eax, ebx
sub ecx, edx
mov edx, dword [edi + 0x54]
push 0xf00021
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_PatBlt]
push 1
mov ecx, ebp
call sub.MFC42.DLL_CDC::SetBkMode
mov eax, dword [ebp]
push 0
mov ecx, ebp
call dword [eax + 0x38]
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 0
call fcn.0042f3f6
mov dword [esp + 0x10], 0x435b40
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 8