Function at 0x41c1b0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x427008]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
push edi
mov byte [esp + 0x13], 1
mov edi, dword [esi + 4]
mov ecx, dword [edi + 0x10]
call fcn.0041d3c0
mov ebx, dword [edi + 0xc]
mov ecx, eax
and ebx, dword [ebp + 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], 0x40
nop word [eax + eax]
mov eax, dword [esi + 4]
mov edi, dword [ebp + 0xc]
cmp ecx, dword [eax + 0x14]
jb 0x41c220
mov eax, edi
mov ecx, esi
cdq
add eax, dword [ebp + 0x10]
adc edx, dword [ebp + 0x14]
push edx
push eax
call fcn.0041c0c0
mov eax, dword [esi + 4]
mov eax, dword [eax + 8]
add edi, ebx
cmp edi, eax
cmovge edi, eax
sub edi, ebx
push edi
push dword [esp + 0x18]
call dword [0x427764]
mov cl, al
add esp, 8
mov eax, dword [esp + 0x1c]
lea edx, [eax*4]
mov eax, dword [esi + 4]
mov dword [esp + 0x18], edx
mov eax, dword [eax + 0x18]
mov eax, dword [edx + eax]
mov dword [esp + 0x20], eax
test eax, eax
je 0x41c333
test cl, cl
je 0x41c2ad
push edi
push dword [esp + 0x18]
add eax, ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dl, byte [esp + 0x13]
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov ecx, dword [esp + 0x1c]
sub eax, edi
add dword [esp + 0x14], edi
inc ecx
mov dword [esp + 0x1c], ecx
mov dword [ebp + 0xc], eax
test eax, eax
jg 0x41c200
mov ecx, dword [esp + 0x6c]
mov al, dl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041c61b
mov esp, ebp
pop ebp
ret 0x10
push ebx
push eax
call dword [0x427764]
add esp, 8
test al, al
jne 0x41c31f
mov eax, dword [esi + 4]
mov eax, dword [eax + 8]
sub eax, edi
sub eax, ebx
push eax
mov eax, dword [esp + 0x24]
add eax, edi
add eax, ebx
push eax
call dword [0x427764]
add esp, 8
test al, al
jne 0x41c31f
push 0x8000
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0
push eax
lea eax, [esp + 0x28]
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtFreeVirtualMemory]
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x18]
mov eax, dword [eax + 0x18]
mov dword [ecx + eax], 0
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x1c]
mov eax, dword [esi + 4]
dec ecx
mov dword [eax + 0x1c], ecx
jmp 0x41c274
mov eax, dword [esp + 0x20]
push edi
add eax, ebx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
jmp 0x41c271
test cl, cl
je 0x41c274
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
cmp dword [esp + 0x4c], 0
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 8]
mov dword [esp + 0x24], eax
ja 0x41c361
cmp dword [esp + 0x48], 0x6400000
jb 0x41c3b2
push 4
push 0x3000
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 0x18]
add eax, dword [esp + 0x24]
push 0
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
test eax, eax
jne 0x41c3b2
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x18]
push edi
push dword [esp + 0x18]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + ecx]
add eax, ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esi + 4]
add esp, 0xc
mov ecx, dword [eax + 0x1c]
mov eax, dword [esi + 4]
inc ecx
mov dword [eax + 0x1c], ecx
jmp 0x41c274
xor dl, dl
mov byte [esp + 0x13], dl
jmp 0x41c278