Function at 0x1400582d0
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 0x140058322
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 0x140058322
mov eax, 0x80070057
jmp 0x140058594
xor ebx, ebx
mov qword [rsp + 0x90], rbx
lea ecx, [rbx + 0x38]
call fcn.1400d1ed4
test rax, rax
je 0x140058379
lea rcx, fcn.14003ca40
mov qword [rax], rcx
mov qword [rax + 8], rbx
lea rcx, fcn.1400586c0
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rbx
lea rcx, fcn.140058690
mov qword [rax + 0x20], rcx
mov qword [rax + 0x28], rbx
mov qword [rax + 0x30], rbx
mov rbx, rax
mov qword [rsp + 0x90], rax
mov rsi, rax
jmp 0x14005837b
xor esi, esi
lea r8, [rsi + 8]
lea rdx, [0x140058600]
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 0x1400583e4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov r15d, 0x80004005
test ebx, ebx
cmovns ebx, r15d
test rsi, rsi
je 0x1400583dd
mov rcx, rsi
call fcn.1400586e4
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov eax, ebx
jmp 0x140058594
xor r8d, r8d
mov rdx, rbx
lea rcx, [0x140058600]
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 0x140058434
cmp qword [rbx + 0x28], 0
je 0x140058430
mov rcx, qword [rbx + 0x20]
mov rax, qword [rcx]
movabs r10, 0xefcdb65178560a70
lea rcx, [rbx + 0x20]
call qword [0x1400de008]
test al, al
je 0x1400585ab
mov qword [rbx + 0x28], r15
cmp qword [rbx + 0x28], 0
jne 0x140058467
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 0x14005846d
jmp 0x1400584dd
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 0x1400584b2
cmp qword [rbx + 0x18], 0
je 0x1400584ae
mov rcx, qword [rbx + 0x10]
mov rax, qword [rcx]
movabs r10, 0xefcdb65178560a70
lea rcx, [rbx + 0x10]
call qword [0x1400de008]
test al, al
je 0x1400585cc
mov qword [rbx + 0x18], r12
cmp qword [rbx + 0x18], 0
jne 0x1400584fb
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 0x1400584fb
mov rcx, rbx
call fcn.1400586e4
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov eax, esi
jmp 0x140058594
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 0x14005854b
mov r15, rbx
xor ebx, ebx
mov rsi, qword [r14]
cmp r15, rsi
je 0x14005854b
test rsi, rsi
je 0x140058548
mov rcx, rsi
call fcn.1400586e4
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 0x140058567
mov rcx, rbx
call fcn.1400586e4
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
xor eax, eax
jmp 0x140058594
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.14000ebc0
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.14000ebc0
int3