Function at 0x506b80
Capabilities:
Check os version
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x45
push 0
push 0
dec ecx
jne 0x506b89
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5072ca
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x507238
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x5071c8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x164]
mov edx, 0x11c
call fcn.0042a7e0
mov dword [ebp - 0x164], 0x11c
inc dword [ebp - 0x1c]
lea eax, [ebp - 0x164]
push eax
call sub.kernel32.dll_GetVersionExW_1
test eax, eax
je 0x506c62
xor eax, eax
push ebp
push 0x506c51
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x58e38c]
cmp dword [eax], 0
je 0x506c42
xor eax, eax
mov dword [ebp - 0x10], eax
inc dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push eax
movzx eax, word [ebp - 0x4e]
push eax
movzx eax, word [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x15c]
push eax
mov eax, dword [ebp - 0x160]
push eax
mov eax, dword [0x58e38c]
mov eax, dword [eax]
call eax
jmp 0x506c47
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x506c72
lea eax, [ebp - 0x164]
mov edx, 0x11c
call fcn.0042a7e0
lea eax, [ebp - 0x188]
mov edx, 0x24
call fcn.0042a7e0
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x160], 5
jb 0x506cb3
cmp dword [ebp - 0x15c], 1
jb 0x506cb3
mov eax, dword [0x58eb44]
cmp dword [eax], 0
je 0x506cb3
lea eax, [ebp - 0x188]
push eax
mov eax, dword [0x58eb44]
mov eax, dword [eax]
call eax
jmp 0x506cbf
lea eax, [ebp - 0x188]
push eax
call sub.kernel32.dll_GetSystemInfo_1
lea eax, [ebp - 0x1e8]
mov edx, 0x40
call fcn.0042a7e0
mov dword [ebp - 0x1e8], 0x40
inc dword [ebp - 0x1c]
lea eax, [ebp - 0x1e8]
push eax
call sub.kernel32.dll_GlobalMemoryStatusEx
test eax, eax
jne 0x506cfc
lea eax, [ebp - 0x1e8]
mov edx, 0x40
call fcn.0042a7e0
lea edx, [ebp - 0x198]
mov eax, 1
call fcn.00504b50
lea edx, [ebp - 0x1a8]
mov eax, 0x80000001
call fcn.00504b50
mov ecx, 0x5072e8
mov dl, 1
mov eax, dword [0x5025ac]
call fcn.00507c10
mov dword [ebp - 0x14], eax
push 0
push 6
mov edx, 0x507334
mov eax, dword [ebp - 0x14]
call fcn.00507ac0
mov ecx, dword [ebp - 4]
mov edx, 0x507348
mov eax, dword [ebp - 0x14]
call fcn.005079e0
mov eax, dword [0x58e6cc]
mov eax, dword [eax]
movzx eax, byte [eax + 0xf0]
cdq
push edx
push eax
mov edx, 0x507364
mov eax, dword [ebp - 0x14]
call fcn.00507ac0
mov eax, dword [ebp - 0x160]
xor edx, edx
push edx
push eax
mov edx, 0x507388
mov eax, dword [ebp - 0x14]
call fcn.00507ac0
mov eax, dword [ebp - 0x15c]
xor edx, edx
push edx
push eax
mov edx, 0x5073b8
mov eax, dword [ebp - 0x14]
call fcn.00507ac0
movzx eax, word [ebp - 0x50]
xor edx, edx
push edx
push eax
mov edx, 0x5073e8
mov eax, dword [ebp - 0x14]
call fcn.00507ac0
movzx eax, word [ebp - 0x4c]
xor edx, edx
push edx
push eax
mov edx, 0x507420
mov eax, dword [ebp - 0x14]
call fcn.00507ac0
xor eax, eax
mov al, byte [ebp - 0x4a]
xor edx, edx
push edx
push eax
mov edx, 0x507448
mov eax, dword [ebp - 0x14]
call fcn.00507ac0
mov eax, dword [ebp - 0x10]
xor edx, edx
push edx
push eax
mov edx, 0x507474
mov eax, dword [ebp - 0x14]
call fcn.00507ac0
movzx eax, word [ebp - 0x188]
xor edx, edx
push edx
push eax
mov edx, 0x5074ac
mov eax, dword [ebp - 0x14]
call fcn.00507ac0
movzx eax, word [ebp - 0x166]
xor edx, edx
push edx
push eax
mov edx, 0x5074ec
mov eax, dword [ebp - 0x14]
call fcn.00507ac0
mov eax, dword [ebp - 0x174]
xor edx, edx
push edx
push eax
mov edx, 0x507524
mov eax, dword [ebp - 0x14]
call fcn.00507ac0
call fcn.00504550
lea edx, [ebp - 0x1ec]
call fcn.0041d69c
mov ecx, dword [ebp - 0x1ec]
mov edx, 0x507560
mov eax, dword [ebp - 0x14]
call fcn.005079e0
push 0
push 0x100000
mov eax, dword [ebp - 0x1e0]
mov edx, dword [ebp - 0x1dc]
call fcn.00407ff0
push edx
push eax
mov edx, 0x507598
mov eax, dword [ebp - 0x14]
call fcn.00507ac0
push 0
push 0x100000
mov eax, dword [ebp - 0x1d0]
mov edx, dword [ebp - 0x1cc]
call fcn.00407ff0
push edx
push eax
mov edx, 0x5075c4
mov eax, dword [ebp - 0x14]
call fcn.00507ac0
push 0
push 0x100000
mov eax, dword [ebp - 0x1c0]
mov edx, dword [ebp - 0x1bc]
call fcn.00407ff0
push edx
push eax
mov edx, 0x5075f8
mov eax, dword [ebp - 0x14]
call fcn.00507ac0
call fcn.00504680
movzx eax, ax
xor edx, edx
push edx
push eax
mov edx, 0x507628
mov eax, dword [ebp - 0x14]
call fcn.00507ac0
mov eax, dword [ebp - 8]
xor edx, edx
push edx
push eax
mov edx, 0x507650
mov eax, dword [ebp - 0x14]
call fcn.00507ac0
mov eax, dword [ebp - 0x198]
xor edx, edx
push edx
push eax
mov edx, 0x507670
mov eax, dword [ebp - 0x14]
call fcn.00507ac0
mov eax, dword [ebp - 0x18c]
xor edx, edx
push edx
push eax
mov edx, 0x5076a0
mov eax, dword [ebp - 0x14]
call fcn.00507ac0
mov eax, dword [ebp - 0x194]
xor edx, edx
push edx
push eax
mov edx, 0x5076d0
mov eax, dword [ebp - 0x14]
call fcn.00507ac0
mov eax, dword [ebp - 0x190]
xor edx, edx
push edx
push eax
mov edx, 0x507700
mov eax, dword [ebp - 0x14]
call fcn.00507ac0
mov eax, dword [ebp - 0x1a4]
xor edx, edx
push edx
push eax
mov edx, 0x507730
mov eax, dword [ebp - 0x14]
call fcn.00507ac0
mov eax, dword [ebp - 0x1a0]
xor edx, edx
push edx
push eax
mov edx, 0x507760
mov eax, dword [ebp - 0x14]
call fcn.00507ac0
lea eax, [ebp - 0x1f0]
call fcn.005050c0
mov ecx, dword [ebp - 0x1f0]
mov edx, 0x507790
mov eax, dword [ebp - 0x14]
call fcn.005079e0
lea eax, [ebp - 0x1f4]
call fcn.00505a00
mov eax, dword [ebp - 0x1f4]
mov dword [ebp - 0x20], eax
call fcn.00408350
push eax
mov ecx, dword [ebp - 0x20]
mov edx, 0x5077bc
mov eax, dword [ebp - 0x14]
call fcn.00507b30
lea eax, [ebp - 0x1f8]
call fcn.00505930
mov eax, dword [ebp - 0x1f8]
mov dword [ebp - 0x24], eax
call fcn.00408350
push eax
mov ecx, dword [ebp - 0x24]
mov edx, 0x5077e8
mov eax, dword [ebp - 0x14]
call fcn.00507b30
lea eax, [ebp - 0x1fc]
call fcn.00505860
mov eax, dword [ebp - 0x1fc]
mov dword [ebp - 0x28], eax
call fcn.00408350
push eax
mov ecx, dword [ebp - 0x28]
mov edx, 0x507814
mov eax, dword [ebp - 0x14]
call fcn.00507b30
lea eax, [ebp - 0x200]
call fcn.00504e20
mov ecx, dword [ebp - 0x200]
mov edx, 0x507840
mov eax, dword [ebp - 0x14]
call fcn.005079e0
lea eax, [ebp - 0x204]
call fcn.00504f70
mov ecx, dword [ebp - 0x204]
mov edx, 0x507874
mov eax, dword [ebp - 0x14]
call fcn.005079e0
lea eax, [ebp - 0x208]
call fcn.00504c20
mov eax, dword [ebp - 0x208]
mov dword [ebp - 0x2c], eax
call fcn.00408350
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, 0x5078a8
mov eax, dword [ebp - 0x14]
call fcn.00507b30
lea eax, [ebp - 0x20c]
call fcn.00504d20
mov eax, dword [ebp - 0x20c]
mov dword [ebp - 0x30], eax
call fcn.00408350
push eax
mov ecx, dword [ebp - 0x30]
mov edx, 0x5078cc
mov eax, dword [ebp - 0x14]
call fcn.00507b30
lea eax, [ebp - 0x210]
call fcn.00505c90
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0x34], eax
call fcn.00408350
push eax
mov ecx, dword [ebp - 0x34]
mov edx, 0x5078f0
mov eax, dword [ebp - 0x14]
call fcn.00507b30
lea eax, [ebp - 0x214]
call fcn.00505d70
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x38], eax
call fcn.00408350
push eax
mov ecx, dword [ebp - 0x38]
mov edx, 0x507914
mov eax, dword [ebp - 0x14]
call fcn.00507b30
mov eax, dword [0x598b64]
call fcn.00408350
test eax, eax
jl 0x507186
inc eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 0x18]
call fcn.00505700
mov eax, dword [ebp - 0x218]
mov dword [ebp - 0x40], eax
call fcn.00408350
push eax
mov eax, dword [ebp - 0x40]
push eax
push 0x507938
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x18]
call fcn.0041d69c
push dword [ebp - 0x220]
push 0x50796c
lea eax, [ebp - 0x21c]
mov edx, 3
call fcn.00407490
mov edx, dword [ebp - 0x21c]
mov eax, dword [ebp - 0x14]
pop ecx
call fcn.00507b30
inc dword [ebp - 0x18]
dec dword [ebp - 0x3c]
jne 0x507120
lea eax, [ebp - 0x224]
call fcn.00505790
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x44], eax
call fcn.00408350
push eax
mov ecx, dword [ebp - 0x44]
mov edx, 0x50797c
mov eax, dword [ebp - 0x14]
call fcn.00507b30
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 8]
call fcn.00406988
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x507222
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50723f
lea eax, [ebp - 0x14]
call fcn.00424c1c
ret