Function at 0x401000
Capabilities:
Access peb ldr_data
Capture screenshot
Get number of processors
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x128
mov esi, esp
mov dword [esi + 0x110], ebp
mov dword [esi + 0x114], esp
mov dword [esi + 0x120], 0xffffffff
mov dword [esi + 0x11c], 0x4046b0
lea eax, [esi + 0x118]
mov ecx, dword fs:[0]
mov dword [esi + 0x118], ecx
mov dword fs:[0], eax
call dword [sym.imp.USER32.dll_SetProcessDPIAware]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
lea ecx, [esi + 0x50]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x58]
mov ebx, dword [esi + 0x5c]
mov dword [esi], eax
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esi + 4], eax
push ebx
push dword [esi]
push edi
mov dword [esi + 0xc], edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esi + 8], eax
push eax
push dword [esi + 4]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x10], eax
push 0xcc0020
push 0
push 0
push edi
push ebx
mov edi, ebx
mov ebx, dword [esi]
push ebx
push 0
push 0
push dword [esi + 4]
call dword [sym.imp.GDI32.dll_BitBlt]
shl ebx, 5
lea eax, [ebx + 0x1f]
add ebx, 0x3e
test eax, eax
cmovns ebx, eax
sar ebx, 5
imul ebx, edi
lea eax, [ebx*4]
mov dword [esi + 0x14], eax
push eax
call fcn.00404863
add esp, 4
mov edx, dword [esi]
lea ecx, [ebx*4 + 0x36]
mov dword [esi + 0x1e], 0
mov word [esi + 0x18], 0x4d42
mov dword [esi + 0x22], 0x36
mov dword [esi + 0x28], 0x28
mov dword [esi + 0x1a], ecx
mov dword [esi + 0x2c], edx
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], 0x200001
mov dword [esi + 0x3c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
lea edx, [esi + 0x28]
push 0
push edx
mov dword [esi], eax
push eax
push edi
push 0
push dword [esi + 8]
push dword [esi + 0xc]
call dword [sym.imp.GDI32.dll_GetDIBits]
lea edi, [esi + 0x60]
mov ecx, edi
push 1
push 0x40
push 0x20
push str.Image.bmp
call fcn.00401270
mov dword [esi + 0x120], 0
lea eax, [esi + 0x18]
mov ecx, edi
push 0
push 0xe
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const___long_long___int64__]
lea ecx, [esi + 0x60]
push 0
push 0x28
lea eax, [esi + 0x28]
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const___long_long___int64__]
mov edx, dword [esi + 0x14]
lea ecx, [esi + 0x60]
mov eax, edx
sar eax, 0x1f
push eax
push edx
push dword [esi]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const___long_long___int64__]
push dword [esi]
call fcn.0040486c
add esp, 4
push dword [esi + 0x10]
mov edi, dword [esi + 4]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esi + 8]
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [esi + 0xc]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esi + 0x60]
lea edi, [esi + 0xc8]
mov eax, dword [eax + 4]
mov dword [esi + eax + 0x60], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [esi + 0x60]
mov eax, dword [eax + 4]
lea ecx, [eax - 0x68]
mov dword [esi + eax + 0x5c], ecx
lea ecx, [esi + 0x64]
call fcn.004024b0
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::ios_base::destructor_void_]
mov eax, dword [esi + 0x118]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret