Function at 0x1400f2900
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 [0x140231028]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rax, [0x1401ff870]
mov qword [rcx], rax
cmp qword [rcx + 0x10], 0
je 0x1400f2a9d
mov rcx, qword [rsi + 0x18]
lea rax, [rcx + 0xffff]
and rax, 0xffffffffffff0000
cmp rax, rcx
jb 0x1400f2cfc
lock sub qword [0x140243c88], rax
mov eax, dword [0x140243960]
mov ecx, dword [0x1402403d0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400f2b0d
mov r15, qword [0x140243958]
lea rdi, [r15 + 8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400f2aff
lea r12, [r15 + 0x18]
mov rcx, qword [r15 + 0x18]
test rcx, rcx
je 0x1400f2c9f
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 0x1400f29b8
cmp rdx, r12
je 0x1400f2c9f
cmp rax, qword [rdx + 0x20]
jb 0x1400f2c9f
test rcx, rcx
je 0x1400f2a58
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 0x1400f29ee
cmp rbx, r12
je 0x1400f2a58
cmp rax, qword [rbx + 0x20]
jb 0x1400f2a58
mov rdx, qword [rbx + 8]
test rdx, rdx
jne 0x1400f2ae5
mov rdx, rbx
mov rax, qword [rdx + 0x10]
cmp qword [rax], rdx
mov rdx, rax
jne 0x1400f2a21
lea r14, [rbx + 0x20]
cmp qword [r15 + 0x10], rbx
je 0x1400f2af6
dec qword [r15 + 0x20]
mov rdx, rbx
call fcn.1400db650
test r14, r14
je 0x1400f2d0f
mov rcx, rbx
call fcn.1401298a0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [0x140243700]
mov ecx, dword [0x1402403d0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400f2b93
mov rax, qword [0x1402436f8]
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 [0x140233688]
je 0x1400f2cf2
mov qword [rsi + 0x30], 0
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14012c2d0
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 0x1400f2a2d
jmp 0x1400f2ae5
mov qword [r15 + 0x10], rax
jmp 0x1400f2a3b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
jmp 0x1400f299d
lea rcx, [0x140243960]
call fcn.1401299b4
cmp dword [0x140243960], 0xffffffff
jne 0x1400f2981
mov ecx, 0x28
call fcn.1401298a8
mov rdi, rax
lea rax, [0x1401fe118]
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.140046c80
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.1400e5650
mov qword [0x140243958], rdi
lea rcx, [0x140243960]
call fcn.140129a1c
jmp 0x1400f2981
lea rcx, [0x140243700]
call fcn.1401299b4
cmp dword [0x140243700], 0xffffffff
jne 0x1400f2a86
lea rdi, [rsp + 0x34]
mov r8d, 0x118
mov rcx, rdi
xor edx, edx
call fcn.14012e410
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.1401298a8
mov rdi, rax
mov ebx, dword [rbx]
mov eax, dword [0x140243748]
mov ecx, dword [0x1402403d0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400f2c57
lea r8, [0x140243718]
lea rdx, [rsp + 0x30]
mov rcx, rdi
mov r9d, ebx
call fcn.140031ae0
mov qword [0x1402436f8], rdi
lea rcx, [0x140243700]
call fcn.140129a1c
jmp 0x1400f2a86
lea rcx, [0x140243748]
call fcn.1401299b4
cmp dword [0x140243748], 0xffffffff
jne 0x1400f2c28
xorps xmm0, xmm0
movups xmmword [0x140243738], xmm0
movups xmmword [0x140243728], xmm0
movups xmmword [0x140243718], xmm0
lea rcx, [0x140243718]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140243748]
call fcn.140129a1c
jmp 0x1400f2c28
lea rdx, str.DecrementMemoryUsage
lea r8, str....._basememory_shared_memory_tracker.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r9d, 0x44
call fcn.1400c8fe0
lea rdx, str.it___usages_.end__
lea r14, [rsp + 0x28]
mov rcx, r14
mov r8d, 0x7d
mov r9, rbx
call fcn.1401648b0
mov rcx, r14
call fcn.140163640
mov rax, qword [rsi + 8]
mov rcx, qword [r12]
jmp 0x1400f29e3
call fcn.1400980c0
jmp 0x1400f2abb
lea rcx, [0x14020233c]
lea rdx, str....._third_partylibc_srcincludeoptional:800:_assertion_this__has_value___failed:_optional_operator_called_on_a_disengaged_value_n
call fcn.140163630
lea rcx, [0x14020233c]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:66:_assertion___loc___nullptr_failed:_null_pointer_given_to_destroy_at_n
call fcn.140163630
int3