Function at 0x403822
Capabilities:
Get memory capacity
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x2ec]
sub esp, 0x36c
mov eax, dword [0x411198]
xor eax, ebp
mov dword [ebp + 0x2e8], eax
push ebx
mov ebx, dword [ebp + 0x2f4]
push esi
push edi
lea eax, [ebp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx eax, word [ebp + 0x46]
push eax
movzx eax, word [ebp + 0x44]
push eax
movzx eax, word [ebp + 0x3c]
push eax
movzx eax, word [ebp + 0x42]
push eax
movzx eax, word [ebp + 0x3e]
push eax
push 0x7d5
call fcn.00401948
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push eax
lea eax, [ebp + 0x154]
push eax
call edi
add esp, 0x1c
push 0
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x154]
push eax
call fcn.004061b0
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
pop ecx
push eax
lea eax, [ebp + 0x154]
push eax
push ebx
call esi
push 0x105
lea eax, [ebp + 0x4c]
push eax
push dword [0x4124bc]
mov byte [ebp + 0x4c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp + 0x4c]
push eax
push 0x7d6
call fcn.00401948
push eax
lea eax, [ebp + 0x154]
push eax
call edi
add esp, 0xc
push 0
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x154]
push eax
call fcn.004061b0
pop ecx
push eax
lea eax, [ebp + 0x154]
push eax
push ebx
call esi
push 0x94
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.004011b7
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x78], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push dword [ebp - 0x70]
push dword [ebp - 0x74]
push 0x7d7
call fcn.00401948
push eax
lea eax, [ebp + 0x154]
push eax
call edi
add esp, 0x10
push 0
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x154]
push eax
call fcn.004061b0
pop ecx
push eax
lea eax, [ebp + 0x154]
push eax
push ebx
call esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x80], eax
cmp eax, 0x80000000
jae 0x403972
push 0x7d8
jmp 0x403982
cmp al, 4
jae 0x40397d
push 0x7d9
jmp 0x403982
push 0x7da
call fcn.00401948
push eax
lea eax, [ebp + 0x154]
push eax
call edi
pop ecx
pop ecx
push 0
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x154]
push eax
call fcn.004061b0
pop ecx
push eax
lea eax, [ebp + 0x154]
push eax
push ebx
call esi
mov eax, dword [ebp - 0x80]
shr eax, 8
movzx eax, al
push eax
movzx eax, byte [ebp - 0x80]
push eax
push 0x7db
call fcn.00401948
push eax
lea eax, [ebp + 0x154]
push eax
call edi
add esp, 0x10
push 0
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x154]
push eax
call fcn.004061b0
pop ecx
push eax
lea eax, [ebp + 0x154]
push eax
push ebx
call esi
lea eax, [ebp + 0x1c]
push eax
mov dword [ebp + 0x1c], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
push dword [ebp + 0x20]
push 0x7dc
call fcn.00401948
push eax
lea eax, [ebp + 0x154]
push eax
call edi
add esp, 0xc
push 0
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x154]
push eax
call fcn.004061b0
pop ecx
push eax
lea eax, [ebp + 0x154]
push eax
push ebx
call esi
mov eax, dword [ebp + 0x24]
shr eax, 0xa
push eax
push 0x7dd
call fcn.00401948
push eax
lea eax, [ebp + 0x154]
push eax
call edi
add esp, 0xc
push 0
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x154]
push eax
call fcn.004061b0
pop ecx
push eax
lea eax, [ebp + 0x154]
push eax
push ebx
call esi
mov eax, dword [ebp + 0x28]
shr eax, 0xa
push eax
push 0x7de
call fcn.00401948
push eax
lea eax, [ebp + 0x154]
push eax
call edi
add esp, 0xc
push 0
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x154]
push eax
call fcn.004061b0
pop ecx
push eax
lea eax, [ebp + 0x154]
push eax
push ebx
call esi
mov eax, dword [ebp + 0x34]
shr eax, 0xa
push eax
push 0x7df
call fcn.00401948
push eax
lea eax, [ebp + 0x154]
push eax
call edi
add esp, 0xc
push 0
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x154]
push eax
call fcn.004061b0
pop ecx
push eax
lea eax, [ebp + 0x154]
push eax
push ebx
call esi
mov eax, dword [ebp + 0x38]
shr eax, 0xa
push eax
push 0x7e0
call fcn.00401948
push eax
lea eax, [ebp + 0x154]
push eax
call edi
add esp, 0xc
push 0
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x154]
push eax
call fcn.004061b0
pop ecx
push eax
lea eax, [ebp + 0x154]
push eax
push ebx
call esi
mov ecx, dword [ebp + 0x2e8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004060d3
add ebp, 0x2ec
leave
ret