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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4870b1
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x4bc1dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x188], 0
mov dword [ebp - 0x178], esi
mov dword [ebp - 0x184], esi
mov dword [0x4bc0d0], 9
mov dword [ebp - 0x17c], 0
lea ecx, [edi + 0x3c]
mov dword [ebp - 4], 1
call fcn.0046a870
test eax, eax
je 0x416ad4
mov edx, dword [edi + 0x40]
lea ecx, [edi + 0x3c]
push edx
lea eax, [edx + 1]
mov dword [edi + 0x40], eax
call fcn.0046a2c0
push eax
lea eax, [ebp - 0x170]
push eax
call fcn.004681c0
add esp, 0xc
push eax
lea ecx, [ebp - 0x17c]
mov byte [ebp - 4], 2
call fcn.0046a200
mov ecx, dword [ebp - 0x170]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x416ad4
call fcn.0046a850
push 0x38
xorps xmm0, xmm0
mov dword [ebp - 0x1ac], 0
lea eax, [ebp - 0x48]
mov dword [ebp - 0x50], 0x40
push 0
push eax
movdqu xmmword [ebp - 0x1a8], xmm0
mov dword [ebp - 0x4c], 0
movdqu xmmword [ebp - 0x198], xmm0
call fcn.00470180
push 0x114
lea eax, [ebp - 0x164]
mov dword [ebp - 0x16c], 0x11c
push 0
push eax
mov dword [ebp - 0x168], 0
call fcn.00470180
add esp, 0x18
lea eax, [ebp - 0x1ac]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
lea eax, [ebp - 0x16c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x590
call fcn.0046f006
add esp, 4
mov dword [ebp - 0x180], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x416b7e
mov ecx, eax
call fcn.004156d0
jmp 0x416b80
xor eax, eax
mov byte [ebp - 4], 1
mov dword [esi], eax
test eax, eax
je 0x416b96
add eax, 0x578
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov esi, dword [esi]
lea eax, [ebp - 0x16c]
push eax
push dword [ebp - 0x198]
lea ecx, [edi + 0x7c]
mov dword [ebp - 0x188], 1
push 0
push dword [ebp - 0x1a0]
push dword [ebp - 0x44]
push dword [ebp - 0x48]
push 0
call fcn.0046a2c0
push eax
lea ecx, [edi + 0x78]
call fcn.0046a2c0
push eax
push 0xf4240
lea ecx, [ebp - 0x17c]
call fcn.0046a2c0
push eax
mov ecx, esi
call fcn.004672f0
test eax, eax
je 0x416c1b
mov eax, dword [ebp - 0x178]
mov esi, dword [eax]
mov dword [eax], 0
test esi, esi
je 0x416c31
lea eax, [esi + 0x578]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, 2
jge 0x416c31
push eax
mov ecx, esi
call fcn.004675b0
jmp 0x416c31
cmp byte [ebp + 0xc], 0
je 0x416c31
mov ecx, dword [ebp - 0x178]
push dword [edi + 0x44]
mov ecx, dword [ecx]
call fcn.00468340
mov eax, dword [edi + 0x34]
sub eax, dword [edi + 0x30]
sar eax, 2
cmp eax, dword [edi + 0x74]
jae 0x416c53
mov eax, dword [edi + 0x34]
sub eax, dword [edi + 0x30]
sar eax, 2
cmp eax, 0xc8
jb 0x416d22
mov esi, dword [edi + 0x30]
mov esi, dword [esi]
mov dword [ebp - 0x170], esi
test esi, esi
je 0x416c6f
lea eax, [esi + 0x578]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push dword [ebp - 0x184]
mov eax, dword [edi + 0x30]
push eax
push dword [edi + 0x34]
add eax, 4
mov byte [ebp - 4], 4
push eax
call fcn.00414b60
mov ecx, dword [edi + 0x34]
lea edx, [ebp - 0x171]
push dword [ebp - 0x184]
push edx
lea eax, [ecx - 4]
push ecx
push eax
call fcn.00414760
add dword [edi + 0x34], 0xfffffffc
lea ecx, [edi + 0x1c]
add esp, 0x20
mov byte [esi + 0x580], 1
call fcn.0040e4b0
mov eax, dword [edi + 0x50]
lea ecx, [ebp - 0x170]
push ecx
lea ecx, [edi + 0x50]
mov dword [ebp - 0x180], eax
push dword [eax + 4]
push eax
call fcn.00414610
mov edx, dword [edi + 0x54]
mov ecx, eax
mov eax, 0x15555554
sub eax, edx
cmp eax, 1
jae 0x416cf0
push 0x490afc
call fcn.0046ec5f
lea eax, [edx + 1]
mov byte [ebp - 4], 1
mov dword [edi + 0x54], eax
mov eax, dword [ebp - 0x180]
mov dword [eax + 4], ecx
mov eax, dword [ecx + 4]
mov dword [eax], ecx
lea eax, [esi + 0x578]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, 2
jge 0x416d22
push eax
mov ecx, esi
call fcn.004675b0
mov ecx, dword [ebp - 0x17c]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x416d35
call fcn.0046a850
mov eax, dword [ebp - 0x178]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046f8ce
mov esp, ebp
pop ebp
ret 8