Function at 0x408010
Capabilities:
Capture screenshot

Disassembly:
push 0xffffffffffffffff
push 0x41b88c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2ac
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 4]
push edi
push eax
mov dword [esp + 0x6c], ebx
call sub.MFC42u.DLL_CWnd::FromHandle
mov esi, eax
mov dword [esp + 0x60], esi
mov ecx, dword [esi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
call sub.MFC42u.DLL_CDC::FromHandle
mov edi, eax
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x44]
mov dword [esp + 0x70], edi
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x34]
call fcn.0041af0a
test edi, edi
mov dword [esp + 0x2c4], 0
jne 0x408085
xor eax, eax
jmp 0x408088
mov eax, dword [edi + 4]
mov esi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
call esi
push eax
lea ecx, [esp + 0x38]
call sub.MFC42u.DLL_CDC::Attach
lea ecx, [esp + 0x54]
call fcn.00404ef0
mov dword [esp + 0x54], 0x41c470
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x44]
mov ecx, dword [edi + 4]
sub eax, edx
push eax
push eax
push ecx
mov byte [esp + 0x2d0], 1
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x58]
call sub.MFC42u.DLL_CGdiObject::Attach
mov edx, dword [esp + 0x58]
lea eax, [esp + 0x54]
neg eax
sbb eax, eax
and eax, edx
mov edx, dword [esp + 0x38]
push eax
push edx
call sub.MFC42u.DLL_CDC::SelectGdiObject
call fcn.00404040
mov eax, dword [eax]
lea ecx, [esp + 0xa4]
add eax, 0xdc
push ecx
push 0x18
mov edx, dword [eax + 4]
push edx
call dword [sym.imp.GDI32.dll_GetObjectW]
lea ecx, [esp + 0x24]
call fcn.0041af0a
test edi, edi
mov byte [esp + 0x2c4], 2
jne 0x408126
xor eax, eax
jmp 0x408129
mov eax, dword [edi + 4]
push eax
call esi
push eax
lea ecx, [esp + 0x28]
call sub.MFC42u.DLL_CDC::Attach
call fcn.00404040
mov eax, dword [eax]
add eax, 0xdc
jne 0x408148
xor eax, eax
jmp 0x40814b
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x2c]
push eax
call sub.MFC42u.DLL_CDC::SelectGdiObject
mov ecx, dword [esp + 0x50]
mov esi, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x44]
mov ebp, eax
sub ecx, esi
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x24]
sub edx, edi
sub ecx, 3
neg eax
push 0xcc0020
push 3
sbb eax, eax
push 1
and eax, esi
push 0
mov esi, dword [sym.imp.GDI32.dll_StretchBlt]
push 0
push eax
push 3
push edx
push ecx
mov ecx, dword [esp + 0x5c]
push 0
push ecx
mov dword [esp + 0x98], ebp
call esi
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x44]
sub ecx, edi
mov edi, dword [esp + 0x28]
sub edx, eax
lea eax, [esp + 0x24]
sub ecx, 3
push 0xcc0020
neg eax
sbb eax, eax
push 1
push 1
and eax, edi
push 2
push 1
push eax
push ecx
push edx
mov edx, dword [esp + 0x58]
push 0
push 0
push edx
call esi
push 1
lea ecx, [esp + 0x38]
call sub.MFC42u.DLL_CDC::SetBkMode
mov eax, dword [ebx + 4]
push eax
call sub.MFC42u.DLL_CWnd::FromHandle
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
push 0
push 0
mov ecx, dword [ebx + 0x20]
push 0x31
push ecx
call edi
push eax
call sub.MFC42u.DLL_CGdiObject::FromHandle
push eax
lea ecx, [esp + 0x38]
call sub.MFC42u.DLL_CDC::SelectObject
test ebx, ebx
mov dword [esp + 0x64], eax
je 0x408557
mov edx, dword [ebx + 0x20]
push 0
push 0
push 0x1200
push edx
call edi
xor ebp, ebp
mov dword [esp + 0x74], eax
test eax, eax
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x20], ebp
jle 0x408553
mov edx, dword [esp + 0x20]
lea eax, [esp + 0xbc]
lea ecx, [esp + 0x78]
mov dword [esp + 0x80], eax
mov eax, dword [ebx + 0x20]
push ecx
push edx
push 0x120b
push eax
mov dword [esp + 0x98], 0x100
mov dword [esp + 0x88], 0x27
call edi
test eax, eax
je 0x40853e
mov edx, dword [esp + 0x20]
mov eax, dword [ebx + 0x20]
lea ecx, [esp + 0x10]
push ecx
push edx
push 0x1207
push eax
call edi
mov eax, dword [esp + 0x68]
mov cl, byte [eax + 0xc]
test cl, cl
je 0x4083fe
mov ecx, dword [esp + 0x20]
mov edx, dword [eax + 0x10]
cmp edx, ecx
jne 0x4083fe
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0xac]
mov ebp, dword [esp + 0x28]
lea eax, [esp + 0x24]
sub ecx, edx
neg eax
push 0xcc0020
push edi
sbb eax, eax
push 3
and eax, ebp
push 0
push 0xc
push eax
mov eax, dword [esp + 0x50]
push ecx
push 3
push edx
mov edx, dword [esp + 0x34]
push edx
push eax
call esi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
sub ecx, eax
sub edx, edi
lea ebp, [eax + 2]
lea eax, [esp + 0x24]
sub ecx, 3
sub edx, 4
add edi, 3
push 0xcc0020
neg eax
sbb eax, eax
push 1
and eax, dword [esp + 0x30]
push 1
push 3
push 0xf
push eax
push ecx
mov ecx, dword [esp + 0x54]
push edx
push ebp
push edi
push ecx
call esi
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x28]
sub ecx, eax
lea edx, [eax + 3]
lea eax, [esp + 0x24]
sub ecx, 4
push 0xcc0020
neg eax
sbb eax, eax
push 2
push 1
and eax, ebp
push 0
push 0xf
push eax
push 2
push ecx
push 0
push edx
mov edx, dword [esp + 0x60]
push edx
call esi
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
lea edi, [eax - 1]
lea eax, [esp + 0x24]
sub ecx, edx
neg eax
sbb eax, eax
mov ebp, dword [esp + 0x28]
push 0xcc0020
and eax, ebp
mov ebp, dword [esp + 0xb0]
push ebp
push 1
push 0
push 0xc
push eax
push ecx
mov ecx, dword [esp + 0x54]
push 1
push edx
push edi
push ecx
call esi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x28]
lea edi, [eax - 1]
lea eax, [esp + 0x24]
sub ecx, edx
push 0xcc0020
neg eax
sbb eax, eax
push 1
push 1
and eax, ebp
push 0
push 0xc
push eax
push 1
push ecx
mov ecx, dword [esp + 0x58]
push edi
push edx
push ecx
call esi
mov ebp, dword [esp + 0x5c]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x10]
add ecx, 7
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x8c]
test ch, 8
je 0x40841f
test cl, 1
mov eax, 0x13
jne 0x408424
mov eax, 5
mov edx, dword [esp + 0x18]
sub edx, eax
mov eax, dword [esp + 0x80]
test eax, eax
mov dword [esp + 0x18], edx
je 0x4084a5
test cl, 2
mov edi, 0x8004
je 0x408448
mov edi, 0x8005
test cl, 1
je 0x408450
or edi, 2
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x10]
push edi
push edx
push eax
mov eax, dword [esp + 0x8c]
push eax
push ecx
call dword [sym.imp.USER32.dll_DrawTextW]
mov edx, dword [esp + 0x80]
or edi, 0x400
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esp + 0x80]
lea ecx, [esp + 0x10]
push edi
push ecx
push eax
mov eax, dword [esp + 0x44]
push edx
push eax
call dword [sym.imp.USER32.dll_DrawTextW]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x48]
add ebp, eax
sub ecx, edx
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x24]
sub ecx, 7
neg eax
push 0xcc0020
push 1
sbb eax, eax
push 2
and eax, edx
push 0
push 1
push eax
push ecx
mov ecx, dword [esp + 0x54]
push 2
push 3
push ebp
push ecx
mov dword [esp + 0x88], ebp
call esi
mov eax, dword [esp + 0x8c]
test ah, 8
je 0x40853e
test al, 1
je 0x4084fd
lea ecx, [ebp - 0xb]
jmp 0x408504
mov edx, dword [esp + 0x18]
lea ecx, [edx + 9]
mov eax, dword [esp + 0x94]
mov edx, dword [esp + 0x14]
neg eax
sbb eax, eax
push 0
and eax, 5
push eax
lea eax, [esp + 0x2c]
push 3
push eax
mov eax, dword [esp + 0x2c]
push 5
sub eax, edx
push 9
cdq
sub eax, edx
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0x54]
push ecx
call fcn.0040f020
add esp, 0x24
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x74]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x40824e
mov ebp, dword [esp + 0x6c]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
sub ecx, edx
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x38]
sub edx, eax
lea eax, [esp + 0x34]
mov esi, dword [esp + 0x70]
push 0xcc0020
neg eax
sbb eax, eax
push 0
and eax, edi
push 0
push eax
push ecx
push edx
mov edx, dword [esi + 4]
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
test ebp, ebp
jne 0x40859f
xor eax, eax
jmp 0x4085a2
mov eax, dword [ebp + 4]
push eax
mov eax, dword [esp + 0x2c]
push eax
call sub.MFC42u.DLL_CDC::SelectGdiObject
mov ecx, dword [esp + 0x64]
push ecx
lea ecx, [esp + 0x28]
call sub.MFC42u.DLL_CDC::SelectObject
mov eax, dword [esp + 0x60]
mov edx, dword [esi + 4]
push edx
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
lea ecx, [esp + 0x24]
mov byte [esp + 0x2c4], 1
call sub.MFC42u.DLL_CDC::CDC
mov dword [esp + 0x54], 0x41c484
lea ecx, [esp + 0x54]
mov byte [esp + 0x2c4], 3
call sub.MFC42u.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x34]
mov dword [esp + 0x54], 0x41c498
mov dword [esp + 0x2c4], 0xffffffff
call sub.MFC42u.DLL_CDC::CDC
mov ecx, dword [esp + 0x2bc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2b8
ret