Function at 0x140172710
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 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
or r15d, 0xffffffff
mov r12, rcx
mov qword [rbp - 0x38], rbx
mov ecx, 4
xor edi, edi
mov r8, qword [rax]
xor esi, esi
mov r14d, r9d
mov r13d, r15d
mov eax, dword [rcx + r8]
cmp dword [0x140422f44], eax
jg 0x140172c3d
mov r12, qword [r12 + 0x18]
xor r15d, r15d
cmp r14d, 8
mov rax, qword [r12]
mov r14, qword [rax + 0x178]
mov rcx, r14
je 0x1401727c7
cmp dword [0x1404230f8], 1
cmove r15, qword [0x140422808]
call qword [0x1403a2250]
lea r8, [rbp - 0x40]
mov rdx, r15
mov rcx, r12
call r14
mov r14d, eax
test eax, eax
jns 0x140172b9b
mov ecx, eax
call fcn.140078308
jmp 0x140172ba8
cmp dword [0x1404230f8], 1
cmove r15, qword [0x1404227a8]
call qword [0x1403a2250]
lea r8, [rbp - 0x40]
mov rdx, r15
mov rcx, r12
call r14
mov r14d, eax
test eax, eax
js 0x1401727bb
xor r15d, r15d
lea rcx, [0x140422f48]
mov eax, r15d
add rax, rax
mov r12d, r15d
mov r8, qword [rcx + rax*8]
mov rax, qword [rbp + 0x48]
cmp r8, rax
je 0x140172856
test rax, rax
lea rdx, [0x1403a8ac8]
lea rcx, [0x1403a8ac8]
cmovne rdx, rax
test r8, r8
cmovne rcx, r8
call qword [sym.imp.msvcrt.dll__wcsicmp]
lea rcx, [0x140422f48]
test eax, eax
je 0x140172856
inc r15d
cmp r15d, 3
jne 0x1401727fa
mov r15d, 0x80070490
mov ecx, r15d
call fcn.140078308
jmp 0x140172861
add r12, r12
xor r15d, r15d
mov r13d, dword [rcx + r12*8 + 8]
mov ecx, r15d
call fcn.140078324
test r15d, r15d
mov eax, 0xffffffff
mov r15, qword [rbp + 0x50]
cmovs r13d, eax
test r13b, 1
je 0x1401728e2
cmp byte [r15], bl
lea rax, [0x1403b961c]
lea rcx, [0x1403bcdbc]
cmovne rcx, rax
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rsi, rax
test rax, rax
jne 0x1401728af
mov ecx, 0x8007000e
mov r14d, ecx
jmp 0x1401727bd
mov r12, qword [rbp + 0x40]
xor r8d, r8d
cmp dword [0x1404230f8], 1
mov r9, rax
mov rdx, qword [rbp - 0x40]
cmove r8, qword [0x1404228c8]
mov rcx, qword [r12 + 0x18]
call fcn.1401584f8
mov r14d, eax
test eax, eax
jns 0x1401728e6
jmp 0x1401727bb
mov r12, qword [rbp + 0x40]
test r13b, 2
je 0x14017291a
mov r9d, dword [r15]
xor r8d, r8d
cmp dword [0x1404230f8], 1
mov rdx, qword [rbp - 0x40]
cmove r8, qword [0x1404228d0]
mov rcx, qword [r12 + 0x18]
call fcn.1401750e8
mov r14d, eax
test eax, eax
js 0x1401727bb
test r13b, 4
je 0x1401729e3
mov r9, qword [r15]
xor r8d, r8d
cmp dword [0x1404230f8], 1
mov rdx, qword [rbp - 0x40]
cmove r8, qword [0x1404228d8]
mov rcx, qword [r12 + 0x18]
call fcn.140174f50
mov r14d, eax
test eax, eax
js 0x1401727bb
imul rax, qword [r15], 0x2710
mov rcx, rax
mov dword [rbp - 0x30], eax
shr rcx, 0x20
mov dword [rbp - 0x2c], ecx
mov rax, qword [rbp - 0x30]
mov qword [rbp - 0x30], rax
xor ecx, ecx
call fcn.140078324
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x30]
call fcn.140174248
mov r14d, eax
test eax, eax
jns 0x140172999
mov ecx, eax
call fcn.140078308
mov rbx, qword [rbp - 0x38]
jmp 0x140172ba8
mov rbx, qword [rbp - 0x38]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rdi, rax
test rax, rax
jne 0x1401729b5
xor edi, edi
jmp 0x1401728a2
mov rdx, qword [rbp - 0x40]
xor r8d, r8d
cmp dword [0x1404230f8], 1
mov r9, rax
mov rcx, qword [r12 + 0x18]
cmove r8, qword [0x1404228e0]
call fcn.1401584f8
mov r14d, eax
test eax, eax
js 0x1401727bb
test r13b, 8
je 0x140172ab0
mov r9, qword [r15]
xor r8d, r8d
cmp dword [0x1404230f8], 1
mov rdx, qword [rbp - 0x40]
cmove r8, qword [0x1404228e8]
mov rcx, qword [r12 + 0x18]
call fcn.140174f50
mov r14d, eax
test eax, eax
js 0x1401727bb
test rbx, rbx
je 0x140172a41
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.140078324
and qword [rbp - 0x38], 0
mov rcx, qword [r15]
lea rdx, [rbp - 0x38]
call fcn.140174010
mov r14d, eax
test eax, eax
js 0x140172989
mov rbx, qword [rbp - 0x38]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov r14, rax
test rdi, rdi
je 0x140172a76
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test r14, r14
je 0x1401729ae
mov rdx, qword [rbp - 0x40]
xor r8d, r8d
cmp dword [0x1404230f8], 1
mov r9, r14
mov rcx, qword [r12 + 0x18]
mov rdi, r14
cmove r8, qword [0x1404228f0]
call fcn.1401584f8
mov r14d, eax
test eax, eax
js 0x1401727bb
test r13b, 0x10
je 0x140172b9b
mov r9, qword [r15]
xor r8d, r8d
cmp dword [0x1404230f8], 1
mov rdx, qword [rbp - 0x40]
cmove r8, qword [0x1404228f8]
mov rcx, qword [r12 + 0x18]
call fcn.140174f50
mov r14d, eax
test eax, eax
js 0x1401727bb
imul rax, qword [r15], 0x2710
mov rcx, rax
mov dword [rbp - 0x30], eax
shr rcx, 0x20
mov dword [rbp - 0x2c], ecx
mov rax, qword [rbp - 0x30]
mov qword [rbp - 0x30], rax
xor ecx, ecx
call fcn.140078324
test rbx, rbx
je 0x140172b31
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.140078324
and qword [rbp - 0x38], 0
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x30]
call fcn.140174248
mov r14d, eax
test eax, eax
js 0x140172989
mov rbx, qword [rbp - 0x38]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov r14, rax
test rdi, rdi
je 0x140172b67
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test r14, r14
je 0x1401729ae
mov rdx, qword [rbp - 0x40]
xor r8d, r8d
cmp dword [0x1404230f8], 1
mov r9, r14
mov rcx, qword [r12 + 0x18]
mov rdi, r14
cmove r8, qword [0x140422900]
call fcn.1401584f8
jmp 0x1401727b0
mov rdx, qword [rbp + 0x60]
mov rcx, qword [rbp - 0x40]
call fcn.1400753a4
mov ecx, r14d
call fcn.140078324
test rsi, rsi
je 0x140172bbe
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test rdi, rdi
je 0x140172bcc
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test rbx, rbx
je 0x140172bed
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.140078324
and qword [rbp - 0x18], 0
lea rax, [0x140033aa0]
xor r9d, r9d
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x40]
mov qword [rbp - 0x28], 3
lea rdx, [rbp - 0x28]
mov qword [rbp - 0x10], rax
mov ecx, 0xb9
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
mov rbx, qword [rsp + 0xb8]
mov eax, r14d
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x140422f44]
call fcn.14035aa48
cmp dword [0x140422f44], r15d
jne 0x140172772
mov ecx, 1
mov dword [0x140422f50], 2
lea rax, str.__USERSEP_RESERVED____REARM_COUNT__
mov dword [0x140422f60], ecx
mov qword [0x140422f48], rax
lea rax, str.__USERSEP_RESERVED____RECREATED_FLAG__
mov qword [0x140422f58], rax
lea rax, str.__USERSEP_RESERVED____RECOVERED_FLAG__
mov dword [0x140422f70], ecx
lea rcx, [0x140422f44]
mov qword [0x140422f68], rax
call fcn.14035a9e8
jmp 0x140172772