Function at 0x48589b94
Capabilities:
Get number of processors
Get process heap flags
Get system information on windows

Disassembly:
push 0x64
push 0x48582c80
call fcn.4858a704
xor ebx, ebx
inc ebx
push ebx
xor esi, esi
push esi
push ebx
call dword [sym.imp.ntdll.dll_RtlSetProcessIsCritical]
push ebx
push esi
push ebx
call dword [sym.imp.ntdll.dll_RtlSetThreadIsCritical]
add esp, 0x18
mov dword [ebp - 0x24], 0xb
push 4
lea eax, [ebp - 0x24]
push eax
push 5
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtSetInformationProcess]
mov eax, dword [ebp + 0x14]
cmp eax, esi
je 0x48589bdd
mov dword [0x4858c944], eax
mov dword [ebp - 4], esi
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], esi
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.48588d6a
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, esi
jge 0x48589c1c
push 0x48582c3c
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov dword [ebp - 0x58], edi
jmp 0x48589d92
push esi
push 4
lea eax, [ebp - 0x20]
push eax
push 9
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test dword [ebp - 0x20], 0x4000004
je 0x48589cb0
mov eax, dword [ebp - 0x3c]
add eax, 0x40
mov word [ebp - 0x32], ax
mov word [ebp - 0x34], si
mov eax, dword fs:[0x18]
mov dword [ebp - 0x2c], eax
movzx ecx, word [ebp - 0x32]
push ecx
push dword [0x4858c940]
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x34]
test byte [ebp - 0x1e], 2
je 0x48589c75
push 0x48582c1c
jmp 0x48589c7a
push 0x48582c08
push eax
call dword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
test byte [ebp - 0x1d], 4
je 0x48589c96
push 0x48582bf8
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
push esi
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x3c]
push eax
push esi
call fcn.48586ba9
mov dword [ebp - 0x1c], eax
cmp eax, esi
jl 0x48589d02
lea eax, [ebp - 0x28]
push eax
push 0xa
call fcn.48589fef
mov dword [ebp - 0x1c], eax
cmp eax, esi
jl 0x48589d02
cmp dword [0x4858c00c], 0xffffffff
je 0x48589cfa
push 4
push 0x4858c00c
push 0x30
call dword [sym.imp.ntdll.dll_NtSetSystemInformation]
mov dword [ebp - 0x1c], eax
or dword [0x4858c00c], 0xffffffff
push dword [ebp - 0x28]
call fcn.4858a151
cmp dword [ebp - 0x1c], esi
jl 0x48589d42
push esi
push esi
push ebx
lea eax, [ebp - 0x44]
push eax
push 2
call dword [sym.imp.ntdll.dll_NtWaitForMultipleObjects]
mov dword [ebp - 0x1c], eax
cmp eax, esi
jne 0x48589d42
push 0x48582bd4
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push esi
push 0x18
lea eax, [ebp - 0x74]
push eax
push esi
push dword [ebp - 0x44]
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
mov dword [ebp - 0x1c], eax
jmp 0x48589d6c
push 0x48582ba8
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
cmp dword [ebp - 0x1c], ebx
jne 0x48589d63
push esi
push 0x18
lea eax, [ebp - 0x74]
push eax
push esi
push dword [ebp - 0x40]
jmp 0x48589d37
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x1c], esi
cmp dword [ebp - 0x1c], esi
jl 0x48589d79
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x58], eax
jmp 0x48589d92
mov dword [ebp - 0x58], 0xc0000001
jmp 0x48589d92
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x5c]
push eax
call fcn.48589af4
xor eax, eax
call fcn.4858a73f
ret