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

Disassembly:
push ebp
lea ebp, [esp - 0x2ec]
sub esp, 0x36c
mov eax, dword [0x41a4c0]
xor eax, ebp
mov dword [ebp + 0x2e8], eax
push ebx
mov ebx, dword [ebp + 0x2f4]
push esi
push edi
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx eax, word [ebp - 0x56]
push eax
movzx eax, word [ebp - 0x58]
push eax
movzx eax, word [ebp - 0x60]
push eax
movzx eax, word [ebp - 0x5a]
push eax
movzx eax, word [ebp - 0x5e]
push eax
mov ecx, 0x7d5
call fcn.004025e0
push eax
mov esi, 0x191
lea eax, [ebp + 0x154]
push esi
push eax
call fcn.0040b105
add esp, 0x20
cmp eax, 0xffffffff
jne 0x40198a
push 0xcb7
push str.sfxhead.c
call fcn.004022e7
pop ecx
pop ecx
push 0
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp + 0x154]
push eax
call fcn.0040a830
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
pop ecx
push eax
lea eax, [ebp + 0x154]
push eax
push ebx
call edi
push 0x105
lea eax, [ebp + 0x4c]
push eax
push dword [0x41b560]
mov byte [ebp + 0x4c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp + 0x4c]
push eax
mov ecx, 0x7d6
call fcn.004025e0
push eax
lea eax, [ebp + 0x154]
push esi
push eax
call fcn.0040b105
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4019fc
push 0xcc1
push str.sfxhead.c
call fcn.004022e7
pop ecx
pop ecx
push 0
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp + 0x154]
push eax
call fcn.0040a830
pop ecx
push eax
lea eax, [ebp + 0x154]
push eax
push ebx
call edi
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x48], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp eax, 1
je 0x401a41
push 0xcc7
push str.sfxhead.c
call fcn.004022e7
pop ecx
pop ecx
push dword [ebp - 0x40]
mov ecx, 0x7d7
push dword [ebp - 0x44]
call fcn.004025e0
push eax
lea eax, [ebp + 0x154]
push esi
push eax
call fcn.0040b105
add esp, 0x14
cmp eax, 0xffffffff
jne 0x401a78
push 0xcca
push str.sfxhead.c
call fcn.004022e7
pop ecx
pop ecx
push 0
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp + 0x154]
push eax
call fcn.0040a830
pop ecx
push eax
lea eax, [ebp + 0x154]
push eax
push ebx
call edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
mov dword [ebp - 0x50], eax
jae 0x401acd
mov ecx, 0x7d8
call fcn.004025e0
push eax
lea eax, [ebp + 0x154]
push esi
push eax
call fcn.0040b105
add esp, 0xc
cmp eax, 0xffffffff
jne 0x401b29
push 0xcd3
jmp 0x401b1d
cmp al, 4
jae 0x401af8
mov ecx, 0x7d9
call fcn.004025e0
push eax
lea eax, [ebp + 0x154]
push esi
push eax
call fcn.0040b105
add esp, 0xc
cmp eax, 0xffffffff
jne 0x401b29
push 0xcd6
jmp 0x401b1d
mov ecx, 0x7da
call fcn.004025e0
push eax
lea eax, [ebp + 0x154]
push esi
push eax
call fcn.0040b105
add esp, 0xc
cmp eax, 0xffffffff
jne 0x401b29
push 0xcd9
push str.sfxhead.c
call fcn.004022e7
pop ecx
pop ecx
push 0
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp + 0x154]
push eax
call fcn.0040a830
pop ecx
push eax
lea eax, [ebp + 0x154]
push eax
push ebx
call edi
movzx eax, byte [ebp - 0x4f]
push eax
movzx eax, byte [ebp - 0x50]
push eax
mov ecx, 0x7db
call fcn.004025e0
push eax
lea eax, [ebp + 0x154]
push esi
push eax
call fcn.0040b105
add esp, 0x14
cmp eax, 0xffffffff
jne 0x401b82
push 0xcde
push str.sfxhead.c
call fcn.004022e7
pop ecx
pop ecx
push 0
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp + 0x154]
push eax
call fcn.0040a830
pop ecx
push eax
lea eax, [ebp + 0x154]
push eax
push ebx
call edi
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
push dword [ebp - 0x7c]
mov ecx, 0x7dc
call fcn.004025e0
push eax
lea eax, [ebp + 0x154]
push esi
push eax
call fcn.0040b105
add esp, 0x10
cmp eax, 0xffffffff
jne 0x401be5
push 0xce5
push str.sfxhead.c
call fcn.004022e7
pop ecx
pop ecx
push 0
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp + 0x154]
push eax
call fcn.0040a830
pop ecx
push eax
lea eax, [ebp + 0x154]
push eax
push ebx
call edi
mov eax, dword [ebp - 0x78]
shr eax, 0xa
push eax
mov ecx, 0x7dd
call fcn.004025e0
push eax
lea eax, [ebp + 0x154]
push esi
push eax
call fcn.0040b105
add esp, 0x10
cmp eax, 0xffffffff
jne 0x401c3b
push 0xce9
push str.sfxhead.c
call fcn.004022e7
pop ecx
pop ecx
push 0
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp + 0x154]
push eax
call fcn.0040a830
pop ecx
push eax
lea eax, [ebp + 0x154]
push eax
push ebx
call edi
mov eax, dword [ebp - 0x74]
shr eax, 0xa
push eax
mov ecx, 0x7de
call fcn.004025e0
push eax
lea eax, [ebp + 0x154]
push esi
push eax
call fcn.0040b105
add esp, 0x10
cmp eax, 0xffffffff
jne 0x401c91
push 0xced
push str.sfxhead.c
call fcn.004022e7
pop ecx
pop ecx
push 0
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp + 0x154]
push eax
call fcn.0040a830
pop ecx
push eax
lea eax, [ebp + 0x154]
push eax
push ebx
call edi
mov eax, dword [ebp - 0x68]
shr eax, 0xa
push eax
mov ecx, 0x7df
call fcn.004025e0
push eax
lea eax, [ebp + 0x154]
push esi
push eax
call fcn.0040b105
add esp, 0x10
cmp eax, 0xffffffff
jne 0x401ce7
push 0xcf1
push str.sfxhead.c
call fcn.004022e7
pop ecx
pop ecx
push 0
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp + 0x154]
push eax
call fcn.0040a830
pop ecx
push eax
lea eax, [ebp + 0x154]
push eax
push ebx
call edi
mov eax, dword [ebp - 0x64]
shr eax, 0xa
push eax
mov ecx, 0x7e0
call fcn.004025e0
push eax
lea eax, [ebp + 0x154]
push esi
push eax
call fcn.0040b105
add esp, 0x10
cmp eax, 0xffffffff
jne 0x401d3d
push 0xcf5
push str.sfxhead.c
call fcn.004022e7
pop ecx
pop ecx
push 0
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp + 0x154]
push eax
call fcn.0040a830
pop ecx
push eax
lea eax, [ebp + 0x154]
push eax
push ebx
call edi
mov ecx, dword [ebp + 0x2e8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040aba0
add ebp, 0x2ec
leave
ret