Function at 0x4080bb
Capabilities:
Capture screenshot
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x4080ef
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x58]
cmp dword [eax], ecx
jge 0x4080f7
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 0
je 0x408113
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x54]
cmp dword [eax + 4], ecx
jge 0x40811c
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 8], 0
je 0x408138
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
cmp dword [ebp - 0x50], eax
jge 0x408141
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0xc], 0
je 0x40815d
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x4c]
cmp dword [eax + 0xc], ecx
jle 0x408166
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 8]
cmp dword [eax], ecx
jge 0x408189
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 0xc]
cmp dword [eax + 4], ecx
jl 0x408190
xor eax, eax
jmp 0x40833a
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov ecx, dword [ebp + 0xc]
sub eax, dword [ecx]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0xc]
sub eax, dword [ecx + 4]
mov dword [ebp - 0x5c], eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x60], eax
push dword [ebp - 0x5c]
push dword [ebp - 0x64]
push dword [ebp - 0x60]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 0x34], eax
push dword [ebp - 0x60]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x30], eax
push dword [ebp - 0x34]
push dword [ebp - 0x30]
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
mov eax, dword [ebp + 0xc]
push dword [eax + 4]
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp - 0x60]
push dword [ebp - 0x5c]
push dword [ebp - 0x64]
push 0
push 0
push dword [ebp - 0x30]
call dword [sym.imp.GDI32.dll_BitBlt]
mov dword [ebp - 0x2c], 0x28
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x24], eax
mov word [ebp - 0x20], 1
mov word [ebp - 0x1e], 0x18
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x64]
imul eax, eax, 3
add eax, 3
and al, 0xfc
imul eax, dword [ebp - 0x5c]
add eax, 2
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xb12
mov dword [ebp - 0x10], 0xb12
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
push dword [ebp - 0x18]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x68], eax
push 0
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x5c]
push 0
push dword [ebp - 0x34]
push dword [ebp - 0x60]
call dword [sym.imp.GDI32.dll_GetDIBits]
mov word [ebp - 0x48], 0x4d42
mov eax, dword [ebp - 0x18]
add eax, 0x36
mov dword [ebp - 0x46], eax
mov word [ebp - 0x42], 0
mov word [ebp - 0x40], 0
mov dword [ebp - 0x3e], 0x36
push 1
push 1
push dword [ebp + 8]
call fcn.004062ee
mov dword [ebp - 0x38], eax
push 0
lea eax, [ebp - 4]
push eax
push 0xe
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 4]
push eax
push 0x28
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x68]
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x30]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 0x34]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x60]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, 1
jmp 0x40833a
pop edi
pop esi
pop ebx
leave
ret 8