Function at 0x1401570a0
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 0x14015723d
mov rcx, qword [rsi + 0x18]
lea rax, [rcx + 0xffff]
and rax, 0xffffffffffff0000
cmp rax, rcx
jb 0x14015749c
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 0x1401572ad
mov r15, qword [0x1402c5c30]
lea rdi, [r15 + 8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14015729f
lea r12, [r15 + 0x18]
mov rcx, qword [r15 + 0x18]
test rcx, rcx
je 0x14015743f
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 0x140157158
cmp rdx, r12
je 0x14015743f
cmp rax, qword [rdx + 0x20]
jb 0x14015743f
test rcx, rcx
je 0x1401571f8
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 0x14015718e
cmp rbx, r12
je 0x1401571f8
cmp rax, qword [rbx + 0x20]
jb 0x1401571f8
mov rdx, qword [rbx + 8]
test rdx, rdx
jne 0x140157285
mov rdx, rbx
mov rax, qword [rdx + 0x10]
cmp qword [rax], rdx
mov rdx, rax
jne 0x1401571c1
lea r14, [rbx + 0x20]
cmp qword [r15 + 0x10], rbx
je 0x140157296
dec qword [r15 + 0x20]
mov rdx, rbx
call fcn.14013f1b0
test r14, r14
je 0x1401574af
mov rcx, rbx
call fcn.14018f5a0
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 0x140157333
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 0x140157492
mov qword [rsi + 0x30], 0
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140191d70
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 0x1401571cd
jmp 0x140157285
mov qword [r15 + 0x10], rax
jmp 0x1401571db
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x14015713d
lea rcx, [0x1402c5c38]
call fcn.14018f720
cmp dword [0x1402c5c38], 0xffffffff
jne 0x140157121
mov ecx, Ordinal_41
call fcn.14018f5a8
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.1400432a0
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.140149b60
mov qword [0x1402c5c30], rdi
lea rcx, [0x1402c5c38]
call fcn.14018f6b4
jmp 0x140157121
lea rcx, [0x1402c59d0]
call fcn.14018f720
cmp dword [0x1402c59d0], 0xffffffff
jne 0x140157226
lea rdi, [rsp + 0x34]
mov r8d, 0x118
mov rcx, rdi
xor edx, edx
call fcn.1401cdd80
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.14018f5a8
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 0x1401573f7
lea r8, [0x1402c59e8]
lea rdx, [rsp + 0x30]
mov rcx, rdi
mov r9d, ebx
call fcn.14002d190
mov qword [0x1402c59c8], rdi
lea rcx, [0x1402c59d0]
call fcn.14018f6b4
jmp 0x140157226
lea rcx, [0x1402c5a18]
call fcn.14018f720
cmp dword [0x1402c5a18], 0xffffffff
jne 0x1401573c8
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.14018f6b4
jmp 0x1401573c8
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.14012cb70
lea rdx, str.it___usages_.end__
lea r14, [rsp + 0x28]
mov rcx, r14
mov r8d, Ordinal_127
mov r9, rbx
call fcn.1401cfb00
mov rcx, r14
call fcn.1401ceb00
mov rax, qword [rsi + 8]
mov rcx, qword [r12]
jmp 0x140157183
call fcn.1400fd6f0
jmp 0x14015725b
lea rcx, [0x1402742d5]
lea rdx, str....._third_partylibc_srcincludeoptional:800:_assertion_this__has_value___failed:_optional_operator_called_on_a_disengaged_value_n
call fcn.1401ceaf0
lea rcx, [0x1402742d5]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:66:_assertion___loc___nullptr_failed:_null_pointer_given_to_destroy_at_n
call fcn.1401ceaf0
int3