Function at 0x14017a320
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rax, qword gs:[0x58]
xor ebx, ebx
and qword [rbp - 0x40], 0
mov r13, r8
mov r14, rcx
mov qword [rbp - 0x38], rbx
mov ecx, 4
xor edi, edi
mov r8, qword [rax]
xor esi, esi
or r12d, 0xffffffff
mov r15d, r9d
mov eax, dword [rcx + r8]
cmp dword [0x140440770], eax
jg 0x14017a855
mov rax, qword [r14 + 0x18]
mov qword [rbp - 0x28], rax
mov rax, qword [rax]
mov r14, qword [rax + 0x178]
mov rax, qword [0x1403c1610]
mov rcx, r14
cmp r15d, 8
je 0x14017a3db
xor r15d, r15d
cmp dword [0x140440928], 1
cmove r15, qword [0x140440048]
call rax
mov rcx, qword [rbp - 0x28]
lea r8, [rbp - 0x40]
mov rax, r14
mov rdx, r15
call rax
mov r14d, eax
test eax, eax
jns 0x14017a7b2
mov ecx, eax
call fcn.140079c40
jmp 0x14017a7bf
xor r15d, r15d
cmp dword [0x140440928], 1
cmove r15, qword [0x14043ffe8]
call rax
mov rcx, qword [rbp - 0x28]
lea r8, [rbp - 0x40]
mov rax, r14
mov rdx, r15
call rax
mov r14d, eax
test eax, eax
js 0x14017a3cf
xor r15d, r15d
lea rdx, [0x140440778]
mov eax, r15d
add rax, rax
mov ecx, r15d
mov qword [rbp - 0x28], rcx
mov r8, qword [rdx + rax*8]
mov rax, qword [rbp + 0x48]
cmp r8, rax
je 0x14017a474
test rax, rax
lea rdx, [0x1403ca998]
lea rcx, [0x1403ca998]
cmovne rdx, rax
test r8, r8
cmovne rcx, r8
call qword [sym.imp.msvcrt.dll__wcsicmp]
lea rdx, [0x140440778]
test eax, eax
je 0x14017a470
inc r15d
cmp r15d, 3
jne 0x14017a410
mov r15d, 0x80070490
mov ecx, r15d
call fcn.140079c40
jmp 0x14017a47f
mov rcx, qword [rbp - 0x28]
add rcx, rcx
xor r15d, r15d
mov r12d, dword [rdx + rcx*8 + 8]
mov ecx, r15d
call fcn.140079c60
test r15d, r15d
mov eax, 0xffffffff
cmovs r12d, eax
test r12b, 1
je 0x14017a4fc
cmp byte [r13], bl
lea rax, [0x1403d2e8c]
lea rcx, [0x1403dc27c]
cmovne rcx, rax
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rsi, rax
test rax, rax
jne 0x14017a4ca
mov ecx, 0x8007000e
mov r14d, ecx
jmp 0x14017a3d1
mov r15, qword [rbp + 0x40]
xor r8d, r8d
cmp dword [0x140440928], 1
mov r9, rax
mov rdx, qword [rbp - 0x40]
cmove r8, qword [0x140440108]
mov rcx, qword [r15 + 0x18]
call fcn.14015f424
mov r14d, eax
test eax, eax
jns 0x14017a500
jmp 0x14017a3cf
mov r15, qword [rbp + 0x40]
test r12b, 2
je 0x14017a534
mov r9d, dword [r13]
xor r8d, r8d
cmp dword [0x140440928], 1
mov rdx, qword [rbp - 0x40]
cmove r8, qword [0x140440110]
mov rcx, qword [r15 + 0x18]
call fcn.14017ce00
mov r14d, eax
test eax, eax
js 0x14017a3cf
test r12b, 4
je 0x14017a5fa
mov r9, qword [r13]
xor r8d, r8d
cmp dword [0x140440928], 1
mov rdx, qword [rbp - 0x40]
cmove r8, qword [0x140440118]
mov rcx, qword [r15 + 0x18]
call fcn.14017cc4c
mov r14d, eax
test eax, eax
js 0x14017a3cf
imul rax, qword [r13], 0x2710
mov rcx, rax
mov dword [rbp - 0x28], eax
shr rcx, 0x20
mov dword [rbp - 0x24], ecx
mov rax, qword [rbp - 0x28]
mov qword [rbp - 0x30], rax
xor ecx, ecx
call fcn.140079c60
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x30]
call fcn.14017beb8
mov r14d, eax
test eax, eax
jns 0x14017a5b4
mov ecx, eax
call fcn.140079c40
mov rbx, qword [rbp - 0x38]
jmp 0x14017a7bf
mov rbx, qword [rbp - 0x38]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rdi, rax
test rax, rax
je 0x14017a4bd
mov rdx, qword [rbp - 0x40]
xor r8d, r8d
cmp dword [0x140440928], 1
mov r9, rax
mov rcx, qword [r15 + 0x18]
cmove r8, qword [0x140440120]
call fcn.14015f424
mov r14d, eax
test eax, eax
js 0x14017a3cf
test r12b, 8
je 0x14017a6c7
mov r9, qword [r13]
xor r8d, r8d
cmp dword [0x140440928], 1
mov rdx, qword [rbp - 0x40]
cmove r8, qword [0x140440128]
mov rcx, qword [r15 + 0x18]
call fcn.14017cc4c
mov r14d, eax
test eax, eax
js 0x14017a3cf
test rbx, rbx
je 0x14017a658
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rbx - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.140079c60
and qword [rbp - 0x38], 0
mov rcx, qword [r13]
lea rdx, [rbp - 0x38]
call fcn.14017bc78
mov r14d, eax
test eax, eax
js 0x14017a5a4
mov rbx, qword [rbp - 0x38]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov r14, rax
test rdi, rdi
je 0x14017a68e
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rdi, r14
test r14, r14
je 0x14017a4bd
mov rdx, qword [rbp - 0x40]
xor r8d, r8d
cmp dword [0x140440928], 1
mov r9, r14
mov rcx, qword [r15 + 0x18]
cmove r8, qword [0x140440130]
call fcn.14015f424
mov r14d, eax
test eax, eax
js 0x14017a3cf
test r12b, 0x10
je 0x14017a7b2
mov r9, qword [r13]
xor r8d, r8d
cmp dword [0x140440928], 1
mov rdx, qword [rbp - 0x40]
cmove r8, qword [0x140440138]
mov rcx, qword [r15 + 0x18]
call fcn.14017cc4c
mov r14d, eax
test eax, eax
js 0x14017a3cf
imul rax, qword [r13], 0x2710
mov rcx, rax
mov dword [rbp - 0x28], eax
shr rcx, 0x20
mov dword [rbp - 0x24], ecx
mov rax, qword [rbp - 0x28]
mov qword [rbp - 0x30], rax
xor ecx, ecx
call fcn.140079c60
test rbx, rbx
je 0x14017a749
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rbx - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.140079c60
and qword [rbp - 0x38], 0
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x30]
call fcn.14017beb8
mov r14d, eax
test eax, eax
js 0x14017a5a4
mov rbx, qword [rbp - 0x38]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov r14, rax
test rdi, rdi
je 0x14017a77f
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rdi, r14
test r14, r14
je 0x14017a4bd
mov rdx, qword [rbp - 0x40]
xor r8d, r8d
cmp dword [0x140440928], 1
mov r9, r14
mov rcx, qword [r15 + 0x18]
cmove r8, qword [0x140440140]
call fcn.14015f424
jmp 0x14017a3c4
mov rdx, qword [rbp + 0x60]
mov rcx, qword [rbp - 0x40]
call fcn.140076ce8
mov ecx, r14d
call fcn.140079c60
test rsi, rsi
je 0x14017a7d5
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test rdi, rdi
je 0x14017a7e3
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test rbx, rbx
je 0x14017a804
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rbx - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.140079c60
and qword [rbp - 0x10], 0
lea rax, [0x14001ab98]
xor r9d, r9d
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x40]
mov qword [rbp - 0x20], 3
lea rdx, [rbp - 0x20]
mov qword [rbp - 8], rax
mov ecx, 0xb9
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
mov rbx, qword [rsp + 0xb0]
mov eax, r14d
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x140440770]
call fcn.14037adcc
cmp dword [0x140440770], 0xffffffff
jne 0x14017a37e
mov ecx, 1
mov dword [0x140440780], 2
lea rax, str.__USERSEP_RESERVED____REARM_COUNT__
mov dword [0x140440790], ecx
mov qword [0x140440778], rax
lea rax, str.__USERSEP_RESERVED____RECREATED_FLAG__
mov qword [0x140440788], rax
lea rax, str.__USERSEP_RESERVED____RECOVERED_FLAG__
mov dword [0x1404407a0], ecx
lea rcx, [0x140440770]
mov qword [0x140440798], rax
call fcn.14037ad5c
jmp 0x14017a37e