Function at 0x14017b530
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 [0x140438c80], eax
jg 0x14017b9e6
mov ebx, r15d
lea rcx, [0x140438c90]
mov eax, ebx
add rax, rax
mov esi, ebx
mov r8, qword [rcx + rax*8]
cmp r8, r14
je 0x14017b5ee
test r14, r14
lea rdx, [0x1403c1978]
lea rcx, [0x1403c1978]
cmovne rdx, r14
test r8, r8
cmovne rcx, r8
call qword [sym.imp.msvcrt.dll__wcsicmp]
lea rcx, [0x140438c90]
test eax, eax
je 0x14017b5ee
inc ebx
cmp ebx, 6
jne 0x14017b598
mov ebx, 0x80070490
mov ecx, ebx
call fcn.14007ab24
mov r15d, dword [rbp + 0x40]
jmp 0x14017b5f8
add rsi, rsi
xor ebx, ebx
mov r15d, dword [rcx + rsi*8 + 8]
mov ecx, ebx
call fcn.14007ab44
mov r14, qword [r13 + 0x18]
test ebx, ebx
mov eax, 0xffffffff
cmovs r15d, eax
xor esi, esi
cmp dword [0x140438e08], 1
mov rax, qword [r14]
cmove rsi, qword [0x140438498]
mov rbx, qword [rax + 0x178]
mov rcx, rbx
call qword [0x1403b8660]
lea r8, [rbp - 0x40]
mov rdx, rsi
mov rcx, r14
call rbx
mov esi, eax
test eax, eax
jns 0x14017b650
mov ecx, eax
call fcn.14007ab24
jmp 0x14017b8ca
test r15d, r15d
je 0x14017b88b
sub r15d, 1
je 0x14017b781
sub r15d, 1
je 0x14017b6a1
mov r8, qword [rbp - 0x40]
xor ecx, ecx
mov rdx, qword [r13 + 0x18]
cmp r15d, 1
je 0x14017b68d
cmp dword [0x140438e08], 1
cmove rcx, qword [0x1404384c0]
jmp 0x14017b8ae
cmp dword [0x140438e08], 1
cmove rcx, qword [0x1404384f8]
jmp 0x14017b8ae
cmp r12d, 8
je 0x14017b6bd
xor ecx, ecx
cmp dword [0x140438e08], 1
cmove rcx, qword [0x1404384d8]
jmp 0x14017b8a6
mov rax, qword [rbp + 0x50]
lea rdx, [rbp - 0x38]
mov r15, qword [rax]
mov rcx, r15
call fcn.14017c030
mov esi, eax
test eax, eax
js 0x14017b644
mov r14, qword [r13 + 0x18]
xor esi, esi
cmp dword [0x140438e08], 1
cmove rsi, qword [0x1404384f0]
mov rax, qword [r14]
mov rbx, qword [rax + 0x178]
mov rcx, rbx
call qword [0x1403b8660]
lea r8, [rbp + 0x40]
mov rdx, rsi
mov rcx, r14
call rbx
mov esi, eax
test eax, eax
js 0x14017b644
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rdi, rax
test rax, rax
je 0x14017b9da
mov rdx, qword [rbp + 0x40]
xor r8d, r8d
cmp dword [0x140438e08], 1
mov r9, rax
mov rcx, qword [r13 + 0x18]
cmove r8, qword [0x140438558]
call fcn.14015fd2c
mov esi, eax
test eax, eax
js 0x14017b644
mov rdx, qword [rbp + 0x40]
xor r8d, r8d
cmp dword [0x140438e08], 1
mov r9, r15
mov rcx, qword [r13 + 0x18]
cmove r8, qword [0x140438560]
call fcn.14017cee8
jmp 0x14017b85c
cmp r12d, 8
je 0x14017b79d
xor ecx, ecx
cmp dword [0x140438e08], 1
cmove rcx, qword [0x1404384d0]
jmp 0x14017b8a6
mov rax, qword [rbp + 0x50]
lea rdx, [rbp - 0x38]
mov r15, qword [rax]
mov rcx, r15
call fcn.14017c124
mov esi, eax
test eax, eax
js 0x14017b644
xor esi, esi
cmp dword [0x140438e08], 1
cmove rsi, qword [0x1404384e8]
mov r14, qword [r13 + 0x18]
mov rax, qword [r14]
mov rbx, qword [rax + 0x178]
mov rcx, rbx
call qword [0x1403b8660]
lea r8, [rbp + 0x40]
mov rdx, rsi
mov rcx, r14
call rbx
mov esi, eax
test eax, eax
js 0x14017b644
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rdi, rax
test rax, rax
je 0x14017b9da
mov rdx, qword [rbp + 0x40]
xor r8d, r8d
cmp dword [0x140438e08], 1
mov r9, rax
mov rcx, qword [r13 + 0x18]
cmove r8, qword [0x140438558]
call fcn.14015fd2c
mov esi, eax
test eax, eax
js 0x14017b644
mov rdx, qword [rbp + 0x40]
xor r8d, r8d
cmp dword [0x140438e08], 1
mov r9, r15
mov rcx, qword [r13 + 0x18]
cmove r8, qword [0x140438560]
call fcn.14017d084
mov esi, eax
test eax, eax
js 0x14017b644
mov rbx, qword [rbp - 0x40]
mov rax, qword [rbx]
mov rsi, qword [rax + 0xa8]
mov rcx, rsi
call qword [0x1403b8660]
mov rdx, qword [rbp + 0x40]
xor r8d, r8d
mov rcx, rbx
call rsi
jmp 0x14017b8b3
cmp r12d, 8
je 0x14017b983
xor ecx, ecx
cmp dword [0x140438e08], 1
cmove rcx, qword [0x1404384c8]
mov r8, qword [rbp - 0x40]
mov rdx, qword [r13 + 0x18]
call fcn.14017ce10
mov esi, eax
test eax, eax
js 0x14017b644
mov rdx, qword [rbp + 0x60]
mov rcx, qword [rbp - 0x40]
call fcn.140077a84
mov ecx, esi
call fcn.14007ab44
test rdi, rdi
je 0x14017b8df
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rax, qword [rbp - 0x38]
test rax, rax
je 0x14017b907
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.14007ab44
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, [0x14001cb78]
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.14007ab44
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x30]
call fcn.14017c364
mov esi, eax
test eax, eax
js 0x14017b644
xor esi, esi
cmp dword [0x140438e08], 1
cmove rsi, qword [0x1404384e0]
jmp 0x14017b7cb
mov ecx, 0x8007000e
mov esi, ecx
jmp 0x14017b646
lea rcx, [0x140438c80]
call fcn.14036ea0c
cmp dword [0x140438c80], esi
jne 0x14017b58e
lea rax, str.__USERSEP_RESERVED____GLOBAL_CREATION_TIME__
mov dword [0x140438c98], r15d
mov qword [0x140438c90], rax
lea rcx, [0x140438c80]
lea rax, str.__USERSEP_RESERVED____GLOBAL_UP_TIME__
mov dword [0x140438ca8], ebx
mov qword [0x140438ca0], rax
lea rax, str.__USERSEP_RESERVED____UP_TIME_DELTA__
mov qword [0x140438cb0], rax
lea rax, str.__USERSEP_RESERVED____GLOBAL_TICKCOUNT_UPTIME__
mov qword [0x140438cc0], rax
lea rax, str.__USERSEP_RESERVED____GLOBAL_TIMERQUEUETIMER_UPTIME__
mov qword [0x140438cd0], rax
lea rax, str.__USERSEP_RESERVED____GLOBAL_BREADCRUMB__
mov qword [0x140438ce0], rax
mov dword [0x140438cb8], 2
mov dword [0x140438cc8], ebx
mov dword [0x140438cd8], ebx
mov dword [0x140438ce8], 3
call fcn.14036e99c
jmp 0x14017b58e