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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x12c
mov ebx, dword [sym.imp.USER32.dll_GetDC]
mov dword [esp], 0
call ebx
sub esp, 4
mov ebp, eax
mov eax, dword [esp + 0x140]
mov dword [esp], eax
call ebx
sub esp, 4
mov ebx, eax
mov dword [esp], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
sub esp, 4
test eax, eax
je 0x401cc8
mov esi, eax
lea eax, [esp + 0x6c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x140]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetClientRect]
sub esp, 8
mov dword [esp + 4], 4
mov dword [esp], ebx
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
sub esp, 8
mov dword [esp], 1
call edi
sub esp, 4
mov dword [esp + 0x3c], eax
mov dword [esp], 0
call edi
sub esp, 4
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x28], 0xcc0020
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], ebp
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.GDI32.dll_StretchBlt]
sub esp, 0x2c
test eax, eax
je 0x401c80
mov eax, dword [esp + 0x78]
sub eax, dword [esp + 0x70]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x74]
sub eax, dword [esp + 0x6c]
mov dword [esp + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
sub esp, 0xc
mov dword [esp + 0x3c], eax
test eax, eax
je 0x401ca0
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.GDI32.dll_SelectObject]
sub esp, 8
mov eax, dword [esp + 0x78]
sub eax, dword [esp + 0x70]
mov dword [esp + 0x20], 0xcc0020
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x74]
sub eax, dword [esp + 0x6c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.GDI32.dll_BitBlt]
sub esp, 0x24
test eax, eax
je 0x401ce8
lea eax, [esp + 0x7c]
mov dword [esp + 4], 0x18
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call dword [sym.imp.GDI32.dll_GetObjectA]
sub esp, 0xc
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
mov dword [esp + 0x94], 0x28
mov dword [esp + 0xa0], 0x200001
mov dword [esp + 0x98], eax
shl eax, 5
lea ecx, [eax + 0x3e]
add eax, 0x1f
mov dword [esp + 0x9c], edx
cmovns ecx, eax
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
sar ecx, 5
mov dword [esp + 0xac], 0
imul ecx, edx
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
lea edi, [ecx*4]
mov dword [esp], 0x42
mov dword [esp + 4], edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
sub esp, 8
mov dword [esp + 0x44], eax
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
sub esp, 4
lea ecx, [esp + 0x94]
mov dword [esp + 0x48], eax
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 4], ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp], ebx
call dword [sym.imp.GDI32.dll_GetDIBits]
lea ecx, [edi + 0x36]
mov eax, 0x4d42
sub esp, 0x1c
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x40], edi
lea edi, [esp + 0xbc]
mov dword [esp + 0x68], 0x36
mov word [esp + 0x5e], ax
mov dword [esp], 0
call dword [sym.imp.msvcrt.dll_time]
lea edx, [esp + 0x58]
mov dword [esp], edx
mov dword [esp + 0x58], eax
call dword [sym.imp.msvcrt.dll_localtime]
mov ecx, 0x19
mov edx, eax
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], edx
lea edx, [esp + 0xbc]
mov dword [esp], edx
mov dword [esp + 8], str._Y__m__d__S
mov dword [esp + 4], 0x64
call sub.msvcrt.dll_strftime
mov ecx, dword [esp + 0x4c]
mov dword [esp], str.SCREENSHOT:_s.bmp:_i
mov dword [esp + 8], ecx
lea ecx, [esp + 0xbc]
mov dword [esp + 4], ecx
call fcn.00401e60
mov dword [esp], 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 4
lea ecx, [esp + 0x58]
lea eax, [esp + 0x5e]
mov dword [esp + 0x58], 0
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x144]
mov dword [esp + 0x10], 0
mov dword [esp], ecx
mov dword [esp + 8], 0xe
mov dword [esp + 4], eax
call edi
sub esp, 0x14
lea ecx, [esp + 0x58]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
lea ecx, [esp + 0x94]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x144]
mov dword [esp + 8], 0x28
mov dword [esp], ecx
call edi
sub esp, 0x14
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x58]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 4], edx
mov edx, dword [esp + 0x144]
mov dword [esp + 8], eax
mov dword [esp], edx
call edi
sub esp, 0x14
mov edi, dword [esp + 0x44]
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
sub esp, 4
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
sub esp, 4
mov eax, dword [esp + 0x3c]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esp], eax
call edi
sub esp, 4
mov dword [esp], esi
call edi
sub esp, 4
mov esi, dword [sym.imp.USER32.dll_ReleaseDC]
mov dword [esp + 4], ebp
mov dword [esp], 0
call esi
sub esp, 8
mov eax, dword [esp + 0x140]
mov dword [esp + 4], ebx
mov dword [esp], eax
call esi
xor eax, eax
sub esp, 8
add esp, 0x12c
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.StretchBlt_has_failed_Error__i
mov dword [esp + 4], eax
call fcn.00401e60
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x401c3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.CreateCompatibleBitmap_Failed_Error__i
mov dword [esp + 4], eax
call fcn.00401e60
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x401c3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.CreateCompatibleDC_has_failed_Error__i
mov dword [esp + 4], eax
call fcn.00401e60
jmp 0x401c44
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.BitBlt_has_failed_Error__i
mov dword [esp + 4], eax
call fcn.00401e60
jmp 0x401c2a