Function at 0x140157690
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 [0x1402b4040]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rax, [0x1402728f0]
mov qword [rcx], rax
cmp qword [rcx + 0x10], 0
je 0x14015782d
mov rcx, qword [rsi + 0x18]
lea rax, [rcx + 0xffff]
and rax, 0xffffffffffff0000
cmp rax, rcx
jb 0x140157a8c
lock sub qword [0x1402c6fe8], rax
mov eax, dword [0x1402c6cb8]
mov ecx, dword [0x1402c36f0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14015789d
mov r15, qword [0x1402c6cb0]
lea rdi, [r15 + 8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14015788f
lea r12, [r15 + 0x18]
mov rcx, qword [r15 + 0x18]
test rcx, rcx
je 0x140157a2f
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 0x140157748
cmp rdx, r12
je 0x140157a2f
cmp rax, qword [rdx + 0x20]
jb 0x140157a2f
test rcx, rcx
je 0x1401577e8
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 0x14015777e
cmp rbx, r12
je 0x1401577e8
cmp rax, qword [rbx + 0x20]
jb 0x1401577e8
mov rdx, qword [rbx + 8]
test rdx, rdx
jne 0x140157875
mov rdx, rbx
mov rax, qword [rdx + 0x10]
cmp qword [rax], rdx
mov rdx, rax
jne 0x1401577b1
lea r14, [rbx + 0x20]
cmp qword [r15 + 0x10], rbx
je 0x140157886
dec qword [r15 + 0x20]
mov rdx, rbx
call fcn.14013f7a0
test r14, r14
je 0x140157a9f
mov rcx, rbx
call fcn.14018fb90
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [0x1402c6a50]
mov ecx, dword [0x1402c36f0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140157923
mov rax, qword [0x1402c6a48]
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 [0x1402b6788]
je 0x140157a82
mov qword [rsi + 0x30], 0
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140192360
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 0x1401577bd
jmp 0x140157875
mov qword [r15 + 0x10], rax
jmp 0x1401577cb
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x14015772d
lea rcx, [0x1402c6cb8]
call fcn.14018fd10
cmp dword [0x1402c6cb8], 0xffffffff
jne 0x140157711
mov ecx, Ordinal_41
call fcn.14018fb98
mov rdi, rax
lea rax, [0x1402711a8]
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.14014a150
mov qword [0x1402c6cb0], rdi
lea rcx, [0x1402c6cb8]
call fcn.14018fca4
jmp 0x140157711
lea rcx, [0x1402c6a50]
call fcn.14018fd10
cmp dword [0x1402c6a50], 0xffffffff
jne 0x140157816
lea rdi, [rsp + 0x34]
mov r8d, 0x118
mov rcx, rdi
xor edx, edx
call fcn.1401ce350
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.14018fb98
mov rdi, rax
mov ebx, dword [rbx]
mov eax, dword [0x1402c6a98]
mov ecx, dword [0x1402c36f0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1401579e7
lea r8, [0x1402c6a68]
lea rdx, [rsp + 0x30]
mov rcx, rdi
mov r9d, ebx
call fcn.14002d680
mov qword [0x1402c6a48], rdi
lea rcx, [0x1402c6a50]
call fcn.14018fca4
jmp 0x140157816
lea rcx, [0x1402c6a98]
call fcn.14018fd10
cmp dword [0x1402c6a98], 0xffffffff
jne 0x1401579b8
xorps xmm0, xmm0
movups xmmword [0x1402c6a88], xmm0
movups xmmword [0x1402c6a78], xmm0
movups xmmword [0x1402c6a68], xmm0
lea rcx, [0x1402c6a68]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1402c6a98]
call fcn.14018fca4
jmp 0x1401579b8
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.14012d160
lea rdx, str.it___usages_.end__
lea r14, [rsp + 0x28]
mov rcx, r14
mov r8d, Ordinal_127
mov r9, rbx
call fcn.1401d00d0
mov rcx, r14
call fcn.1401cf0d0
mov rax, qword [rsi + 8]
mov rcx, qword [r12]
jmp 0x140157773
call fcn.1400fdce0
jmp 0x14015784b
lea rcx, [0x140275393]
lea rdx, str....._third_partylibc_srcincludeoptional:800:_assertion_this__has_value___failed:_optional_operator_called_on_a_disengaged_value_n
call fcn.1401cf0c0
lea rcx, [0x140275393]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:66:_assertion___loc___nullptr_failed:_null_pointer_given_to_destroy_at_n
call fcn.1401cf0c0
int3