Function at 0x1400584b0
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r14d, edx
mov r13, rcx
test edx, edx
jne 0x140058502
xorps xmm0, xmm0
movups xmmword [rax - 0x58], xmm0
movups xmmword [rax - 0x48], xmm0
movups xmmword [rax - 0x38], xmm0
lea rcx, [rax - 0x58]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemInfo]
nop dword [rax + rax]
mov r14d, dword [rsp + 0x40]
cmp r14d, 1
jae 0x140058502
mov eax, 0x80070057
jmp 0x140058754
xor ebx, ebx
mov qword [rsp + 0x90], rbx
lea ecx, [rbx + 0x38]
call fcn.1400d1c30
test rax, rax
je 0x140058554
lea rcx, fcn.14003cba0
mov qword [rax], rcx
and qword [rax + 8], rbx
lea rcx, fcn.140058880
mov qword [rax + 0x10], rcx
and qword [rax + 0x18], rbx
lea rcx, fcn.140058850
mov qword [rax + 0x20], rcx
and qword [rax + 0x28], rbx
and qword [rax + 0x30], rbx
mov rbx, rax
mov qword [rsp + 0x90], rax
lea r8, [rbx + 8]
lea rdx, [0x1400587c0]
mov ecx, 4
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400585bd
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov r15d, 0x80004005
test esi, esi
cmovns esi, r15d
test rbx, rbx
je 0x1400585b6
mov rcx, rbx
call fcn.1400588a4
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov eax, esi
jmp 0x140058754
xor r8d, r8d
mov rdx, rbx
lea rcx, [0x1400587c0]
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_CreateThreadpoolWork]
nop dword [rax + rax]
mov r15, rax
cmp rax, qword [rbx + 0x28]
je 0x14005860d
cmp qword [rbx + 0x28], 0
je 0x140058609
mov rcx, qword [rbx + 0x20]
mov rax, qword [rcx]
movabs r10, 0xefcdb65178560a70
lea rcx, [rbx + 0x20]
call qword [0x1400de010]
test al, al
je 0x14005876b
mov qword [rbx + 0x28], r15
cmp qword [rbx + 0x28], 0
jne 0x140058640
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov r15d, 0x80004005
test esi, esi
cmovns esi, r15d
test esi, esi
jns 0x140058646
jmp 0x1400586b6
mov r15d, 0x80004005
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_CreateThreadpool]
nop dword [rax + rax]
mov r12, rax
cmp rax, qword [rbx + 0x18]
je 0x14005868b
cmp qword [rbx + 0x18], 0
je 0x140058687
mov rcx, qword [rbx + 0x10]
mov rax, qword [rcx]
movabs r10, 0xefcdb65178560a70
lea rcx, [rbx + 0x10]
call qword [0x1400de010]
test al, al
je 0x14005878c
mov qword [rbx + 0x18], r12
cmp qword [rbx + 0x18], 0
jne 0x1400586bb
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
cmovns esi, r15d
test esi, esi
jns 0x1400586bb
jmp 0x14005859f
mov edx, r14d
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_SetThreadpoolThreadMaximum]
nop dword [rax + rax]
lea r14, [r13 + 0x10]
lea rax, [rsp + 0x90]
cmp r14, rax
je 0x14005870b
mov r15, rbx
xor ebx, ebx
mov rsi, qword [r14]
cmp r15, rsi
je 0x14005870b
test rsi, rsi
je 0x140058708
mov rcx, rsi
call fcn.1400588a4
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov qword [r14], r15
test rbx, rbx
je 0x140058727
mov rcx, rbx
call fcn.1400588a4
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
xor eax, eax
jmp 0x140058754
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
nop
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.14000ec00
int3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.14000ec00
int3