Function at 0x100821d0
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
sub esp, 0x5c
mov eax, dword [0x1013567c]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
mov esi, ecx
push edi
push 0x34
push 0
mov dword [esi], 1
lea eax, [esi + 0x70]
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
push eax
mov dword [esi + 0x68], 0
call fcn.10117460
push 0x18
mov dword [esp + 0x1c], 1
mov dword [esi + 0x20], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x6c], 0x32
mov dword [esi + 0x14], 3
mov dword [esi + 0x18], 0
call fcn.10118b22
mov edi, eax
add esp, 0x10
test edi, edi
je 0x10082280
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x10082282
xor edi, edi
mov dword [esi + 0x20], edi
test edi, edi
je 0x100823dd
push 0x18
call fcn.10118b22
mov edi, eax
add esp, 4
test edi, edi
je 0x100822a6
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x100822a8
xor edi, edi
mov dword [esi + 0x58], edi
test edi, edi
je 0x100823dd
push 0xc
call fcn.10118b22
add esp, 4
test eax, eax
je 0x100822ca
mov ecx, eax
call fcn.10050690
jmp 0x100822cc
xor eax, eax
mov dword [esi + 0x54], eax
test eax, eax
je 0x100823dd
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 0x20
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [esp + 0x24]
mov dword [esi + 0x28], 0
cmp edx, 1
je 0x10082316
xor ecx, ecx
inc ecx
mov eax, 1
shl eax, cl
cmp eax, edx
jne 0x10082307
mov dword [esi + 0x28], ecx
mov eax, dword [esp + 0x4c]
mov ecx, 0x4000000
cmp eax, ecx
mov dword [esi + 0x44], 0x100
cmova eax, ecx
mov ecx, eax
shr ecx, 0xc
mov dword [esi + 0x40], ecx
cmp eax, 0xc00000
jbe 0x10082354
add eax, 0xff400000
mov edx, 0xe00
shr eax, 0xe
add eax, 0x100
cmp eax, edx
cmova eax, edx
mov dword [esi + 0x44], eax
lea eax, [ecx + 7]
shr eax, 3
push eax
call fcn.10118b22
mov ecx, eax
add esp, 4
mov dword [esi + 0x3c], ecx
test ecx, ecx
je 0x100823dd
mov eax, dword [esi + 0x40]
add eax, 7
mov dword [esi + 0x30], ecx
shr eax, 3
lea ecx, [esi + 0x30]
mov dword [esi + 0x34], eax
lea eax, [esp + 0xc]
mov edx, dword [esi + 0x38]
push eax
mov eax, dword [esi + 0x34]
shl eax, 3
push eax
call fcn.1004df00
lea eax, [esp + 0xc]
xor edx, edx
push eax
push dword [esi + 0x40]
lea ecx, [esi + 0x30]
call fcn.1004e7f0
push 0x28
mov dword [esi + 0x48], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x4c], 0
call fcn.10118b22
add esp, 4
test eax, eax
je 0x100823d1
push esi
mov ecx, eax
call fcn.1008dc20
jmp 0x100823d3
xor eax, eax
test byte [esi], 8
mov dword [esi + 0x1c], eax
jne 0x100823eb
jmp 0x1008241d
push 1
push 0xfffffc0d
mov ecx, esi
call fcn.10062a50
mov edi, dword [esi + 0x20]
test edi, edi
je 0x10082402
push edi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push edi
call fcn.10118b98
add esp, 4
push dword [esi + 0x3c]
call fcn.10118b98
add esp, 4
push 0x8000
push 0
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
test dword [esp + 0xc], 0xfffffffe
je 0x10082430
lea ecx, [esp + 0xc]
call fcn.100628d0
mov ecx, dword [esp + 0x64]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1011720d
add esp, 0x5c
ret