Function at 0x4069a0
Capabilities:
Capture screenshot

Disassembly:
push 0xffffffffffffffff
push 0x41b7d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
mov eax, dword [ecx + 4]
push ebx
push ebp
push esi
push edi
push eax
mov dword [esp + 0x20], ecx
call sub.MFC42u.DLL_CWnd::FromHandle
mov ebx, eax
mov ecx, dword [ebx + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
call sub.MFC42u.DLL_CDC::FromHandle
mov ebp, eax
mov eax, dword [ebx + 0x20]
lea edx, [esp + 0x30]
mov dword [esp + 0x18], ebp
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [esp + 0x40]
call fcn.0041af0a
test ebp, ebp
mov dword [esp + 0x90], 0
jne 0x406a0c
xor eax, eax
jmp 0x406a0f
mov eax, dword [ebp + 4]
mov esi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
call esi
push eax
lea ecx, [esp + 0x44]
call sub.MFC42u.DLL_CDC::Attach
lea ecx, [esp + 0x28]
call fcn.00404ef0
mov dword [esp + 0x28], 0x41c470
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
mov ecx, dword [ebp + 4]
sub eax, edx
push eax
push eax
push ecx
mov byte [esp + 0x9c], 1
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x2c]
call sub.MFC42u.DLL_CGdiObject::Attach
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x28]
neg eax
sbb eax, eax
and eax, edx
mov edx, dword [esp + 0x44]
push eax
push edx
call sub.MFC42u.DLL_CDC::SelectGdiObject
call fcn.00404040
mov eax, dword [eax]
lea ecx, [esp + 0x70]
add eax, 0x120
push ecx
push 0x18
mov edx, dword [eax + 4]
push edx
call dword [sym.imp.GDI32.dll_GetObjectW]
lea ecx, [esp + 0x50]
call fcn.0041af0a
test ebp, ebp
mov byte [esp + 0x90], 2
jne 0x406aaa
xor eax, eax
jmp 0x406aad
mov eax, dword [ebp + 4]
push eax
call esi
push eax
lea ecx, [esp + 0x54]
call sub.MFC42u.DLL_CDC::Attach
call fcn.00404040
mov eax, dword [eax]
add eax, 0x120
jne 0x406acc
xor eax, eax
jmp 0x406acf
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x58]
push eax
call sub.MFC42u.DLL_CDC::SelectGdiObject
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x30]
sub esi, ecx
sub edi, eax
call fcn.00404040
mov ecx, dword [eax]
mov edx, dword [esp + 0x54]
lea eax, [esp + 0x50]
push 0xcc0020
mov ecx, dword [ecx + 0x128]
neg eax
sbb eax, eax
push ecx
push 1
and eax, edx
mov edx, dword [esp + 0x50]
push 0
push 0
push eax
push esi
push edi
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_StretchBlt]
push 1
lea ecx, [esp + 0x44]
call sub.MFC42u.DLL_CDC::SetBkMode
test ebx, ebx
je 0x406d8c
mov eax, dword [ebx + 0x20]
push 0
push 0
push 0x31
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
call sub.MFC42u.DLL_CGdiObject::FromHandle
push eax
lea ecx, [esp + 0x44]
call sub.MFC42u.DLL_CDC::SelectObject
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x5c]
cmp eax, 0x100
mov dword [esp + 0x14], eax
jge 0x406c66
test eax, eax
jle 0x406c66
xor esi, esi
test eax, eax
jle 0x406ccc
lea ecx, [esp + 0x60]
push ecx
push esi
mov ecx, ebx
call sub.MFC42u.DLL_CStatusBar::GetItemRect
lea edx, [esp + 0x10]
push esi
push edx
mov ecx, ebx
call sub.MFC42u.DLL_CStatusBar::GetPaneText
push esi
mov ecx, ebx
mov byte [esp + 0x94], 3
call sub.MFC42u.DLL_CStatusBar::GetPaneStyle
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx - 8]
test edx, edx
je 0x406bec
cmp eax, 0x4000000
je 0x406bec
mov edi, dword [esp + 0x60]
lea edx, [esp + 0x60]
add edi, 3
push 0x8000
mov dword [esp + 0x64], edi
mov eax, dword [ecx - 8]
push edx
push eax
mov eax, dword [esp + 0x50]
push ecx
push eax
mov esi, 1
call dword [sym.imp.USER32.dll_DrawTextW]
mov edi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x34]
sub edi, ebp
call fcn.00404040
mov ecx, dword [eax]
mov ebp, dword [ecx + 0x12c]
call fcn.00404040
mov edx, dword [eax]
lea eax, [esp + 0x50]
neg eax
mov ecx, dword [edx + 0x130]
mov edx, dword [esp + 0x54]
push 0xcc0020
push ebp
sbb eax, eax
push ecx
mov ecx, dword [esp + 0x50]
and eax, edx
push 0
push 1
push eax
mov eax, dword [esp + 0x80]
push edi
push 2
push 3
push eax
push ecx
call dword [sym.imp.GDI32.dll_StretchBlt]
lea ecx, [esp + 0x10]
mov byte [esp + 0x90], 2
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0x14]
inc esi
cmp esi, eax
jl 0x406b86
mov ebp, dword [esp + 0x18]
jmp 0x406ccc
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_3
lea edx, [esp + 0x10]
mov ecx, ebx
push edx
mov byte [esp + 0x94], 4
call sub.MFC42u.DLL_CWnd::GetWindowTextW
mov ecx, dword [ebx + 0x20]
lea eax, [esp + 0x60]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [esp + 0x60]
mov eax, dword [esp + 0x10]
add esi, 3
lea edx, [esp + 0x60]
mov dword [esp + 0x60], esi
mov ecx, dword [eax - 8]
push 0x8000
push edx
push ecx
push eax
mov eax, dword [esp + 0x54]
push eax
call dword [sym.imp.USER32.dll_DrawTextW]
lea ecx, [esp + 0x10]
mov byte [esp + 0x90], 2
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
sub ecx, edx
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x44]
sub edx, eax
lea eax, [esp + 0x40]
neg eax
sbb eax, eax
push 0xcc0020
and eax, esi
push 0
push 0
push eax
push ecx
mov ecx, dword [ebp + 4]
push edx
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 4]
push eax
call fcn.0040f240
add esp, 4
push eax
call sub.MFC42u.DLL_CWnd::FromHandle
test eax, eax
je 0x406d5a
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
jne 0x406d5a
mov ecx, dword [esp + 0x38]
push 0xd8e9ec
push eax
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x58]
push 3
push edx
push 0xb
add eax, 0xfffffff4
push 0xb
add ecx, 0xfffffff4
push eax
push ecx
push ebp
call fcn.0040f020
add esp, 0x24
mov eax, dword [esp + 0x20]
test eax, eax
je 0x406d65
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x54]
push eax
push edx
call sub.MFC42u.DLL_CDC::SelectGdiObject
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x40]
push eax
call sub.MFC42u.DLL_CDC::SelectObject
mov ecx, dword [ebp + 4]
mov edx, dword [ebx + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
lea ecx, [esp + 0x50]
mov byte [esp + 0x90], 1
call sub.MFC42u.DLL_CDC::CDC
mov dword [esp + 0x28], 0x41c484
lea ecx, [esp + 0x28]
mov byte [esp + 0x90], 5
call sub.MFC42u.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x40]
mov dword [esp + 0x28], 0x41c498
mov dword [esp + 0x90], 0xffffffff
call sub.MFC42u.DLL_CDC::CDC
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x84
ret