Function at 0x140052308
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x60
mov qword [rax - 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov esi, edx
mov r15, rcx
test edx, edx
jne 0x14005235f
xorps xmm0, xmm0
movups xmmword [rax - 0x50], xmm0
movups xmmword [rax - 0x40], xmm0
movups xmmword [rax - 0x30], xmm0
lea rcx, [rax - 0x50]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemInfo]
nop dword [rax + rax]
mov esi, dword [rsp + 0x48]
cmp esi, 1
jae 0x14005235f
mov eax, 0x80070057
jmp 0x140052550
xor ebx, ebx
mov qword [rsp + 0x90], rbx
lea ecx, [rbx + 0x38]
call fcn.1400c89f0
mov rdi, rax
test rdi, rdi
je 0x1400523a9
lea rax, [0x1400d5948]
mov qword [rdi], rax
and qword [rdi + 8], rbx
lea rax, [0x1400d5d70]
mov qword [rdi + 0x10], rax
and qword [rdi + 0x18], rbx
lea rax, [0x1400d5d78]
mov qword [rdi + 0x20], rax
and qword [rdi + 0x28], rbx
and qword [rdi + 0x30], rbx
xor r8d, r8d
test rdi, rdi
je 0x1400523cc
lea rcx, [rsp + 0x90]
call fcn.140052624
mov rbx, rdi
mov qword [rsp + 0x90], rbx
mov r8, rdi
add r8, 8
lea rdx, [0x140052570]
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 0x140052415
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 edi, 0x80004005
test ebx, ebx
cmovns ebx, edi
jmp 0x1400524e0
xor r8d, r8d
mov rdx, rbx
lea rcx, [0x140052570]
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_CreateThreadpoolWork]
nop dword [rax + rax]
mov rdi, rax
mov rcx, qword [rbx + 0x28]
cmp rax, rcx
je 0x14005244f
test rcx, rcx
je 0x14005244b
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_CloseThreadpoolWork]
nop dword [rax + rax]
mov qword [rbx + 0x28], rdi
cmp qword [rbx + 0x28], 0
jne 0x140052480
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
mov edi, 0x80004005
test ecx, ecx
cmovns ecx, edi
test ecx, ecx
jns 0x140052485
jmp 0x1400524de
mov edi, 0x80004005
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_CreateThreadpool]
nop dword [rax + rax]
mov r14, rax
mov rcx, qword [rbx + 0x18]
cmp rax, rcx
je 0x1400524b4
test rcx, rcx
je 0x1400524b0
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_CloseThreadpool]
nop dword [rax + rax]
mov qword [rbx + 0x18], r14
cmp qword [rbx + 0x18], 0
jne 0x1400524f1
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
test ecx, ecx
cmovns ecx, edi
test ecx, ecx
jns 0x1400524f1
mov ebx, ecx
lea rcx, [rsp + 0x90]
call fcn.140052624
mov eax, ebx
jmp 0x140052550
mov edx, esi
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.api_ms_win_core_threadpool_l1_2_0.dll_SetThreadpoolThreadMaximum]
nop dword [rax + rax]
lea rdi, [r15 + 0x10]
lea rax, [rsp + 0x90]
cmp rdi, rax
je 0x14005252d
and qword [rsp + 0x90], 0
cmp rbx, qword [rdi]
je 0x14005252d
mov rcx, rdi
call fcn.140052624
mov qword [rdi], rbx
lea rcx, [rsp + 0x90]
call fcn.140052624
xor eax, eax
jmp 0x140052550
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r15
pop r14
pop rdi
ret