Function at 0x405210
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40a859
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push edi
mov eax, dword [0x411028]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [esp + 0x14], edi
cmp ebx, edi
jne 0x405265
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call sub.mfc90u.dll_CDC::FromHandle
mov dword [ebp + 8], eax
mov dword [esp + 0x14], 1
mov ebx, eax
lea ecx, [esp + 0x24]
call sub.mfc90u.dll_CDC::CDC
mov dword [esp + 0x50], edi
cmp ebx, edi
jne 0x40527a
xor eax, eax
jmp 0x40527d
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x28]
call sub.mfc90u.dll_CDC::Attach
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], vtable.CBitmap.0
lea ecx, [esp + 0x34]
mov byte [esp + 0x50], 1
mov edx, dword [esi + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
sub edi, dword [esp + 0x34]
push eax
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 4]
push edi
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x20]
call sub.mfc90u.dll_CGdiObject::Attach
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4052ec
mov ecx, dword [esp + 0x28]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
lea ebx, [esp + 0x24]
mov eax, esi
call fcn.004049b0
mov edx, dword [esi + 0x20]
push 0
push 0
push 0x31
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
call sub.mfc90u.dll_CGdiObject::FromHandle
push eax
mov ecx, ebx
call sub.mfc90u.dll_CDC::SelectObject
lea ecx, [esp + 0x10]
call dword [0x40b5cc]
lea eax, [esi + 0x134]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x54], 2
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.GDI32.dll_GetBkMode]
push 1
lea ecx, [esp + 0x28]
mov ebx, eax
call sub.mfc90u.dll_CDC::SetBkMode
cmp dword [esi + 0x74], 0
je 0x40535b
mov eax, dword [esi + 0x64]
push eax
jmp 0x40536b
cmp dword [esi + 0x78], 0
je 0x405367
mov ecx, dword [esi + 0x60]
push ecx
jmp 0x40536b
mov edx, dword [esi + 0x5c]
push edx
lea ecx, [esp + 0x28]
call sub.mfc90u.dll_CDC::SetTextColor
mov edx, dword [esi + 0x58]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 0xc]
push edx
lea edx, [esp + 0x38]
push edx
push ecx
push eax
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_DrawTextW]
push ebx
lea ecx, [esp + 0x28]
call sub.mfc90u.dll_CDC::SetBkMode
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 4]
push 0xcc0020
push 0
push 0
push ecx
push edx
push edi
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
cmp dword [esp + 0x14], 0
je 0x4053d5
mov ebx, dword [ebx + 4]
mov eax, dword [esi + 0x20]
push ebx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
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 + 0x50], 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], vtable.CBitmap.0
call fcn.00401be0
lea ecx, [esp + 0x24]
mov dword [esp + 0x50], 0xffffffff
call fcn.004097ec
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4