Function at 0x40a440
Capabilities:
Capture screenshot

Disassembly:
push edi
mov edi, esp
add esp, 0xfffffda0
mov eax, dword [0x441480]
xor eax, edi
mov dword [edi - 8], eax
mov eax, dword [edi + 8]
push ebp
push esi
push ebx
mov dword [edi - 0x248], eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
lea ecx, [edi - 0x18]
mov esi, eax
push ecx
push esi
mov dword [edi - 0x260], esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebp, dword [edi - 0xc]
sub ebp, dword [edi - 0x14]
mov ebx, dword [edi - 0x10]
sub ebx, dword [edi - 0x18]
push esi
mov dword [edi - 0x25c], ebp
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push esi
mov dword [edi - 0x258], esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebp
push ebx
push esi
mov dword [edi - 0x250], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
test eax, eax
jne 0x40a4c9
mov eax, 0xfffffffe
pop ebx
pop esi
pop ebp
mov ecx, dword [edi - 8]
xor ecx, edi
call fcn.00420bc6
mov esp, edi
pop edi
ret
mov edx, dword [edi - 0x250]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [edi - 0x18]
mov eax, dword [edi - 0x14]
mov edx, dword [edi - 0x250]
push 0xcc0020
push eax
push ecx
push esi
push ebp
xor esi, esi
push ebx
push esi
push esi
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
lea eax, [edi - 0xa4]
mov dword [edi - 0x3c], esi
mov dword [edi - 0x38], esi
mov dword [edi - 0x90], esi
mov dword [edi - 0x2c], esi
mov dword [edi - 0x28], esi
mov dword [edi - 0x24], esi
lea esi, [edi - 0x244]
mov dword [edi - 0xa4], 0x40e880
mov dword [edi - 0xa0], 0x40e920
mov dword [edi - 0x9c], 0x40e8c0
mov dword [edi - 0x98], 0x40e960
mov dword [edi - 0x94], 0x40ea10
mov dword [edi - 0x34], 0x43d190
mov dword [edi - 0x30], 0x7e
mov dword [edi - 0x244], eax
call fcn.0040e3d0
mov ecx, dword [edi - 0x248]
push 0x43c304
push ecx
call fcn.00421d73
mov esi, eax
mov dword [edi - 0x254], esi
add esp, 8
test esi, esi
jne 0x40a598
or eax, 0xffffffff
mov ecx, dword [edi - 8]
pop ebx
pop esi
pop ebp
xor ecx, edi
call fcn.00420bc6
mov esp, edi
pop edi
ret
mov eax, dword [edi - 0x22c]
test eax, eax
jne 0x40a5bf
lea edx, [edi - 0x244]
push 0x1c
push eax
mov eax, dword [edi - 0x240]
mov ecx, dword [eax]
push edx
call ecx
add esp, 0xc
mov dword [edi - 0x22c], eax
mov dword [eax + 8], 0x40e790
mov dword [eax + 0xc], 0x40e7c0
mov dword [eax + 0x10], 0x40e810
mov dword [eax + 0x14], esi
lea eax, [edi - 0x244]
mov dword [edi - 0x228], ebx
mov dword [edi - 0x224], ebp
mov dword [edi - 0x220], 3
mov dword [edi - 0x21c], 2
call fcn.0040dc70
lea ecx, [edi - 0x244]
mov eax, 0x1e
push 0
call fcn.0040db30
lea esi, [edi - 0x244]
call fcn.0040e650
lea edx, [ebx + ebx*2]
push edx
call fcn.0041ff97
sub esp, 0xfffffff8
test ebp, ebp
mov dword [edi - 0x24c], eax
mov dword [edi - 0x248], 0
jle 0x40a6b3
xor ebp, ebp
or ebx, ebx
jle 0x40a689
xor esi, esi
mov eax, dword [edi - 0x248]
mov ecx, dword [edi - 0x250]
push eax
push ebp
push ecx
call dword [sym.imp.GDI32.dll_GetPixel]
mov ecx, dword [edi - 0x24c]
mov byte [esi + ecx], al
mov edx, dword [edi - 0x24c]
mov ecx, eax
shr ecx, 8
mov byte [esi + edx + 1], cl
shr eax, 0x10
mov ecx, dword [edi - 0x24c]
inc ebp
mov byte [esi + ecx + 2], al
sub esi, 0xfffffffd
cmp ebp, ebx
jl 0x40a647
lea esi, [edi - 0x244]
lea edx, [edi - 0x24c]
push edx
call fcn.0040e6c0
mov eax, dword [edi - 0x248]
inc eax
sub esp, 0xfffffffc
mov dword [edi - 0x248], eax
cmp eax, dword [edi - 0x25c]
jl 0x40a63f
lea esi, [edi - 0x244]
call fcn.0040e500
mov eax, dword [edi - 0x240]
xor ebp, ebp
cmp eax, ebp
je 0x40a6d9
mov edx, dword [eax + 0x28]
lea ecx, [edi - 0x244]
push ecx
call edx
add esp, 4
mov eax, dword [edi - 0x24c]
push eax
mov dword [edi - 0x240], ebp
mov dword [edi - 0x230], ebp
call fcn.004220e7
mov ecx, dword [edi - 0x254]
push ecx
call fcn.004226f5
sub esp, 0xfffffff8
mov edx, dword [edi - 0x250]
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [edi - 0x258]
mov ecx, dword [edi - 0x260]
push eax
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [edi - 8]
pop ebx
pop esi
pop ebp
xor ecx, edi
xor eax, eax
call fcn.00420bc6
mov esp, edi
pop edi
ret