Function at 0x409bf0
Capabilities:
Capture screenshot

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x428d7c
push eax
mov dword fs:[0], esp
sub esp, 0xbc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x50]
test eax, eax
je 0x409f3f
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call sub.MFC42u.DLL_CDC::FromHandle
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x60]
push ecx
push edx
mov edi, eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x60]
mov ecx, esi
push eax
call sub.MFC42u.DLL_CWnd::ScreenToClient
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [edi]
lea ecx, [esi + 0x6c]
push ecx
mov ecx, edi
call dword [eax + 0x30]
mov edx, dword [edi]
mov ebp, eax
mov eax, dword [esi + 0x74]
lea ebx, [esp + 0x50]
push 0x600
push ebx
mov ecx, dword [eax - 8]
push ecx
push eax
mov ecx, edi
call dword [edx + 0x70]
mov eax, dword [edi]
push ebp
mov ecx, edi
call dword [eax + 0x30]
lea eax, [esi + 0x64]
xor ebx, ebx
test eax, eax
je 0x409cae
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x409cae
mov edx, dword [esi + 0x68]
lea ecx, [esp + 0x38]
push ecx
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov eax, dword [esp + 0x3c]
lea ebx, [eax + 7]
mov edx, dword [esi + 0x70]
lea ecx, [esp + 0x70]
push ecx
push 0x5c
push edx
call dword [sym.imp.GDI32.dll_GetObjectW]
cmp dword [esp + 0x80], 0x2bc
jne 0x409ccf
add ebx, 5
mov eax, dword [edi]
push ebp
mov ecx, edi
call dword [eax + 0x30]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x54]
mov ebp, dword [esp + 0x50]
sub ecx, edx
mov edx, dword [esp + 0x58]
push 6
sub edx, ebp
push ecx
add edx, ebx
xor ebx, ebx
push edx
push ebx
push ebx
push ebx
mov ecx, esi
call sub.MFC42u.DLL_CWnd::SetWindowPos
cmp dword [esi + 0x58], ebx
je 0x409f3f
lea ebp, [esi + 0x5c]
cmp ebp, ebx
je 0x409d19
cmp dword [ebp + 4], ebx
je 0x409d19
mov ecx, ebp
call sub.MFC42u.DLL_CGdiObject::DeleteObject
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esi + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call sub.MFC42u.DLL_CWnd::FromHandle
cmp eax, ebx
jne 0x409d40
xor eax, eax
jmp 0x409d43
mov eax, dword [eax + 0x20]
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x28]
push 2
push ecx
push eax
push edx
call dword [sym.imp.USER32.dll_MapWindowPoints]
lea ecx, [esp + 0x18]
call fcn.0042781c
mov dword [esp + 0xd4], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 0x42bae0
cmp edi, ebx
mov byte [esp + 0xd4], 1
jne 0x409d81
xor edi, edi
jmp 0x409d84
mov edi, dword [edi + 4]
push edi
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
call edi
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CDC::Attach
mov eax, dword [esi + 0x58]
and eax, 0xffff
push eax
push 2
push eax
call sub.MFC42u.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CGdiObject::Attach
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
neg eax
sbb eax, eax
and eax, edx
push eax
mov eax, dword [esp + 0x20]
push eax
call sub.MFC42u.DLL_CDC::SelectGdiObject
lea ecx, [esp + 0x38]
mov ebx, eax
call fcn.0042781c
mov ecx, dword [esp + 0x3c]
mov edx, dword [esi + 0x20]
push ecx
push edx
mov byte [esp + 0xdc], 2
call dword [sym.imp.USER32.dll_ReleaseDC]
lea ecx, [esp + 0x38]
call sub.MFC42u.DLL_CDC::DeleteDC
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
neg eax
sbb eax, eax
and eax, edx
push eax
call edi
push eax
lea ecx, [esp + 0x3c]
call sub.MFC42u.DLL_CDC::Attach
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
sub eax, esi
sub ecx, edx
push eax
mov eax, dword [esp + 0x20]
push ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, ebp
call sub.MFC42u.DLL_CGdiObject::Attach
test ebp, ebp
je 0x409e48
mov ebp, dword [ebp + 4]
mov ecx, dword [esp + 0x3c]
push ebp
push ecx
call sub.MFC42u.DLL_CDC::SelectGdiObject
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x28]
mov ebp, eax
lea eax, [esp + 0x18]
sub ecx, esi
sub edx, edi
neg eax
sbb eax, eax
push 0xcc0020
and eax, dword [esp + 0x20]
push esi
push edi
push eax
push ecx
push edx
mov edx, dword [esp + 0x54]
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
lea eax, [esp + 0x18]
test eax, eax
je 0x409eac
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x409eac
test ebx, ebx
je 0x409ea5
mov ebx, dword [ebx + 4]
push ebx
push eax
call sub.MFC42u.DLL_CDC::SelectGdiObject
lea ecx, [esp + 0x10]
test ecx, ecx
je 0x409ec5
mov eax, dword [esp + 0x14]
test eax, eax
je 0x409ec5
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CGdiObject::DeleteObject
lea edx, [esp + 0x38]
test edx, edx
je 0x409ee7
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x409ee7
test ebp, ebp
jne 0x409edd
xor eax, eax
jmp 0x409ee0
mov eax, dword [ebp + 4]
push eax
push ecx
call sub.MFC42u.DLL_CDC::SelectGdiObject
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CDC::DeleteDC
lea ecx, [esp + 0x38]
call sub.MFC42u.DLL_CDC::DeleteDC
lea ecx, [esp + 0x38]
mov byte [esp + 0xd4], 1
call sub.MFC42u.DLL_CDC::CDC
mov dword [esp + 0x10], 0x42b8c8
lea ecx, [esp + 0x10]
mov byte [esp + 0xd4], 3
call sub.MFC42u.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0x42b8b4
mov dword [esp + 0xd4], 0xffffffff
call sub.MFC42u.DLL_CDC::CDC
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xc8
ret