Function at 0x1401703c0
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x150
mov rsi, rcx
mov rax, qword [0x1402cb038]
xor rax, rsp
mov qword [rsp + 0x148], rax
lea rax, [0x14029dae0]
mov qword [rcx], rax
cmp qword [rcx + 8], 0
je 0x140170521
mov rcx, qword [rsi + 0x18]
lea rax, [rcx + 0xffff]
and rax, 0xffffffffffff0000
cmp rax, rcx
jb 0x140170727
lock sub qword [0x1402e5da0], rax
mov eax, dword [0x1402e5b58]
mov ecx, dword [0x1402db110]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14017057e
mov r14, qword [0x1402e5b50]
lea rdi, [r14 + 8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140170710
mov rcx, qword [r14 + 0x18]
test rcx, rcx
je 0x1401704dc
mov rax, qword [rsi + 0x10]
lea rdx, [r14 + 0x18]
mov r8, rcx
mov rbx, rdx
lea r9, [r8 + 8]
cmp qword [r8 + 0x20], rax
cmovae r9, r8
cmovae rbx, r8
mov r8, qword [r9]
test r8, r8
jne 0x140170472
cmp rbx, rdx
je 0x1401704dc
cmp rax, qword [rbx + 0x20]
jb 0x1401704dc
mov rdx, qword [rbx + 8]
test rdx, rdx
jne 0x140170564
mov rdx, rbx
mov rax, qword [rdx + 0x10]
cmp qword [rax], rdx
mov rdx, rax
jne 0x1401704a5
lea r15, [rbx + 0x20]
cmp qword [r14 + 0x10], rbx
je 0x140170575
dec qword [r14 + 0x20]
mov rdx, rbx
call fcn.1401734f0
test r15, r15
je 0x140170753
mov rcx, rbx
call fcn.1401cbbbc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [0x1402e3f38]
mov ecx, dword [0x1402db110]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140170604
mov rax, qword [0x1402e3f30]
xor ecx, ecx
sub rcx, qword [rax + 0x58]
and rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsi + 0x30]
mov rax, qword [0x1402cbde0]
and rax, rcx
cmp rax, qword [0x1402cbdc8]
je 0x14017071d
mov qword [rsi + 0x30], 0
mov rcx, qword [rsp + 0x148]
xor rcx, rsp
call fcn.1401ce5b0
nop
add rsp, 0x150
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rax, rdx
mov rdx, qword [rdx]
test rdx, rdx
je 0x1401704b1
jmp 0x140170564
mov qword [r14 + 0x10], rax
jmp 0x1401704bf
lea rcx, [0x1402e5b58]
call fcn.1401cc16c
cmp dword [0x1402e5b58], 0xffffffff
jne 0x14017043f
mov ecx, 0x28
call fcn.1401cbbc4
mov rdi, rax
lea rax, [0x14029f2a8]
mov qword [rdi], rax
mov qword [rdi + 8], 0
lea rax, [rdi + 0x18]
xorps xmm0, xmm0
movups xmmword [rdi + 0x18], xmm0
mov qword [rdi + 0x10], rax
call fcn.140002d40
lea rcx, [rsp + 0x2c]
mov byte [rcx], 1
mov qword [rsp + 0x20], rcx
lea r8, str.SharedMemoryTracker
mov rcx, rax
mov rdx, rdi
xor r9d, r9d
call fcn.1400151d0
mov qword [0x1402e5b50], rdi
lea rcx, [0x1402e5b58]
call fcn.1401cc1d4
jmp 0x14017043f
lea rcx, [0x1402e3f38]
call fcn.1401cc16c
cmp dword [0x1402e3f38], 0xffffffff
jne 0x14017050a
lea rdi, [rsp + 0x30]
mov r8d, 0x118
mov rcx, rdi
xor edx, edx
call fcn.1401d06e0
mov dword [rdi - 4], 0x11c
lea rdi, [rsp + 0x2c]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rbx, [rsp + 0x28]
mov dword [rbx], 0
mov ecx, dword [rdi + 4]
mov edx, dword [rdi + 8]
mov qword [rsp + 0x20], rbx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.1401cbbc4
mov rdi, rax
mov ebx, dword [rbx]
mov eax, dword [0x1402e3f80]
mov ecx, dword [0x1402db110]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1401706c8
lea r8, [0x1402e3f50]
lea rdx, [rsp + 0x2c]
mov rcx, rdi
mov r9d, ebx
call fcn.14002f740
mov qword [0x1402e3f30], rdi
lea rcx, [0x1402e3f38]
call fcn.1401cc1d4
jmp 0x14017050a
lea rcx, [0x1402e3f80]
call fcn.1401cc16c
cmp dword [0x1402e3f80], 0xffffffff
jne 0x140170699
xorps xmm0, xmm0
movups xmmword [0x1402e3f70], xmm0
movups xmmword [0x1402e3f60], xmm0
movups xmmword [0x1402e3f50], xmm0
lea rcx, [0x1402e3f50]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1402e3f80]
call fcn.1401cc1d4
jmp 0x140170699
mov rcx, rdi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x14017045b
call fcn.1401509f0
jmp 0x14017053c
lea rax, str.optional_operator_called_on_a_disengaged_value
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcincludeoptional
lea r9, str.this__has_value__
mov r8d, 0x406
call fcn.140207060
lea rax, str.null_pointer_given_to_destroy_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__loc___nullptr
mov r8d, 0x44
call fcn.140207060
int3