Function at 0x58f250
Capabilities:
Check os version
Get memory capacity
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x134
call fcn.006839e0
mov eax, dword [0x7b088c]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push edi
lea eax, [esp + 0x60]
mov dword [esp + 0x1c], 0
push eax
mov dword [esp + 0x64], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.ADVAPI32.DLL
call esi
push str.KERNEL32.DLL
mov ebx, eax
call esi
push str.NETAPI32.DLL
mov dword [esp + 0x2c], eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x58f37f
push str.NetStatisticsGet
push esi
call edi
push 0x72c5c4
push esi
mov dword [esp + 0x2c], eax
call edi
mov ecx, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], ecx
test eax, eax
je 0x58f378
test ecx, ecx
je 0x58f378
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push str.LanmanWorkstation
push 0
call eax
test eax, eax
jne 0x58f331
mov eax, 8
call fcn.006839e0
movsd xmm0, qword [0x72c730]
movsd qword [esp], xmm0
push 0xd8
push dword [esp + 0x20]
call fcn.00575530
add esp, 0x10
push dword [esp + 0x14]
call dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x28]
push 0
push 0
push str.LanmanServer
push 0
call eax
test eax, eax
jne 0x58f378
mov eax, 8
call fcn.006839e0
movsd xmm0, qword [0x72c728]
movsd qword [esp], xmm0
push 0x44
push dword [esp + 0x20]
call fcn.00575530
add esp, 0x10
push dword [esp + 0x14]
call dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x58f491
push str.CryptAcquireContextW
push ebx
call edi
push 0x72c630
push ebx
mov dword [esp + 0x20], eax
call edi
push 0x72c640
push ebx
mov dword [esp + 0x1c], eax
call edi
mov esi, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x58f486
cmp dword [esp + 0x14], 0
je 0x58f486
test esi, esi
je 0x58f486
push 0xf0000000
push 1
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
call eax
test eax, eax
je 0x58f425
lea eax, [esp + 0xf8]
push eax
push 0x40
push dword [esp + 0x24]
call dword [esp + 0x20]
test eax, eax
je 0x58f41d
mov eax, 8
call fcn.006839e0
movsd xmm0, qword [0x72c738]
lea eax, [esp + 0x100]
movsd qword [esp], xmm0
push 0x40
push eax
call fcn.00575530
add esp, 0x10
push 0
push dword [esp + 0x20]
call esi
push 0
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
push 0
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
call eax
test eax, eax
je 0x58f486
lea eax, [esp + 0xf8]
push eax
push 0x40
push dword [esp + 0x24]
call dword [esp + 0x20]
test eax, eax
je 0x58f47e
mov eax, 8
call fcn.006839e0
movsd xmm0, qword [0x72c738]
lea eax, [esp + 0x100]
movsd qword [esp], xmm0
push 0x40
push eax
call fcn.00575530
add esp, 0x10
push 0
push dword [esp + 0x20]
call esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call ebx
jmp 0x58f497
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x70], 2
jne 0x58f4ab
call fcn.0056e2e0
test eax, eax
jne 0x58f59a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x58f59a
push 0x72c6c0
push esi
call edi
push str.GetCursorInfo
push esi
mov dword [esp + 0x20], eax
call edi
push 0x72c6e4
push esi
mov ebx, eax
call edi
mov edi, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x58f50f
call eax
mov dword [esp + 0x18], eax
mov eax, 8
call fcn.006839e0
xorps xmm0, xmm0
lea eax, [esp + 0x20]
movsd qword [esp], xmm0
push 4
push eax
call fcn.00575530
add esp, 0x10
test ebx, ebx
je 0x58f55c
cmp dword [esp + 0x70], 2
jne 0x58f521
cmp dword [esp + 0x64], 5
jb 0x58f55c
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x14
push eax
call ebx
test eax, eax
je 0x58f55c
mov eax, 8
call fcn.006839e0
movsd xmm0, qword [0x6fdb60]
lea eax, [esp + 0x34]
movsd qword [esp], xmm0
push dword [esp + 0x34]
push eax
call fcn.00575530
add esp, 0x10
test edi, edi
je 0x58f591
push 0xbf
call edi
mov dword [esp + 0x20], eax
mov eax, 8
call fcn.006839e0
movsd xmm0, qword [0x772850]
lea eax, [esp + 0x28]
movsd qword [esp], xmm0
push 4
push eax
call fcn.00575530
add esp, 0x10
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
call ebx
mov eax, dword [esp + 0x28]
test eax, eax
je 0x58f5a5
push eax
call ebx
call fcn.0058f7d0
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, 8
call fcn.006839e0
movsd xmm0, qword [0x772850]
lea eax, [esp + 0x48]
movsd qword [esp], xmm0
push 0x20
push eax
call fcn.00575530
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0x20], eax
mov eax, 8
call fcn.006839e0
movsd xmm0, qword [0x772850]
lea eax, [esp + 0x28]
movsd qword [esp], xmm0
push 4
push eax
call fcn.00575530
mov ecx, dword [esp + 0x14c]
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00682c16
mov esp, ebp
pop ebp
ret