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

Disassembly:
push ebp
sub esp, 0x320
lea ebp, [esp - 4]
mov eax, dword [0x42c9d8]
xor eax, ebp
mov dword [ebp + 0x320], eax
push 0x44
mov eax, 0x4231db
call fcn.00414b99
mov edi, dword [ebp + 0x32c]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea ecx, [ebp - 0x10]
call fcn.0040ff30
xor ebx, ebx
push 0x7d5
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
call fcn.00410450
movzx ecx, word [ebp - 0x26]
push ecx
movzx ecx, word [ebp - 0x28]
push ecx
movzx ecx, word [ebp - 0x30]
push ecx
movzx ecx, word [ebp - 0x2a]
push ecx
movzx ecx, word [ebp - 0x2e]
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00410300
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004102b0
add esp, 0x1c
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.004104d0
push ebx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.00410230
push eax
lea ecx, [ebp - 0x10]
call fcn.0040dd10
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
push edi
call esi
push 0x104
lea eax, [ebp + 0x114]
push eax
push dword [0x42db00]
mov word [ebp + 0x114], bx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x7d6
lea ecx, [ebp - 0x1c]
call fcn.00410450
lea ecx, [ebp + 0x114]
push ecx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00410300
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004102b0
add esp, 0xc
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.004104d0
push ebx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.00410230
push eax
lea ecx, [ebp - 0x10]
call fcn.0040dd10
push eax
push edi
call esi
mov dword [ebp], 0x114
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
dec eax
neg eax
sbb al, al
inc al
jne 0x4026b0
push 0x9a0
push str.sfxheadw.c
call fcn.004033af
pop ecx
pop ecx
push 0x7d7
lea ecx, [ebp - 0x1c]
call fcn.00410450
push dword [ebp + 8]
mov ecx, eax
push dword [ebp + 4]
mov byte [ebp - 4], 3
call fcn.00410300
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004102b0
add esp, 0x10
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.004104d0
push ebx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.00410230
push eax
lea ecx, [ebp - 0x10]
call fcn.0040dd10
push eax
push edi
call esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
mov dword [ebp - 0x1c], eax
jae 0x402717
push 0x7d8
jmp 0x402727
cmp al, 4
jae 0x402722
push 0x7d9
jmp 0x402727
push 0x7da
lea ecx, [ebp - 0x10]
call fcn.00410550
push ebx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.00410230
push eax
lea ecx, [ebp - 0x10]
call fcn.0040dd10
push eax
push edi
call esi
push 0x7db
lea ecx, [ebp - 0x14]
call fcn.00410450
movzx ecx, byte [ebp - 0x1b]
push ecx
movzx ecx, byte [ebp - 0x1c]
push ecx
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.00410300
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004102b0
add esp, 0x10
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004104d0
push ebx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.00410230
push eax
lea ecx, [ebp - 0x10]
call fcn.0040dd10
push eax
push edi
call esi
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x50], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
push 0x7dc
lea ecx, [ebp - 0x14]
call fcn.00410450
push dword [ebp - 0x4c]
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00410300
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004102b0
add esp, 0xc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004104d0
push ebx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.00410230
push eax
lea ecx, [ebp - 0x10]
call fcn.0040dd10
push eax
push edi
call esi
push 0x7dd
lea ecx, [ebp - 0x14]
call fcn.00410450
mov ecx, dword [ebp - 0x48]
mov byte [ebp - 4], 6
shr ecx, 0xa
push ecx
mov ecx, eax
call fcn.00410300
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004102b0
add esp, 0xc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004104d0
push ebx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.00410230
push eax
lea ecx, [ebp - 0x10]
call fcn.0040dd10
push eax
push edi
call esi
push 0x7de
lea ecx, [ebp - 0x14]
call fcn.00410450
mov ecx, dword [ebp - 0x44]
shr ecx, 0xa
push ecx
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.00410300
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004102b0
add esp, 0xc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004104d0
push ebx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.00410230
push eax
lea ecx, [ebp - 0x10]
call fcn.0040dd10
push eax
push edi
call esi
push 0x7df
lea ecx, [ebp - 0x14]
call fcn.00410450
mov ecx, dword [ebp - 0x38]
shr ecx, 0xa
push ecx
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.00410300
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004102b0
add esp, 0xc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004104d0
push ebx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.00410230
push eax
lea ecx, [ebp - 0x10]
call fcn.0040dd10
push eax
push edi
call esi
push 0x7e0
lea ecx, [ebp - 0x14]
call fcn.00410450
mov ecx, dword [ebp - 0x34]
shr ecx, 0xa
push ecx
mov ecx, eax
mov byte [ebp - 4], 9
call fcn.00410300
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004102b0
add esp, 0xc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.004104d0
push ebx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.00410230
push eax
lea ecx, [ebp - 0x10]
call fcn.0040dd10
push eax
push edi
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004104d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x320]
xor ecx, ebp
call fcn.004147a9
add ebp, 0x324
leave
ret