Function at 0x5f3120
Capabilities:
Check os version
Get memory capacity
Link many functions at runtime
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x4c8
call fcn.00602270
push ebx
push ebp
push esi
lea eax, [esp + 0xf4]
push edi
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0xfc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.ADVAPI32.DLL
call esi
mov ebp, eax
push str.KERNEL32.DLL
mov dword [esp + 0x1c], ebp
call esi
push str.USER32.DLL
mov edi, eax
call esi
push str.NETAPI32.DLL
mov dword [esp + 0x20], eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x5f3227
push str.NetStatisticsGet
push ebx
call esi
push str.NetApiBufferFree
push ebx
mov ebp, eax
call esi
test ebp, ebp
mov dword [esp + 0x14], eax
je 0x5f321c
test eax, eax
je 0x5f321c
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push str.LanmanWorkstation
push 0
call ebp
test eax, eax
jne 0x5f31e8
mov edx, dword [esp + 0x10]
push 0x40468000
push eax
push 0xd8
push edx
call fcn.005f1440
mov eax, dword [esp + 0x20]
add esp, 0x10
push eax
call dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push str.LanmanServer
push 0
call ebp
test eax, eax
jne 0x5f321c
mov edx, dword [esp + 0x10]
push 0x40310000
push eax
push 0x44
push edx
call fcn.005f1440
mov eax, dword [esp + 0x20]
add esp, 0x10
push eax
call dword [esp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebp, dword [esp + 0x18]
cmp dword [esp + 0x108], 2
jne 0x5f32e1
cmp dword [esp + 0xfc], 5
jae 0x5f32e1
xor ebx, ebx
mov dword [esp + 0x14], 0xea
xor ebp, ebp
add ebp, 0x2000
push ebp
push ebx
call fcn.00603a30
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x5f328e
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebp
push ecx
push ebx
push 0
push 0
push 0x63f550
push reloc.WSOCK32.dll_connect
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 0xea
mov dword [esp + 0x14], eax
je 0x5f324f
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x5f32d0
push 0
push 0
lea edx, [esp + 0x18]
push 4
push edx
call fcn.005f1440
mov eax, dword [esp + 0x20]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], eax
add esp, 8
fild qword [esp + 0x40]
fmul qword [0x63f548]
fstp qword [esp]
push eax
push ebx
call fcn.005f1440
add esp, 0x10
test ebx, ebx
je 0x5f32dd
push ebx
call fcn.00602140
add esp, 4
mov ebp, dword [esp + 0x18]
test ebp, ebp
je 0x5f33d0
push 0x63f52c
push ebp
call esi
push 0x63f51c
push ebp
mov ebx, eax
call esi
push 0x63f508
push ebp
mov dword [esp + 0x20], eax
call esi
test ebx, ebx
mov dword [esp + 0x14], eax
je 0x5f33c9
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x5f33c9
test eax, eax
je 0x5f33c9
push 0xf0000000
push 1
push 0
lea eax, [esp + 0x2c]
push 0
push eax
call ebx
test eax, eax
je 0x5f3378
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0xb8]
push ecx
push 0x40
push edx
call dword [esp + 0x24]
test eax, eax
je 0x5f336d
push 0x40500000
push 0
lea eax, [esp + 0xc0]
push 0x40
push eax
call fcn.005f1440
add esp, 0x10
mov ecx, dword [esp + 0x20]
push 0
push ecx
call dword [esp + 0x1c]
push 0
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
lea edx, [esp + 0x2c]
push 0
push edx
call ebx
test eax, eax
je 0x5f33c9
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0xb8]
push eax
push 0x40
push ecx
call dword [esp + 0x24]
test eax, eax
je 0x5f33be
push 0x40500000
push 0
lea edx, [esp + 0xc0]
push 0x40
push edx
call fcn.005f1440
add esp, 0x10
mov eax, dword [esp + 0x20]
push 0
push eax
call dword [esp + 0x1c]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.005f3770
lea ecx, [esp + 0x98]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
push 0x3ff00000
push 0
lea edx, [esp + 0xa0]
push 0x20
push edx
call fcn.005f1440
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0x28], eax
push 0x3ff00000
push 0
lea eax, [esp + 0x30]
push 4
push eax
call fcn.005f1440
mov ebp, dword [esp + 0x2c]
add esp, 0x10
test ebp, ebp
je 0x5f34df
push str.GetForegroundWindow
push ebp
call esi
push str.GetCursorInfo
push ebp
mov ebx, eax
call esi
push 0x63f4a4
push ebp
mov dword [esp + 0x24], eax
call esi
test ebx, ebx
mov dword [esp + 0x24], eax
je 0x5f3467
call ebx
push 0
push 0
lea ecx, [esp + 0x5c]
push 4
push ecx
mov dword [esp + 0x64], eax
call fcn.005f1440
add esp, 0x10
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x5f34af
cmp dword [esp + 0x108], 2
jne 0x5f3483
cmp dword [esp + 0xfc], 5
jb 0x5f34af
lea edx, [esp + 0x40]
mov dword [esp + 0x40], 0x14
push edx
call eax
test eax, eax
je 0x5f34af
mov eax, dword [esp + 0x40]
push 0x40000000
push 0
lea ecx, [esp + 0x48]
push eax
push ecx
call fcn.005f1440
add esp, 0x10
mov eax, dword [esp + 0x24]
test eax, eax
je 0x5f34d8
push 0xbf
call eax
push 0x3ff00000
push 0
lea edx, [esp + 0x30]
push 4
push edx
mov dword [esp + 0x38], eax
call fcn.005f1440
add esp, 0x10
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x5f375d
push str.CreateToolhelp32Snapshot
push edi
call esi
push str.Heap32First
push edi
mov ebx, eax
call esi
push str.Heap32Next
push edi
mov dword [esp + 0x1c], eax
call esi
push str.Heap32ListFirst
push edi
mov dword [esp + 0x20], eax
call esi
push str.Heap32ListNext
push edi
mov ebp, eax
call esi
push str.Process32First
push edi
mov dword [esp + 0x18], eax
call esi
push str.Process32Next
push edi
mov dword [esp + 0x38], eax
call esi
push str.Thread32First
push edi
mov dword [esp + 0x34], eax
call esi
push str.Thread32Next
push edi
mov dword [esp + 0x3c], eax
call esi
push str.Module32First
push edi
mov dword [esp + 0x2c], eax
call esi
push str.Module32Next
push edi
mov dword [esp + 0x24], eax
call esi
test ebx, ebx
mov dword [esp + 0x38], eax
je 0x5f3756
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x5f3756
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x5f3756
test ebp, ebp
je 0x5f3756
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x5f3756
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x5f3756
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x5f3756
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x5f3756
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x5f3756
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x5f3756
test eax, eax
je 0x5f3756
push 0
push 0xf
call ebx
mov esi, eax
test esi, esi
je 0x5f3756
lea eax, [esp + 0x40]
mov dword [esp + 0x40], 0x10
push eax
push esi
call ebp
test eax, eax
je 0x5f367a
mov ebp, 0x24
mov ecx, dword [esp + 0x40]
push 0x40080000
push 0
lea edx, [esp + 0x48]
push ecx
push edx
call fcn.005f1440
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
add esp, 0x10
lea edx, [esp + 0x74]
mov dword [esp + 0x74], ebp
push eax
push ecx
push edx
call dword [esp + 0x20]
test eax, eax
je 0x5f366c
mov ebx, 0x32
mov eax, dword [esp + 0x74]
push 0x40140000
push 0
lea ecx, [esp + 0x7c]
push eax
push ecx
call fcn.005f1440
add esp, 0x10
lea edx, [esp + 0x74]
push edx
call dword [esp + 0x1c]
test eax, eax
je 0x5f366c
dec ebx
test ebx, ebx
jg 0x5f3641
lea eax, [esp + 0x40]
push eax
push esi
call dword [esp + 0x18]
test eax, eax
jne 0x5f3608
lea ecx, [esp + 0x18c]
mov dword [esp + 0x18c], 0x128
push ecx
push esi
call dword [esp + 0x38]
test eax, eax
je 0x5f36c6
mov edx, dword [esp + 0x18c]
push 0x40220000
push 0
lea eax, [esp + 0x194]
push edx
push eax
call fcn.005f1440
add esp, 0x10
lea ecx, [esp + 0x18c]
push ecx
push esi
call dword [esp + 0x34]
test eax, eax
jne 0x5f3696
lea edx, [esp + 0x58]
mov dword [esp + 0x58], 0x1c
push edx
push esi
call dword [esp + 0x3c]
test eax, eax
je 0x5f3703
mov eax, dword [esp + 0x58]
push 0x40180000
push 0
lea ecx, [esp + 0x60]
push eax
push ecx
call fcn.005f1440
add esp, 0x10
lea edx, [esp + 0x58]
push edx
push esi
call dword [esp + 0x2c]
test eax, eax
jne 0x5f36dc
lea eax, [esp + 0x2b4]
mov dword [esp + 0x2b4], 0x224
push eax
push esi
call dword [esp + 0x24]
test eax, eax
je 0x5f374f
mov ecx, dword [esp + 0x2b4]
push 0x40220000
push 0
lea edx, [esp + 0x2bc]
push ecx
push edx
call fcn.005f1440
add esp, 0x10
lea eax, [esp + 0x2b4]
push eax
push esi
call dword [esp + 0x40]
test eax, eax
jne 0x5f371f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, 1
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret