Function at 0x40300d
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push 0x40
call fcn.00405732
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 0x10
rep stosd dword es:[edi], eax
mov dword [ebp - 8], 0
mov ebx, dword [ebp - 4]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebx], 0x40
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40306b
push 6
call fcn.00405738
add esp, 4
cmp dword [ebp + 8], 0
jne 0x403116
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
fild qword [ebx]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fdiv qword [0x41738b]
fstp qword [ebp - 0x1c]
push 0
push 0
push 0
push 0x80000601
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push 2
mov ebx, 0x68
call fcn.004067e0
add esp, 0x1c
push 0x80000601
push edx
push eax
push 1
mov ebx, 0x168
call fcn.004068e0
add esp, 0x10
mov dword [ebp - 0x28], eax
push 0x417393
push dword [ebp - 0x28]
mov ecx, 2
call fcn.00401149
add esp, 8
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4030f9
push ebx
call fcn.00405744
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40310d
push ebx
call fcn.00405744
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x403468
cmp dword [ebp + 8], 1
jne 0x4031c1
mov ebx, dword [ebp - 4]
add ebx, 0x10
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
fild qword [ebx]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fdiv qword [0x41738b]
fstp qword [ebp - 0x1c]
push 0
push 0
push 0
push 0x80000601
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push 2
mov ebx, 0x68
call fcn.004067e0
add esp, 0x1c
push 0x80000601
push edx
push eax
push 1
mov ebx, 0x168
call fcn.004068e0
add esp, 0x10
mov dword [ebp - 0x28], eax
push 0x417393
push dword [ebp - 0x28]
mov ecx, 2
call fcn.00401149
add esp, 8
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4031a4
push ebx
call fcn.00405744
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4031b8
push ebx
call fcn.00405744
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x403468
cmp dword [ebp + 8], 2
jne 0x40326c
mov ebx, dword [ebp - 4]
add ebx, 0x28
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
fild qword [ebx]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fdiv qword [0x41738b]
fstp qword [ebp - 0x1c]
push 0
push 0
push 0
push 0x80000601
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push 2
mov ebx, 0x68
call fcn.004067e0
add esp, 0x1c
push 0x80000601
push edx
push eax
push 1
mov ebx, 0x168
call fcn.004068e0
add esp, 0x10
mov dword [ebp - 0x28], eax
push 0x417393
push dword [ebp - 0x28]
mov ecx, 2
call fcn.00401149
add esp, 8
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40324f
push ebx
call fcn.00405744
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x403263
push ebx
call fcn.00405744
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x403468
cmp dword [ebp + 8], 3
jne 0x403317
mov ebx, dword [ebp - 4]
add ebx, 0x30
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
fild qword [ebx]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fdiv qword [0x41738b]
fstp qword [ebp - 0x1c]
push 0
push 0
push 0
push 0x80000601
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push 2
mov ebx, 0x68
call fcn.004067e0
add esp, 0x1c
push 0x80000601
push edx
push eax
push 1
mov ebx, 0x168
call fcn.004068e0
add esp, 0x10
mov dword [ebp - 0x28], eax
push 0x417393
push dword [ebp - 0x28]
mov ecx, 2
call fcn.00401149
add esp, 8
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4032fa
push ebx
call fcn.00405744
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40330e
push ebx
call fcn.00405744
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x403468
cmp dword [ebp + 8], 4
jne 0x4033c2
mov ebx, dword [ebp - 4]
add ebx, 0x18
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
fild qword [ebx]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fdiv qword [0x41738b]
fstp qword [ebp - 0x1c]
push 0
push 0
push 0
push 0x80000601
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push 2
mov ebx, 0x68
call fcn.004067e0
add esp, 0x1c
push 0x80000601
push edx
push eax
push 1
mov ebx, 0x168
call fcn.004068e0
add esp, 0x10
mov dword [ebp - 0x28], eax
push 0x417393
push dword [ebp - 0x28]
mov ecx, 2
call fcn.00401149
add esp, 8
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4033a5
push ebx
call fcn.00405744
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4033b9
push ebx
call fcn.00405744
add esp, 4
pop eax
mov dword [ebp - 8], eax
jmp 0x403468
cmp dword [ebp + 8], 5
jne 0x403468
mov ebx, dword [ebp - 4]
add ebx, 0x20
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
fild qword [ebx]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fdiv qword [0x41738b]
fstp qword [ebp - 0x1c]
push 0
push 0
push 0
push 0x80000601
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push 2
mov ebx, 0x68
call fcn.004067e0
add esp, 0x1c
push 0x80000601
push edx
push eax
push 1
mov ebx, 0x168
call fcn.004068e0
add esp, 0x10
mov dword [ebp - 0x28], eax
push 0x417393
push dword [ebp - 0x28]
mov ecx, 2
call fcn.00401149
add esp, 8
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x403450
push ebx
call fcn.00405744
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x403464
push ebx
call fcn.00405744
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x403484
push eax
mov ebx, eax
call fcn.004010de
inc eax
push eax
call fcn.00405732
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x403489
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.00405744
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4034a6
push ebx
call fcn.00405744
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8