Function at 0x140175994
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 [0x14042fd30], eax
jg 0x140175ec5
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 0x140175a4a
xor r15d, r15d
cmp dword [0x14042fef8], 1
cmove r15, qword [0x14042f608]
call qword [0x1403af620]
mov rcx, qword [rbp - 0x28]
lea r8, [rbp - 0x40]
mov rdx, r15
call r14
mov r14d, eax
test eax, eax
jns 0x140175e23
mov ecx, eax
call fcn.1400790f8
jmp 0x140175e30
xor r15d, r15d
cmp dword [0x14042fef8], 1
cmove r15, qword [0x14042f5a8]
call qword [0x1403af620]
mov rcx, qword [rbp - 0x28]
lea r8, [rbp - 0x40]
mov rdx, r15
call r14
mov r14d, eax
test eax, eax
js 0x140175a3e
xor r15d, r15d
lea rdx, [0x14042fd40]
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 0x140175ae5
test rax, rax
lea rdx, [0x1403b8928]
lea rcx, [0x1403b8928]
cmovne rdx, rax
test r8, r8
cmovne rcx, r8
call qword [sym.imp.msvcrt.dll__wcsicmp]
lea rdx, [0x14042fd40]
test eax, eax
je 0x140175ae1
inc r15d
cmp r15d, 3
jne 0x140175a81
mov r15d, 0x80070490
mov ecx, r15d
call fcn.1400790f8
jmp 0x140175af0
mov rcx, qword [rbp - 0x28]
add rcx, rcx
xor r15d, r15d
mov r12d, dword [rdx + rcx*8 + 8]
mov ecx, r15d
call fcn.140079118
test r15d, r15d
mov eax, 0xffffffff
cmovs r12d, eax
test r12b, 1
je 0x140175b6d
cmp byte [r13], bl
lea rax, [0x1403c0e1c]
lea rcx, [0x1403ca20c]
cmovne rcx, rax
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rsi, rax
test rax, rax
jne 0x140175b3b
mov ecx, 0x8007000e
mov r14d, ecx
jmp 0x140175a40
mov r15, qword [rbp + 0x40]
xor r8d, r8d
cmp dword [0x14042fef8], 1
mov r9, rax
mov rdx, qword [rbp - 0x40]
cmove r8, qword [0x14042f6c8]
mov rcx, qword [r15 + 0x18]
call fcn.14015acfc
mov r14d, eax
test eax, eax
jns 0x140175b71
jmp 0x140175a3e
mov r15, qword [rbp + 0x40]
test r12b, 2
je 0x140175ba5
mov r9d, dword [r13]
xor r8d, r8d
cmp dword [0x14042fef8], 1
mov rdx, qword [rbp - 0x40]
cmove r8, qword [0x14042f6d0]
mov rcx, qword [r15 + 0x18]
call fcn.1401783b8
mov r14d, eax
test eax, eax
js 0x140175a3e
test r12b, 4
je 0x140175c6b
mov r9, qword [r13]
xor r8d, r8d
cmp dword [0x14042fef8], 1
mov rdx, qword [rbp - 0x40]
cmove r8, qword [0x14042f6d8]
mov rcx, qword [r15 + 0x18]
call fcn.14017821c
mov r14d, eax
test eax, eax
js 0x140175a3e
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.140079118
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x30]
call fcn.140177504
mov r14d, eax
test eax, eax
jns 0x140175c25
mov ecx, eax
call fcn.1400790f8
mov rbx, qword [rbp - 0x38]
jmp 0x140175e30
mov rbx, qword [rbp - 0x38]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rdi, rax
test rax, rax
je 0x140175b2e
mov rdx, qword [rbp - 0x40]
xor r8d, r8d
cmp dword [0x14042fef8], 1
mov r9, rax
mov rcx, qword [r15 + 0x18]
cmove r8, qword [0x14042f6e0]
call fcn.14015acfc
mov r14d, eax
test eax, eax
js 0x140175a3e
test r12b, 8
je 0x140175d38
mov r9, qword [r13]
xor r8d, r8d
cmp dword [0x14042fef8], 1
mov rdx, qword [rbp - 0x40]
cmove r8, qword [0x14042f6e8]
mov rcx, qword [r15 + 0x18]
call fcn.14017821c
mov r14d, eax
test eax, eax
js 0x140175a3e
test rbx, rbx
je 0x140175cc9
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.140079118
and qword [rbp - 0x38], 0
mov rcx, qword [r13]
lea rdx, [rbp - 0x38]
call fcn.1401772c4
mov r14d, eax
test eax, eax
js 0x140175c15
mov rbx, qword [rbp - 0x38]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov r14, rax
test rdi, rdi
je 0x140175cff
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rdi, r14
test r14, r14
je 0x140175b2e
mov rdx, qword [rbp - 0x40]
xor r8d, r8d
cmp dword [0x14042fef8], 1
mov r9, r14
mov rcx, qword [r15 + 0x18]
cmove r8, qword [0x14042f6f0]
call fcn.14015acfc
mov r14d, eax
test eax, eax
js 0x140175a3e
test r12b, 0x10
je 0x140175e23
mov r9, qword [r13]
xor r8d, r8d
cmp dword [0x14042fef8], 1
mov rdx, qword [rbp - 0x40]
cmove r8, qword [0x14042f6f8]
mov rcx, qword [r15 + 0x18]
call fcn.14017821c
mov r14d, eax
test eax, eax
js 0x140175a3e
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.140079118
test rbx, rbx
je 0x140175dba
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.140079118
and qword [rbp - 0x38], 0
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x30]
call fcn.140177504
mov r14d, eax
test eax, eax
js 0x140175c15
mov rbx, qword [rbp - 0x38]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov r14, rax
test rdi, rdi
je 0x140175df0
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rdi, r14
test r14, r14
je 0x140175b2e
mov rdx, qword [rbp - 0x40]
xor r8d, r8d
cmp dword [0x14042fef8], 1
mov r9, r14
mov rcx, qword [r15 + 0x18]
cmove r8, qword [0x14042f700]
call fcn.14015acfc
jmp 0x140175a33
mov rdx, qword [rbp + 0x60]
mov rcx, qword [rbp - 0x40]
call fcn.14007613c
mov ecx, r14d
call fcn.140079118
test rsi, rsi
je 0x140175e46
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test rdi, rdi
je 0x140175e54
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test rbx, rbx
je 0x140175e75
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.140079118
and qword [rbp - 0x10], 0
lea rax, [0x14001a7b8]
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, [0x14042fd30]
call fcn.140368b2c
cmp dword [0x14042fd30], 0xffffffff
jne 0x1401759f2
mov ecx, 1
mov dword [0x14042fd48], 2
lea rax, str.__USERSEP_RESERVED____REARM_COUNT__
mov dword [0x14042fd58], ecx
mov qword [0x14042fd40], rax
lea rax, str.__USERSEP_RESERVED____RECREATED_FLAG__
mov qword [0x14042fd50], rax
lea rax, str.__USERSEP_RESERVED____RECOVERED_FLAG__
mov dword [0x14042fd68], ecx
lea rcx, [0x14042fd30]
mov qword [0x14042fd60], rax
call fcn.140368abc
jmp 0x1401759f2