Function at 0x10005640
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10054b4d
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10060040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x34]
mov dword [eax + 0xc], 0
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov edx, dword [ebp - 0x28]
shr edx, 5
cmp dword [ebp - 0x24], edx
jbe 0x100056a2
mov eax, dword [ebp - 0x34]
cmp dword [eax + 8], 0x400
jge 0x100056a2
jmp 0x10005836
mov ecx, dword [ebp - 0x34]
add ecx, 0x3c
push ecx
lea ecx, [ebp - 0x48]
call fcn.100054d0
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x38], 0
jmp 0x100056d1
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [eax + 8]
jge 0x1000581e
imul edx, dword [ebp - 0x38], 0x14
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
movzx edx, byte [ecx + edx + 4]
test edx, edx
jne 0x100057d0
imul eax, dword [ebp - 0x38], 0x14
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx]
movzx eax, byte [edx + eax + 6]
test eax, eax
jne 0x1000571e
push 0xffffffffffffffff
imul ecx, dword [ebp - 0x38], 0x14
mov edx, dword [ebp - 0x34]
add ecx, dword [edx]
push ecx
mov ecx, dword [ebp - 0x34]
call fcn.100061f0
jmp 0x100056c8
imul eax, dword [ebp - 0x38], 0x14
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx]
movzx eax, byte [edx + eax + 5]
cmp eax, 1
jne 0x100057d0
imul ecx, dword [ebp - 0x38], 0x14
mov edx, dword [ebp - 0x34]
mov eax, dword [edx]
cmp dword [eax + ecx + 8], 0
je 0x100057d0
imul ecx, dword [ebp - 0x38], 0x14
mov edx, dword [ebp - 0x34]
mov eax, dword [edx]
movzx ecx, byte [eax + ecx + 7]
cmp ecx, 1
jne 0x100057d0
imul edx, dword [ebp - 0x38], 0x14
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
mov edx, dword [ecx + edx + 8]
movzx eax, word [edx + 0xc]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x3c], 0
jmp 0x10005782
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
cmp edx, dword [ebp - 0x44]
jge 0x100057d0
imul eax, dword [ebp - 0x38], 0x14
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx]
mov eax, dword [edx + eax + 0x10]
mov ecx, dword [ebp - 0x3c]
movzx edx, byte [eax + ecx*8]
test edx, edx
jne 0x100057ba
mov eax, dword [ebp - 0x3c]
push eax
imul ecx, dword [ebp - 0x38], 0x14
mov edx, dword [ebp - 0x34]
add ecx, dword [edx]
push ecx
mov ecx, dword [ebp - 0x34]
call fcn.100061f0
jmp 0x100057ce
imul eax, dword [ebp - 0x38], 0x14
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx]
mov eax, dword [edx + eax + 0x10]
mov ecx, dword [ebp - 0x3c]
mov byte [eax + ecx*8], 0
jmp 0x10005779
imul edx, dword [ebp - 0x38], 0x14
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
add ecx, edx
imul edx, dword [ebp - 0x40], 0x14
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
add eax, edx
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov edx, dword [ecx + 0xc]
mov dword [eax + 0xc], edx
mov ecx, dword [ecx + 0x10]
mov dword [eax + 0x10], ecx
imul edx, dword [ebp - 0x40], 0x14
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
mov byte [ecx + edx + 6], 0
mov edx, dword [ebp - 0x40]
add edx, 1
mov dword [ebp - 0x40], edx
jmp 0x100056c8
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x40]
mov dword [eax + 8], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.10005580
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000b219
mov esp, ebp
pop ebp
ret