Function at 0x140107a10
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 [0x140260028]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rax, [0x14022f318]
mov qword [rcx], rax
cmp qword [rcx + 0x10], 0
je 0x140107bad
mov rcx, qword [rsi + 0x18]
lea rax, [rcx + 0xffff]
and rax, 0xffffffffffff0000
cmp rax, rcx
jb 0x140107e02
lock sub qword [0x140272718], rax
mov eax, dword [0x1402723f0]
mov ecx, dword [0x14026ee18]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140107c1d
mov r15, qword [0x1402723e8]
lea rdi, [r15 + 8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140107c06
lea r12, [r15 + 0x18]
mov rcx, qword [r15 + 0x18]
test rcx, rcx
je 0x140107daf
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 0x140107ac8
cmp rdx, r12
je 0x140107daf
cmp rax, qword [rdx + 0x20]
jb 0x140107daf
test rcx, rcx
je 0x140107b68
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 0x140107afe
cmp rbx, r12
je 0x140107b68
cmp rax, qword [rbx + 0x20]
jb 0x140107b68
mov rdx, qword [rbx + 8]
test rdx, rdx
jne 0x140107bf5
mov rdx, rbx
mov rax, qword [rdx + 0x10]
cmp qword [rax], rdx
mov rdx, rax
jne 0x140107b31
lea r14, [rbx + 0x20]
cmp qword [r15 + 0x10], rbx
je 0x140107c14
dec qword [r15 + 0x20]
mov rdx, rbx
call fcn.1400f14a0
test r14, r14
je 0x140107e02
mov rcx, rbx
call fcn.140146640
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [0x140272140]
mov ecx, dword [0x14026ee18]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140107ca3
mov rax, qword [0x140272138]
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 [0x140262688]
je 0x140107e04
mov qword [rsi + 0x30], 0
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140149190
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 0x140107b3d
jmp 0x140107bf5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x140107aad
mov qword [r15 + 0x10], rax
jmp 0x140107b4b
lea rcx, [0x1402723f0]
call fcn.1401467a0
cmp dword [0x1402723f0], 0xffffffff
jne 0x140107a91
mov ecx, 0x28
call fcn.140146648
mov rdi, rax
lea rax, [0x14022dba8]
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.140049290
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.1400fe020
mov qword [0x1402723e8], rdi
lea rcx, [0x1402723f0]
call fcn.140146740
jmp 0x140107a91
lea rcx, [0x140272140]
call fcn.1401467a0
cmp dword [0x140272140], 0xffffffff
jne 0x140107b96
lea rdi, [rsp + 0x34]
mov r8d, 0x118
mov rcx, rdi
xor edx, edx
call fcn.14014b2c0
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.140146648
mov rdi, rax
mov ebx, dword [rbx]
mov eax, dword [0x140272188]
mov ecx, dword [0x14026ee18]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140107d67
lea r8, [0x140272158]
lea rdx, [rsp + 0x30]
mov rcx, rdi
mov r9d, ebx
call fcn.14003b5e0
mov qword [0x140272138], rdi
lea rcx, [0x140272140]
call fcn.140146740
jmp 0x140107b96
lea rcx, [0x140272188]
call fcn.1401467a0
cmp dword [0x140272188], 0xffffffff
jne 0x140107d38
xorps xmm0, xmm0
movups xmmword [0x140272178], xmm0
movups xmmword [0x140272168], xmm0
movups xmmword [0x140272158], xmm0
lea rcx, [0x140272158]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140272188]
call fcn.140146740
jmp 0x140107d38
lea rdx, str.DecrementMemoryUsage
lea r8, str....._basememory_shared_memory_tracker.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r9d, 0x44
call fcn.1400d3160
lea rdx, str.it___usages_.end__
lea r14, [rsp + 0x28]
mov rcx, r14
mov r8d, 0x7d
mov r9, rbx
call fcn.140183b80
mov rcx, r14
call fcn.1401829c0
mov rax, qword [rsi + 8]
mov rcx, qword [r12]
jmp 0x140107af3
ud2
call fcn.140004bf0
jmp 0x140107bcb