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

Disassembly:
push 0xffffffffffffffff
push 0x4d20ce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a4
push ebx
push ebp
xor ebx, ebx
push esi
mov dword [esp + 0x18], ebx
push edi
mov dword [0x4fd4f4], 7
mov dword [esp + 0x18], ebx
mov edi, dword [esp + 0x1c4]
mov dword [esp + 0x1bc], 1
mov eax, dword [edi + 0x48]
cmp eax, ebx
je 0x413611
mov eax, dword [eax + 4]
jmp 0x413613
xor eax, eax
cmp eax, ebx
je 0x41361a
sub eax, 2
test eax, 0xfffffffe
je 0x41367f
mov edx, dword [edi + 0x4c]
lea eax, [edx + 1]
mov dword [edi + 0x4c], eax
mov eax, dword [edi + 0x48]
cmp eax, ebx
je 0x413638
lea ecx, [eax + 8]
cmp ecx, ebx
jne 0x41363d
mov ecx, 0x4d9064
push edx
lea edx, [esp + 0x18]
push edx
call fcn.0048ddd0
mov eax, dword [eax]
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x413659
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov byte [esp + 0x1bc], 1
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x41367f
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x41367f
push esi
call fcn.0049e96f
add esp, 4
xor eax, eax
push 0x38
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
lea eax, [esp + 0x58]
push ebx
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x58], 0x40
mov dword [esp + 0x5c], ebx
call fcn.004a30a0
add esp, 0xc
push 0x114
lea ecx, [esp + 0x98]
push ebx
push ecx
mov dword [esp + 0x98], 0x11c
mov dword [esp + 0x9c], ebx
call fcn.004a30a0
add esp, 0xc
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
lea ecx, [esp + 0x8c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x5f8
call fcn.0049e995
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0x1bc], 3
cmp eax, ebx
je 0x413732
push eax
call fcn.00410dd0
jmp 0x413734
xor eax, eax
mov byte [esp + 0x1bc], 1
mov ebp, dword [esp + 0x1c8]
mov dword [ebp], eax
cmp eax, ebx
je 0x413756
add eax, 0x5d0
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [edi + 0xe8]
mov dword [esp + 0x1c], 1
cmp eax, ebx
je 0x413771
add eax, 8
mov esi, eax
cmp eax, ebx
jne 0x413776
mov esi, 0x4d9064
mov eax, dword [edi + 0xe4]
cmp eax, ebx
je 0x413789
add eax, 8
mov edx, eax
cmp eax, ebx
jne 0x41378e
mov edx, 0x4d9064
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x41379d
add ecx, 8
cmp ecx, ebx
jne 0x4137a2
mov ecx, 0x4d9064
mov eax, dword [ebp]
lea ebx, [esp + 0x8c]
push ebx
mov ebx, dword [esp + 0x38]
push ebx
mov ebx, dword [esp + 0x34]
push 0
push ebx
mov ebx, dword [esp + 0x68]
push ebx
mov ebx, dword [esp + 0x68]
push ebx
push 0
push esi
push edx
push ecx
push eax
mov eax, 0xf4240
call fcn.0048bc50
test al, al
jne 0x413801
mov esi, dword [ebp]
mov dword [ebp], 0
test esi, esi
je 0x413827
lea edx, [esi + 0x5d0]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, 2
jge 0x413827
push eax
mov ecx, esi
call fcn.0048c790
jmp 0x413827
cmp byte [esp + 0x1cc], 0
je 0x413827
mov eax, dword [edi + 0x50]
mov ecx, dword [ebp]
test eax, eax
je 0x413827
add ecx, 0x508
lea ebx, [eax + 0x508]
push ecx
call fcn.00456fa0
mov eax, dword [edi + 0x40]
sub eax, dword [edi + 0x3c]
lea esi, [edi + 0x30]
sar eax, 2
cmp eax, dword [edi + 0xe0]
jae 0x413850
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
sar ecx, 2
cmp ecx, 0xc8
jb 0x413919
mov ebx, dword [esi + 0xc]
cmp ebx, dword [esi + 0x10]
jbe 0x41385d
call fcn.0049f380
mov eax, dword [esi]
test eax, eax
jne 0x41395a
call fcn.0049f380
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x413878
call fcn.0049f380
mov ebp, dword [ebx]
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x41388f
lea edx, [ebp + 0x5d0]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov byte [esp + 0x1bc], 4
mov edi, dword [esi + 0xc]
cmp edi, dword [esi + 0x10]
jbe 0x4138a4
call fcn.0049f380
mov eax, dword [esi]
push edi
push eax
lea edi, [esp + 0x4c]
call fcn.00415ee0
mov ebx, dword [esp + 0x1c4]
lea esi, [ebx + 0x1c]
mov byte [ebp + 0x5d8], 1
call fcn.00406490
mov esi, dword [ebx + 0x84]
mov ecx, dword [esi + 4]
add ebx, 0x70
lea eax, [esp + 0x14]
push eax
push ecx
push esi
call fcn.0041ac70
mov ecx, ebx
mov edi, eax
call fcn.0041acc0
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
lea edx, [ebp + 0x5d0]
push edx
mov dword [eax], edi
mov byte [esp + 0x1c0], 1
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, 2
jge 0x413912
push eax
mov ecx, ebp
call fcn.0048c790
mov ebp, dword [esp + 0x1c8]
mov byte [esp + 0x1bc], 0
mov esi, dword [esp + 0x18]
test esi, esi
je 0x41393d
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x41393d
push esi
call fcn.0049e96f
add esp, 4
mov ecx, dword [esp + 0x1b4]
pop edi
pop esi
mov eax, ebp
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1b0
ret 0xc
mov eax, dword [eax]
jmp 0x41386e