Function at 0x41fe89
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push ebx
push esi
push edi
push 0xa
push 0
push dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.msvcrt.dll__strtoui64]
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x1c]
mov eax, edx
mov dword [ebp - 0x14], eax
push dword [ebp + 8]
mov dword [ebp - 0x24], eax
call fcn.0043236a
lea edi, [ebx + 0xa4]
cmp dword [edi + 0x18], 0
je 0x41fed6
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x28]
add ebx, 0x9c
push eax
lea eax, [ebp - 0x44]
mov ecx, ebx
push eax
call fcn.004363e6
mov esi, dword [ebp - 0x3c]
cmp byte [esi + 0xd], 0
jne 0x41ff09
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00436db4
test al, al
jne 0x41ff09
mov eax, dword [ebx]
jmp 0x41ff0d
mov esi, dword [ebx]
mov eax, esi
cmp esi, eax
jne 0x420181
push 0x3c
xor esi, esi
mov dword [ebp - 0x88], 0x40
lea eax, [ebp - 0x84]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, 0x10000000
cmp dword [ebp - 0x64], esi
ja 0x41ff4f
cmp dword [ebp - 0x68], eax
jbe 0x41ff5b
cmp dword [ebp - 0x54], esi
ja 0x41ff98
jb 0x41ff5b
cmp dword [ebp - 0x58], eax
ja 0x41ff98
mov eax, dword [ebx]
mov eax, dword [eax]
mov dword [ebp + 8], eax
jmp 0x41ff79
push dword [eax + 0x18]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
lea ecx, [ebp + 8]
call fcn.00430288
mov eax, dword [ebp + 8]
cmp byte [eax + 0xd], 0
je 0x41ff64
mov esi, dword [ebx]
mov ecx, ebx
push dword [esi + 4]
push ebx
call fcn.0043459f
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
and dword [ebx + 4], 0
call fcn.0043d5bb
push eax
lea ecx, [ebp + 8]
call fcn.0043bbe8
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
shrd eax, ecx, 0xb
push eax
lea eax, [ebp + 8]
push str.package_u.cab
push eax
call fcn.004395b1
mov eax, dword [ebp - 4]
lea ecx, [ebp + 8]
add esp, 0xc
push ecx
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [eax + 0x94]
call fcn.0043679f
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x18], esi
cmp byte [esi + 0xd], 0
jne 0x420000
lea eax, [esi + 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00436e43
test al, al
jne 0x420000
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x94]
jmp 0x42000e
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x94]
mov eax, esi
mov dword [ebp - 0x18], esi
cmp esi, eax
je 0x420134
lea ecx, [ebp - 0x30]
call fcn.00431b08
mov edx, dword [esi + 0x14]
lea ecx, [ebp - 0x14]
call fcn.0041f843
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [eax]
call fcn.0041f86a
pop ecx
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.0043d912
mov eax, dword [ebp - 0x30]
mov esi, dword [eax]
mov dword [ebp - 0x14], esi
cmp esi, eax
je 0x4200f9
mov eax, dword [esi + 0x14]
mov eax, dword [eax]
mov dword [ebp - 8], eax
add eax, 8
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov dword [ebp - 0xc], eax
pop ecx
test eax, eax
je 0x4200db
mov edx, dword [esi + 0x14]
lea ecx, [ebp - 8]
push ecx
lea ecx, [eax + 8]
push ecx
push dword [edx]
push dword [edx + 4]
call fcn.004815f0
mov eax, dword [ebp - 8]
add eax, 8
push eax
push dword [ebp - 0xc]
call dword [sym.imp.msvcrt.dll_realloc]
mov ecx, eax
mov dword [ebp - 0x10], eax
add esp, 0x18
test ecx, ecx
jne 0x4200a1
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
mov eax, dword [esi + 0x14]
push 0xa
push 0
mov eax, dword [eax]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 8]
mov dword [ecx], eax
push dword [esi + 0x10]
call dword [sym.imp.msvcrt.dll__strtoui64]
add esp, 0xc
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x34], edx
mov ecx, ebx
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00434510
mov ecx, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [eax + 0x18], ecx
push dword [esi + 0x14]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
lea ecx, [ebp - 0x14]
call fcn.00430288
mov esi, dword [ebp - 0x14]
cmp esi, dword [ebp - 0x30]
jne 0x420050
mov esi, dword [ebp - 0x18]
push dword [esi + 0x14]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov ecx, dword [ebp - 4]
push esi
lea ecx, [ecx + 0x94]
call fcn.00432ae9
mov esi, eax
mov ecx, dword [esi + 0x10]
sub ecx, 0x10
call fcn.0043d912
push 0x18
pop edx
mov ecx, esi
call fcn.0043b4cf
lea ecx, [ebp - 0x30]
call fcn.0043b4fb
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004363e6
mov esi, dword [ebp - 0x3c]
cmp byte [esi + 0xd], 0
jne 0x420161
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00436db4
test al, al
jne 0x420161
mov eax, dword [ebx]
jmp 0x420165
mov esi, dword [ebx]
mov eax, esi
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
cmp esi, eax
jne 0x42017c
call fcn.0043d912
push 0xb
pop esi
jmp 0x42020f
call fcn.0043d912
call fcn.0043d5bb
push eax
lea ecx, [ebp + 8]
call fcn.0043bbe8
mov eax, dword [esi + 0x18]
lea ecx, [ebp + 8]
mov dword [ebp - 0x10], eax
mov ebx, dword [eax + 4]
mov eax, dword [eax]
push ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
call fcn.0043b9dd
push ebx
lea ecx, [ebp + 8]
mov esi, eax
call fcn.0043b549
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push esi
push dword [ebp - 0x14]
add eax, 8
push eax
call fcn.00481aa0
mov eax, dword [ebp + 8]
add esp, 0x10
add eax, 0xfffffff0
mov ecx, eax
mov dword [ebp - 0x18], eax
call fcn.0043b5e2
mov ebx, dword [ebp + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebx + 0x40]
call fcn.0043b635
push dword [ebx + 0x40]
mov ecx, ebx
call fcn.00439254
mov ecx, dword [ebp + 8]
mov esi, eax
add ecx, 0xfffffff0
call fcn.0043d912
mov ecx, dword [ebp - 0x18]
call fcn.0043d912
cmp dword [edi + 0x18], 0
je 0x42021c
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0043d912
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8