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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x1c], ecx
push eax
push eax
push eax
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
mov ebx, eax
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 8
mov dword [ebp - 8], eax
pop eax
push eax
push ebx
call esi
push 0xa
push ebx
mov edi, eax
call esi
mov esi, eax
push esi
push edi
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4020a7
push eax
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_SelectObject]
test eax, eax
je 0x4020a7
push 0xcc0020
push esi
push edi
xor eax, eax
push eax
push eax
push ebx
push esi
push edi
push eax
push eax
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_StretchBlt]
test eax, eax
je 0x4020a7
lea eax, [ebp - 0x44]
push eax
push 0x18
pop edi
push edi
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x4020a7
mov eax, dword [ebp - 0x32]
xor edx, edx
imul eax, dword [ebp - 0x34]
inc edx
movzx eax, ax
cmp ax, dx
jne 0x401ef0
mov esi, edx
jmp 0x401f21
push 4
pop esi
cmp ax, si
jbe 0x401f21
push 8
pop esi
cmp ax, si
jbe 0x401f21
push 0x10
pop esi
cmp ax, si
jbe 0x401f21
cmp ax, di
ja 0x401f1e
push 0x28
push 0x40
mov esi, edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x18
pop ecx
jmp 0x401f3e
push 0x20
pop esi
movzx ecx, si
mov eax, edx
shl eax, cl
mov dword [ebp - 4], ecx
lea eax, [eax*4 + 0x28]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp - 4]
mov edi, eax
push 0x18
mov dword [edi], 0x28
lea edx, [edi + 0x20]
mov eax, dword [ebp - 0x40]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x3c]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x18], eax
mov ax, word [ebp - 0x34]
mov word [edi + 0xc], ax
mov ax, word [ebp - 0x32]
mov word [edi + 0xe], ax
pop eax
mov dword [ebp - 4], edx
cmp si, ax
jae 0x401f85
xor eax, eax
inc eax
shl eax, cl
mov dword [edx], eax
jmp 0x401f88
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x14]
xor esi, esi
add eax, 7
mov dword [edi + 0x10], esi
cdq
and edx, 7
mov dword [edi + 0x24], esi
add eax, edx
sar eax, 3
imul eax, dword [ebp - 0x18]
imul eax, ecx
push eax
push esi
mov dword [edi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4020a7
movzx ecx, word [edi + 8]
push esi
push edi
push eax
push ecx
push esi
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
je 0x4020a7
push esi
push 0x80
push 2
push esi
push esi
push 0xc0000000
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4020a7
mov edx, dword [ebp - 4]
mov eax, 0x4d42
mov word [ebp - 0x2c], ax
mov eax, dword [edi]
push 0
mov edx, dword [edx]
lea edx, [edx*4 + 0xe]
add edx, dword [edi + 0x14]
add eax, edx
mov dword [ebp - 0x2a], eax
xor eax, eax
mov dword [ebp - 0x26], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov eax, dword [edi]
lea eax, [eax + ecx*4]
add eax, 0xe
mov dword [ebp - 0x22], eax
lea eax, [ebp - 0x10]
push eax
push 0xe
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4020a7
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
lea eax, [eax*4 + 0x28]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4020a7
push 0
lea eax, [ebp - 0x10]
push eax
push dword [edi + 0x14]
mov edi, dword [ebp - 0x18]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4020a7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4020a7
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esi, dword [sym.imp.USER32.dll_ReleaseDC]
push ebx
push 0
call esi
push dword [ebp - 8]
push 0
call esi
xor eax, eax
inc eax
jmp 0x4020a9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret