Function at 0x10082020
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.101172b0
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.10118972
mov edi, eax
add esp, 0x10
test edi, edi
je 0x100820d0
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x100820d2
xor edi, edi
mov dword [esi + 0x20], edi
test edi, edi
je 0x1008222d
push 0x18
call fcn.10118972
mov edi, eax
add esp, 4
test edi, edi
je 0x100820f6
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x100820f8
xor edi, edi
mov dword [esi + 0x58], edi
test edi, edi
je 0x1008222d
push 0xc
call fcn.10118972
add esp, 4
test eax, eax
je 0x1008211a
mov ecx, eax
call fcn.100505e0
jmp 0x1008211c
xor eax, eax
mov dword [esi + 0x54], eax
test eax, eax
je 0x1008222d
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 0x10082166
xor ecx, ecx
inc ecx
mov eax, 1
shl eax, cl
cmp eax, edx
jne 0x10082157
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 0x100821a4
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.10118972
mov ecx, eax
add esp, 4
mov dword [esi + 0x3c], ecx
test ecx, ecx
je 0x1008222d
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.1004de50
lea eax, [esp + 0xc]
xor edx, edx
push eax
push dword [esi + 0x40]
lea ecx, [esi + 0x30]
call fcn.1004e740
push 0x28
mov dword [esi + 0x48], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x4c], 0
call fcn.10118972
add esp, 4
test eax, eax
je 0x10082221
push esi
mov ecx, eax
call fcn.1008da20
jmp 0x10082223
xor eax, eax
test byte [esi], 8
mov dword [esi + 0x1c], eax
jne 0x1008223b
jmp 0x1008226d
push 1
push 0xfffffc0d
mov ecx, esi
call fcn.10062940
mov edi, dword [esi + 0x20]
test edi, edi
je 0x10082252
push edi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push edi
call fcn.101189e8
add esp, 4
push dword [esi + 0x3c]
call fcn.101189e8
add esp, 4
push 0x8000
push 0
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
test dword [esp + 0xc], 0xfffffffe
je 0x10082280
lea ecx, [esp + 0xc]
call fcn.100627c0
mov ecx, dword [esp + 0x64]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1011705d
add esp, 0x5c
ret