Function at 0x1401570b0
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x158
mov rsi, rcx
mov rax, qword [0x1402b3040]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rax, [0x1402718b0]
mov qword [rcx], rax
cmp qword [rcx + 0x10], 0
je 0x14015724d
mov rcx, qword [rsi + 0x18]
lea rax, [rcx + 0xffff]
and rax, 0xffffffffffff0000
cmp rax, rcx
jb 0x1401574ac
lock sub qword [0x1402c5f68], rax
mov eax, dword [0x1402c5c38]
mov ecx, dword [0x1402c2670]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1401572bd
mov r15, qword [0x1402c5c30]
lea rdi, [r15 + 8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1401572af
lea r12, [r15 + 0x18]
mov rcx, qword [r15 + 0x18]
test rcx, rcx
je 0x14015744f
mov rax, qword [rsi + 8]
mov r8, rcx
mov rdx, r12
xor r9d, r9d
cmp qword [r8 + 0x20], rax
setb r9b
cmovae rdx, r8
mov r8, qword [r8 + r9*8]
test r8, r8
jne 0x140157168
cmp rdx, r12
je 0x14015744f
cmp rax, qword [rdx + 0x20]
jb 0x14015744f
test rcx, rcx
je 0x140157208
mov rdx, rcx
mov rbx, r12
xor r8d, r8d
cmp qword [rdx + 0x20], rax
setb r8b
cmovae rbx, rdx
mov rdx, qword [rdx + r8*8]
test rdx, rdx
jne 0x14015719e
cmp rbx, r12
je 0x140157208
cmp rax, qword [rbx + 0x20]
jb 0x140157208
mov rdx, qword [rbx + 8]
test rdx, rdx
jne 0x140157295
mov rdx, rbx
mov rax, qword [rdx + 0x10]
cmp qword [rax], rdx
mov rdx, rax
jne 0x1401571d1
lea r14, [rbx + 0x20]
cmp qword [r15 + 0x10], rbx
je 0x1401572a6
dec qword [r15 + 0x20]
mov rdx, rbx
call fcn.14013f1c0
test r14, r14
je 0x1401574bf
mov rcx, rbx
call fcn.14018f5b0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [0x1402c59d0]
mov ecx, dword [0x1402c2670]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140157343
mov rax, qword [0x1402c59c8]
xor ecx, ecx
sub rcx, qword [rax + 0x58]
and rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsi + 0x30]
movabs rax, 0xfffffffc00000000
and rax, rcx
cmp rax, qword [0x1402b5708]
je 0x1401574a2
mov qword [rsi + 0x30], 0
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140191d80
nop
add rsp, 0x158
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rax, rdx
mov rdx, qword [rdx]
test rdx, rdx
je 0x1401571dd
jmp 0x140157295
mov qword [r15 + 0x10], rax
jmp 0x1401571eb
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x14015714d
lea rcx, [0x1402c5c38]
call fcn.14018f730
cmp dword [0x1402c5c38], 0xffffffff
jne 0x140157131
mov ecx, Ordinal_41
call fcn.14018f5b8
mov rdi, rax
lea rax, [0x140270168]
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.140043790
lea rcx, [rsp + 0x30]
mov byte [rcx], 1
mov qword [rsp + 0x20], rcx
lea r8, str.SharedMemoryTracker
mov rcx, rax
mov rdx, rdi
xor r9d, r9d
call fcn.140149b70
mov qword [0x1402c5c30], rdi
lea rcx, [0x1402c5c38]
call fcn.14018f6c4
jmp 0x140157131
lea rcx, [0x1402c59d0]
call fcn.14018f730
cmp dword [0x1402c59d0], 0xffffffff
jne 0x140157236
lea rdi, [rsp + 0x34]
mov r8d, 0x118
mov rcx, rdi
xor edx, edx
call fcn.1401cdd90
mov dword [rdi - 4], 0x11c
lea rdi, [rsp + 0x30]
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, 0x88
call fcn.14018f5b8
mov rdi, rax
mov ebx, dword [rbx]
mov eax, dword [0x1402c5a18]
mov ecx, dword [0x1402c2670]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140157407
lea r8, [0x1402c59e8]
lea rdx, [rsp + 0x30]
mov rcx, rdi
mov r9d, ebx
call fcn.14002d680
mov qword [0x1402c59c8], rdi
lea rcx, [0x1402c59d0]
call fcn.14018f6c4
jmp 0x140157236
lea rcx, [0x1402c5a18]
call fcn.14018f730
cmp dword [0x1402c5a18], 0xffffffff
jne 0x1401573d8
xorps xmm0, xmm0
movups xmmword [0x1402c5a08], xmm0
movups xmmword [0x1402c59f8], xmm0
movups xmmword [0x1402c59e8], xmm0
lea rcx, [0x1402c59e8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1402c5a18]
call fcn.14018f6c4
jmp 0x1401573d8
lea rdx, str.DecrementMemoryUsage
lea r8, str....._basememory_shared_memory_tracker.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r9d, Ordinal_73
call fcn.14012cb80
lea rdx, str.it___usages_.end__
lea r14, [rsp + 0x28]
mov rcx, r14
mov r8d, Ordinal_127
mov r9, rbx
call fcn.1401cfb10
mov rcx, r14
call fcn.1401ceb10
mov rax, qword [rsi + 8]
mov rcx, qword [r12]
jmp 0x140157193
call fcn.1400fd700
jmp 0x14015726b
lea rcx, [0x140274353]
lea rdx, str....._third_partylibc_srcincludeoptional:800:_assertion_this__has_value___failed:_optional_operator_called_on_a_disengaged_value_n
call fcn.1401ceb00
lea rcx, [0x140274353]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:66:_assertion___loc___nullptr_failed:_null_pointer_given_to_destroy_at_n
call fcn.1401ceb00
int3