Function at 0x14017b06c
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
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 r15d, r15d
or esi, 0xffffffff
mov qword [rbp - 0x40], r15
mov r13, rcx
mov qword [rbp + 0x40], r15
mov ecx, 4
mov r12d, r9d
mov r10, qword [rax]
mov r14, rdx
mov qword [rbp - 0x38], r15
lea ebx, [rsi + 2]
mov edi, r15d
mov eax, dword [rcx + r10]
cmp dword [0x1404407a8], eax
jg 0x14017b53b
mov ebx, r15d
lea rcx, [0x1404407b0]
mov eax, ebx
add rax, rax
mov esi, ebx
mov r8, qword [rcx + rax*8]
cmp r8, r14
je 0x14017b12a
test r14, r14
lea rdx, [0x1403ca998]
lea rcx, [0x1403ca998]
cmovne rdx, r14
test r8, r8
cmovne rcx, r8
call qword [sym.imp.msvcrt.dll__wcsicmp]
lea rcx, [0x1404407b0]
test eax, eax
je 0x14017b12a
inc ebx
cmp ebx, 6
jne 0x14017b0d4
mov ebx, 0x80070490
mov ecx, ebx
call fcn.140079c40
mov r15d, dword [rbp + 0x40]
jmp 0x14017b134
add rsi, rsi
xor ebx, ebx
mov r15d, dword [rcx + rsi*8 + 8]
mov ecx, ebx
call fcn.140079c60
mov r14, qword [r13 + 0x18]
test ebx, ebx
mov eax, 0xffffffff
cmovs r15d, eax
xor esi, esi
cmp dword [0x140440928], 1
mov rax, qword [r14]
cmove rsi, qword [0x14043ffd8]
mov rbx, qword [rax + 0x178]
mov rax, qword [0x1403c1610]
mov rcx, rbx
call rax
mov rax, rbx
lea r8, [rbp - 0x40]
mov rdx, rsi
mov rcx, r14
call rax
mov esi, eax
test eax, eax
jns 0x14017b192
mov ecx, eax
call fcn.140079c40
jmp 0x14017b41e
test r15d, r15d
je 0x14017b3df
sub r15d, 1
je 0x14017b2c9
sub r15d, 1
je 0x14017b1e3
mov r8, qword [rbp - 0x40]
xor ecx, ecx
mov rdx, qword [r13 + 0x18]
cmp r15d, 1
je 0x14017b1cf
cmp dword [0x140440928], 1
cmove rcx, qword [0x140440000]
jmp 0x14017b402
cmp dword [0x140440928], 1
cmove rcx, qword [0x140440038]
jmp 0x14017b402
cmp r12d, 8
je 0x14017b1ff
xor ecx, ecx
cmp dword [0x140440928], 1
cmove rcx, qword [0x140440018]
jmp 0x14017b3fa
mov rax, qword [rbp + 0x50]
lea rdx, [rbp - 0x38]
mov r15, qword [rax]
mov rcx, r15
call fcn.14017bb84
mov esi, eax
test eax, eax
js 0x14017b186
mov r14, qword [r13 + 0x18]
xor esi, esi
cmp dword [0x140440928], 1
cmove rsi, qword [0x140440030]
mov rax, qword [r14]
mov rbx, qword [rax + 0x178]
mov rax, qword [0x1403c1610]
mov rcx, rbx
call rax
mov rax, rbx
lea r8, [rbp + 0x40]
mov rdx, rsi
mov rcx, r14
call rax
mov esi, eax
test eax, eax
js 0x14017b186
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rdi, rax
test rax, rax
je 0x14017b52f
mov rdx, qword [rbp + 0x40]
xor r8d, r8d
cmp dword [0x140440928], 1
mov r9, rax
mov rcx, qword [r13 + 0x18]
cmove r8, qword [0x140440098]
call fcn.14015f424
mov esi, eax
test eax, eax
js 0x14017b186
mov rdx, qword [rbp + 0x40]
xor r8d, r8d
cmp dword [0x140440928], 1
mov r9, r15
mov rcx, qword [r13 + 0x18]
cmove r8, qword [0x1404400a0]
call fcn.14017ca98
jmp 0x14017b3aa
cmp r12d, 8
je 0x14017b2e5
xor ecx, ecx
cmp dword [0x140440928], 1
cmove rcx, qword [0x140440010]
jmp 0x14017b3fa
mov rax, qword [rbp + 0x50]
lea rdx, [rbp - 0x38]
mov r15, qword [rax]
mov rcx, r15
call fcn.14017bc78
mov esi, eax
test eax, eax
js 0x14017b186
xor esi, esi
cmp dword [0x140440928], 1
cmove rsi, qword [0x140440028]
mov r14, qword [r13 + 0x18]
mov rax, qword [r14]
mov rbx, qword [rax + 0x178]
mov rax, qword [0x1403c1610]
mov rcx, rbx
call rax
lea r8, [rbp + 0x40]
mov rdx, rsi
mov rcx, r14
mov rax, rbx
call rax
mov esi, eax
test eax, eax
js 0x14017b186
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rdi, rax
test rax, rax
je 0x14017b52f
mov rdx, qword [rbp + 0x40]
xor r8d, r8d
cmp dword [0x140440928], 1
mov r9, rax
mov rcx, qword [r13 + 0x18]
cmove r8, qword [0x140440098]
call fcn.14015f424
mov esi, eax
test eax, eax
js 0x14017b186
mov rdx, qword [rbp + 0x40]
xor r8d, r8d
cmp dword [0x140440928], 1
mov r9, r15
mov rcx, qword [r13 + 0x18]
cmove r8, qword [0x1404400a0]
call fcn.14017cc4c
mov esi, eax
test eax, eax
js 0x14017b186
mov rbx, qword [rbp - 0x40]
mov rax, qword [rbx]
mov rsi, qword [rax + 0xa8]
mov rax, qword [0x1403c1610]
mov rcx, rsi
call rax
mov rdx, qword [rbp + 0x40]
mov rax, rsi
xor r8d, r8d
mov rcx, rbx
call rax
jmp 0x14017b407
cmp r12d, 8
je 0x14017b4d8
xor ecx, ecx
cmp dword [0x140440928], 1
cmove rcx, qword [0x140440008]
mov r8, qword [rbp - 0x40]
mov rdx, qword [r13 + 0x18]
call fcn.14017c9b4
mov esi, eax
test eax, eax
js 0x14017b186
mov rdx, qword [rbp + 0x60]
mov rcx, qword [rbp - 0x40]
call fcn.140076ce8
mov ecx, esi
call fcn.140079c60
test rdi, rdi
je 0x14017b433
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rax, qword [rbp - 0x38]
test rax, rax
je 0x14017b45b
lea rbx, [rax - 4]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.140079c60
and qword [rbp - 0x18], 0
lea rax, [rbp + 0x40]
mov r15d, 3
mov qword [rbp - 0x10], rax
mov ebx, 0xb9
mov qword [rbp - 0x28], r15
lea r14, [0x14001a1d8]
xor r9d, r9d
lea rdx, [rbp - 0x28]
mov qword [rbp - 0x20], r14
lea edi, [r15 + 0x1d]
mov ecx, ebx
mov r8d, edi
call sub.ntdll.dll_NtQuerySystemInformation
and qword [rbp - 0x18], 0
lea rax, [rbp - 0x40]
xor r9d, r9d
mov qword [rbp - 0x10], rax
mov r8d, edi
mov qword [rbp - 0x28], r15
lea rdx, [rbp - 0x28]
mov qword [rbp - 0x20], r14
mov ecx, ebx
call sub.ntdll.dll_NtQuerySystemInformation
mov rbx, qword [rsp + 0xa8]
mov eax, esi
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rbp + 0x50]
mov r15, qword [rax]
imul rax, 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.140079c60
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x30]
call fcn.14017beb8
mov esi, eax
test eax, eax
js 0x14017b186
xor esi, esi
cmp dword [0x140440928], 1
cmove rsi, qword [0x140440020]
jmp 0x14017b313
mov ecx, 0x8007000e
mov esi, ecx
jmp 0x14017b188
lea rcx, [0x1404407a8]
call fcn.14037adcc
cmp dword [0x1404407a8], esi
jne 0x14017b0ca
lea rax, str.__USERSEP_RESERVED____GLOBAL_CREATION_TIME__
mov dword [0x1404407b8], r15d
mov qword [0x1404407b0], rax
lea rcx, [0x1404407a8]
lea rax, str.__USERSEP_RESERVED____GLOBAL_UP_TIME__
mov dword [0x1404407c8], ebx
mov qword [0x1404407c0], rax
lea rax, str.__USERSEP_RESERVED____UP_TIME_DELTA__
mov qword [0x1404407d0], rax
lea rax, str.__USERSEP_RESERVED____GLOBAL_TICKCOUNT_UPTIME__
mov qword [0x1404407e0], rax
lea rax, str.__USERSEP_RESERVED____GLOBAL_TIMERQUEUETIMER_UPTIME__
mov qword [0x1404407f0], rax
lea rax, str.__USERSEP_RESERVED____GLOBAL_BREADCRUMB__
mov qword [0x140440800], rax
mov dword [0x1404407d8], 2
mov dword [0x1404407e8], ebx
mov dword [0x1404407f8], ebx
mov dword [0x140440808], 3
call fcn.14037ad5c
jmp 0x14017b0ca