Function at 0x1001b604
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1001b68d
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax]
test eax, eax
je 0x1001b67b
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0xc]
mov dword [eax], 0
jmp 0x1001b65c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 3
jge 0x1001b679
mov eax, dword [ebp - 0xc]
push dword [eax]
mov ecx, dword [ebp - 0x30]
call fcn.1002cc7e
mov dword [eax], 0xea5d840d
jmp 0x1001b651
jmp 0x1001b688
push 0xefd
push 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x1001b846
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x34]
movzx eax, byte [eax]
test eax, eax
je 0x1001b6b0
push 0
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
jmp 0x1001b846
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x3c], 0x1c41
cmp dword [ebp - 0x3c], 0xa30
jge 0x1001b835
xor eax, eax
inc eax
imul eax, eax, 0
mov byte [eax + 0x106e5b68], 1
xor eax, eax
inc eax
shl eax, 0
mov byte [eax + 0x106e5b68], 1
call fcn.1001b59c
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x1065dcc0
call fcn.1002c299
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
add ecx, dword [eax + 4]
call fcn.100099fb
movzx eax, al
test eax, eax
je 0x1001b835
cmp dword [ebp - 0x10], 0
je 0x1001b835
mov byte [ebp - 1], 0
and dword [ebp - 8], 0
jmp 0x1001b730
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov ecx, 0x10a224a4
call fcn.1002cc75
cmp dword [ebp - 8], eax
jae 0x1001b80d
push dword [ebp - 8]
mov ecx, 0x10a224a4
call fcn.1002cc7e
mov eax, dword [eax]
cmp eax, dword [ebp - 0x10]
jge 0x1001b80d
push dword [ebp - 8]
mov ecx, 0x10a224a4
call fcn.1002cc7e
mov ecx, dword [ebp - 0x10]
sub ecx, dword [eax]
mov dword [ebp - 0x40], ecx
lea eax, [ebp - 0x48]
push eax
mov ecx, 0x10a224a4
call fcn.1002cc0e
push dword [eax]
lea eax, [ebp - 0x4c]
push eax
mov ecx, 0x10a224a4
call fcn.1002cc00
push dword [eax]
lea ecx, [ebp - 0x40]
call fcn.10031711
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x1001b808
mov byte [ebp - 1], 1
push fcn.1003148b
push dword [ebp - 8]
mov ecx, 0x10a224a4
call fcn.1002cc7e
mov ecx, dword [ebp - 0x10]
sub ecx, dword [eax]
push ecx
push dword [ebp - 8]
mov ecx, 0x10a224a4
call fcn.1002cc7e
push dword [eax]
push dword [ebp - 0x10]
mov ecx, 0x1065dc18
call fcn.1002c6be
mov edx, 0x10007d08
mov ecx, eax
call fcn.100312b4
mov ecx, eax
call fcn.1002c6be
mov edx, 0x10007d04
mov ecx, eax
call fcn.100312b4
mov ecx, eax
call fcn.1002c6be
mov ecx, eax
call fcn.1002c6b2
jmp 0x1001b80d
jmp 0x1001b729
movzx eax, byte [ebp - 1]
test eax, eax
jne 0x1001b830
push fcn.1003148b
mov edx, 0x10007d0c
mov ecx, 0x1065dc18
call fcn.100312b4
mov ecx, eax
call fcn.1002c6b2
jmp 0x1001b6e9
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov esp, ebp
pop ebp
ret