Function at 0x14017a7ec
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 [0x140438c40], eax
jg 0x14017ad1d
mov rax, qword [r14 + 0x18]
mov qword [rbp - 0x28], rax
mov rax, qword [rax]
mov r14, qword [rax + 0x178]
mov rcx, r14
cmp r15d, 8
je 0x14017a8a2
xor r15d, r15d
cmp dword [0x140438e08], 1
cmove r15, qword [0x140438508]
call qword [0x1403b8660]
mov rcx, qword [rbp - 0x28]
lea r8, [rbp - 0x40]
mov rdx, r15
call r14
mov r14d, eax
test eax, eax
jns 0x14017ac7b
mov ecx, eax
call fcn.14007ab24
jmp 0x14017ac88
xor r15d, r15d
cmp dword [0x140438e08], 1
cmove r15, qword [0x1404384a8]
call qword [0x1403b8660]
mov rcx, qword [rbp - 0x28]
lea r8, [rbp - 0x40]
mov rdx, r15
call r14
mov r14d, eax
test eax, eax
js 0x14017a896
xor r15d, r15d
lea rdx, [0x140438c50]
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 0x14017a93d
test rax, rax
lea rdx, [0x1403c1978]
lea rcx, [0x1403c1978]
cmovne rdx, rax
test r8, r8
cmovne rcx, r8
call qword [sym.imp.msvcrt.dll__wcsicmp]
lea rdx, [0x140438c50]
test eax, eax
je 0x14017a939
inc r15d
cmp r15d, 3
jne 0x14017a8d9
mov r15d, 0x80070490
mov ecx, r15d
call fcn.14007ab24
jmp 0x14017a948
mov rcx, qword [rbp - 0x28]
add rcx, rcx
xor r15d, r15d
mov r12d, dword [rdx + rcx*8 + 8]
mov ecx, r15d
call fcn.14007ab44
test r15d, r15d
mov eax, 0xffffffff
cmovs r12d, eax
test r12b, 1
je 0x14017a9c5
cmp byte [r13], bl
lea rax, [0x1403c9e8c]
lea rcx, [0x1403d327c]
cmovne rcx, rax
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rsi, rax
test rax, rax
jne 0x14017a993
mov ecx, 0x8007000e
mov r14d, ecx
jmp 0x14017a898
mov r15, qword [rbp + 0x40]
xor r8d, r8d
cmp dword [0x140438e08], 1
mov r9, rax
mov rdx, qword [rbp - 0x40]
cmove r8, qword [0x1404385c8]
mov rcx, qword [r15 + 0x18]
call fcn.14015fd2c
mov r14d, eax
test eax, eax
jns 0x14017a9c9
jmp 0x14017a896
mov r15, qword [rbp + 0x40]
test r12b, 2
je 0x14017a9fd
mov r9d, dword [r13]
xor r8d, r8d
cmp dword [0x140438e08], 1
mov rdx, qword [rbp - 0x40]
cmove r8, qword [0x1404385d0]
mov rcx, qword [r15 + 0x18]
call fcn.14017d220
mov r14d, eax
test eax, eax
js 0x14017a896
test r12b, 4
je 0x14017aac3
mov r9, qword [r13]
xor r8d, r8d
cmp dword [0x140438e08], 1
mov rdx, qword [rbp - 0x40]
cmove r8, qword [0x1404385d8]
mov rcx, qword [r15 + 0x18]
call fcn.14017d084
mov r14d, eax
test eax, eax
js 0x14017a896
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.14007ab44
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x30]
call fcn.14017c364
mov r14d, eax
test eax, eax
jns 0x14017aa7d
mov ecx, eax
call fcn.14007ab24
mov rbx, qword [rbp - 0x38]
jmp 0x14017ac88
mov rbx, qword [rbp - 0x38]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rdi, rax
test rax, rax
je 0x14017a986
mov rdx, qword [rbp - 0x40]
xor r8d, r8d
cmp dword [0x140438e08], 1
mov r9, rax
mov rcx, qword [r15 + 0x18]
cmove r8, qword [0x1404385e0]
call fcn.14015fd2c
mov r14d, eax
test eax, eax
js 0x14017a896
test r12b, 8
je 0x14017ab90
mov r9, qword [r13]
xor r8d, r8d
cmp dword [0x140438e08], 1
mov rdx, qword [rbp - 0x40]
cmove r8, qword [0x1404385e8]
mov rcx, qword [r15 + 0x18]
call fcn.14017d084
mov r14d, eax
test eax, eax
js 0x14017a896
test rbx, rbx
je 0x14017ab21
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.14007ab44
and qword [rbp - 0x38], 0
mov rcx, qword [r13]
lea rdx, [rbp - 0x38]
call fcn.14017c124
mov r14d, eax
test eax, eax
js 0x14017aa6d
mov rbx, qword [rbp - 0x38]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov r14, rax
test rdi, rdi
je 0x14017ab57
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rdi, r14
test r14, r14
je 0x14017a986
mov rdx, qword [rbp - 0x40]
xor r8d, r8d
cmp dword [0x140438e08], 1
mov r9, r14
mov rcx, qword [r15 + 0x18]
cmove r8, qword [0x1404385f0]
call fcn.14015fd2c
mov r14d, eax
test eax, eax
js 0x14017a896
test r12b, 0x10
je 0x14017ac7b
mov r9, qword [r13]
xor r8d, r8d
cmp dword [0x140438e08], 1
mov rdx, qword [rbp - 0x40]
cmove r8, qword [0x1404385f8]
mov rcx, qword [r15 + 0x18]
call fcn.14017d084
mov r14d, eax
test eax, eax
js 0x14017a896
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.14007ab44
test rbx, rbx
je 0x14017ac12
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.14007ab44
and qword [rbp - 0x38], 0
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x30]
call fcn.14017c364
mov r14d, eax
test eax, eax
js 0x14017aa6d
mov rbx, qword [rbp - 0x38]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov r14, rax
test rdi, rdi
je 0x14017ac48
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rdi, r14
test r14, r14
je 0x14017a986
mov rdx, qword [rbp - 0x40]
xor r8d, r8d
cmp dword [0x140438e08], 1
mov r9, r14
mov rcx, qword [r15 + 0x18]
cmove r8, qword [0x140438600]
call fcn.14015fd2c
jmp 0x14017a88b
mov rdx, qword [rbp + 0x60]
mov rcx, qword [rbp - 0x40]
call fcn.140077a84
mov ecx, r14d
call fcn.14007ab44
test rsi, rsi
je 0x14017ac9e
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test rdi, rdi
je 0x14017acac
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test rbx, rbx
je 0x14017accd
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.14007ab44
and qword [rbp - 0x10], 0
lea rax, [0x14001cb78]
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, [0x140438c40]
call fcn.14036ea0c
cmp dword [0x140438c40], 0xffffffff
jne 0x14017a84a
mov ecx, 1
mov dword [0x140438c58], 2
lea rax, str.__USERSEP_RESERVED____REARM_COUNT__
mov dword [0x140438c68], ecx
mov qword [0x140438c50], rax
lea rax, str.__USERSEP_RESERVED____RECREATED_FLAG__
mov qword [0x140438c60], rax
lea rax, str.__USERSEP_RESERVED____RECOVERED_FLAG__
mov dword [0x140438c78], ecx
lea rcx, [0x140438c40]
mov qword [0x140438c70], rax
call fcn.14036e99c
jmp 0x14017a84a