Function at 0x403ed0
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40a9e9
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x411028]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x18]
push eax
call sub.mfc90u.dll_CDC::FromHandle
add ebx, 0x1c
push ebx
lea ecx, [esp + 0x40]
push ecx
mov edi, eax
call dword [sym.imp.USER32.dll_CopyRect]
lea ecx, [esp + 0x2c]
call sub.mfc90u.dll_CDC::CDC
xor ebx, ebx
mov dword [esp + 0x68], ebx
cmp edi, ebx
jne 0x403f32
xor eax, eax
jmp 0x403f35
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x30]
call sub.mfc90u.dll_CDC::Attach
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], vtable.CBitmap.0
mov byte [esp + 0x68], 1
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
sub ecx, dword [esp + 0x3c]
mov edx, dword [edi + 4]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x18]
call sub.mfc90u.dll_CGdiObject::Attach
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x403f91
push eax
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
sub eax, dword [esp + 0x20]
sub ecx, dword [esp + 0x1c]
lea edx, [esi + 0x70]
cmp edx, ebx
jne 0x403fbb
xor edx, edx
jmp 0x403fbe
mov edx, dword [edx + 4]
push 0xcc0020
push ebx
push ebx
push edx
push eax
mov eax, dword [esp + 0x44]
push ecx
push ebx
push ebx
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
push eax
call ebx
mov eax, dword [esi + 0x58]
cmp eax, 0xffffffff
je 0x40401e
push eax
lea ecx, [esp + 0x20]
call sub.mfc90u.dll_CBrush::CBrush
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x4c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], vtable.CBrush.0
call fcn.00401be0
lea ecx, [esp + 0x10]
call dword [0x40b5cc]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
mov byte [esp + 0x6c], 2
call sub.mfc90u.dll_CWnd::GetWindowTextW
mov eax, dword [esi + 0x68]
test eax, eax
je 0x40404c
mov ecx, dword [esp + 0x30]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [edi + 8]
push edx
call dword [sym.imp.GDI32.dll_GetBkMode]
push 1
lea ecx, [esp + 0x30]
mov edi, eax
call sub.mfc90u.dll_CDC::SetBkMode
mov eax, dword [esi + 0x54]
mov ecx, dword [esp + 0x30]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [esi + 0x6c]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 0xc]
push edx
lea edx, [esp + 0x40]
push edx
push ecx
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.USER32.dll_DrawTextW]
push edi
lea ecx, [esp + 0x30]
call sub.mfc90u.dll_CDC::SetBkMode
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x48]
sub edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
push 0xcc0020
push 0
push 0
push ecx
mov ecx, dword [ebp + 8]
push edx
mov edx, dword [ecx + 0x18]
push eax
push 0
push 0
push edx
call ebx
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov byte [esp + 0x68], 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], vtable.CBitmap.0
call fcn.00401be0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x68], 0xffffffff
call fcn.004097ec
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4