Function at 0x140173444
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 [0x140422f78], eax
jg 0x1401738fc
mov ebx, r15d
lea rcx, [0x140422f80]
mov eax, ebx
add rax, rax
mov esi, ebx
mov r8, qword [rcx + rax*8]
cmp r8, r14
je 0x140173502
test r14, r14
lea rdx, [0x1403a8ac8]
lea rcx, [0x1403a8ac8]
cmovne rdx, r14
test r8, r8
cmovne rcx, r8
call qword [sym.imp.msvcrt.dll__wcsicmp]
lea rcx, [0x140422f80]
test eax, eax
je 0x140173502
inc ebx
cmp ebx, 6
jne 0x1401734ac
mov ebx, 0x80070490
mov ecx, ebx
call fcn.140078308
mov r15d, dword [rbp + 0x40]
jmp 0x14017350c
add rsi, rsi
xor ebx, ebx
mov r15d, dword [rcx + rsi*8 + 8]
mov ecx, ebx
call fcn.140078324
mov r14, qword [r13 + 0x18]
test ebx, ebx
mov eax, 0xffffffff
cmovs r15d, eax
xor esi, esi
cmp dword [0x1404230f8], 1
mov rax, qword [r14]
cmove rsi, qword [0x140422798]
mov rbx, qword [rax + 0x178]
mov rcx, rbx
call qword [0x1403a2250]
lea r8, [rbp - 0x40]
mov rdx, rsi
mov rcx, r14
call rbx
mov esi, eax
test eax, eax
jns 0x140173564
mov ecx, eax
call fcn.140078308
jmp 0x1401737de
test r15d, r15d
je 0x14017379f
sub r15d, 1
je 0x140173695
sub r15d, 1
je 0x1401735b5
mov r8, qword [rbp - 0x40]
xor ecx, ecx
mov rdx, qword [r13 + 0x18]
cmp r15d, 1
je 0x1401735a1
cmp dword [0x1404230f8], 1
cmove rcx, qword [0x1404227c0]
jmp 0x1401737c2
cmp dword [0x1404230f8], 1
cmove rcx, qword [0x1404227f8]
jmp 0x1401737c2
cmp r12d, 8
je 0x1401735d1
xor ecx, ecx
cmp dword [0x1404230f8], 1
cmove rcx, qword [0x1404227d8]
jmp 0x1401737ba
mov rax, qword [rbp + 0x50]
lea rdx, [rbp - 0x38]
mov r15, qword [rax]
mov rcx, r15
call fcn.140173f24
mov esi, eax
test eax, eax
js 0x140173558
mov r14, qword [r13 + 0x18]
xor esi, esi
cmp dword [0x1404230f8], 1
cmove rsi, qword [0x1404227f0]
mov rax, qword [r14]
mov rbx, qword [rax + 0x178]
mov rcx, rbx
call qword [0x1403a2250]
lea r8, [rbp + 0x40]
mov rdx, rsi
mov rcx, r14
call rbx
mov esi, eax
test eax, eax
js 0x140173558
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rdi, rax
test rax, rax
je 0x1401738ee
mov rdx, qword [rbp + 0x40]
xor r8d, r8d
cmp dword [0x1404230f8], 1
mov r9, rax
mov rcx, qword [r13 + 0x18]
cmove r8, qword [0x140422858]
call fcn.1401584f8
mov esi, eax
test eax, eax
js 0x140173558
mov rdx, qword [rbp + 0x40]
xor r8d, r8d
cmp dword [0x1404230f8], 1
mov r9, r15
mov rcx, qword [r13 + 0x18]
cmove r8, qword [0x140422860]
call fcn.140174db8
jmp 0x140173770
cmp r12d, 8
je 0x1401736b1
xor ecx, ecx
cmp dword [0x1404230f8], 1
cmove rcx, qword [0x1404227d0]
jmp 0x1401737ba
mov rax, qword [rbp + 0x50]
lea rdx, [rbp - 0x38]
mov r15, qword [rax]
mov rcx, r15
call fcn.140174010
mov esi, eax
test eax, eax
js 0x140173558
xor esi, esi
cmp dword [0x1404230f8], 1
cmove rsi, qword [0x1404227e8]
mov r14, qword [r13 + 0x18]
mov rax, qword [r14]
mov rbx, qword [rax + 0x178]
mov rcx, rbx
call qword [0x1403a2250]
lea r8, [rbp + 0x40]
mov rdx, rsi
mov rcx, r14
call rbx
mov esi, eax
test eax, eax
js 0x140173558
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rdi, rax
test rax, rax
je 0x1401738ee
mov rdx, qword [rbp + 0x40]
xor r8d, r8d
cmp dword [0x1404230f8], 1
mov r9, rax
mov rcx, qword [r13 + 0x18]
cmove r8, qword [0x140422858]
call fcn.1401584f8
mov esi, eax
test eax, eax
js 0x140173558
mov rdx, qword [rbp + 0x40]
xor r8d, r8d
cmp dword [0x1404230f8], 1
mov r9, r15
mov rcx, qword [r13 + 0x18]
cmove r8, qword [0x140422860]
call fcn.140174f50
mov esi, eax
test eax, eax
js 0x140173558
mov rbx, qword [rbp - 0x40]
mov rax, qword [rbx]
mov rsi, qword [rax + 0xa8]
mov rcx, rsi
call qword [0x1403a2250]
mov rdx, qword [rbp + 0x40]
xor r8d, r8d
mov rcx, rbx
call rsi
jmp 0x1401737c7
cmp r12d, 8
je 0x140173897
xor ecx, ecx
cmp dword [0x1404230f8], 1
cmove rcx, qword [0x1404227c8]
mov r8, qword [rbp - 0x40]
mov rdx, qword [r13 + 0x18]
call fcn.140174ce8
mov esi, eax
test eax, eax
js 0x140173558
mov rdx, qword [rbp + 0x60]
mov rcx, qword [rbp - 0x40]
call fcn.1400753a4
mov ecx, esi
call fcn.140078324
test rdi, rdi
je 0x1401737f3
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rax, qword [rbp - 0x38]
test rax, rax
je 0x14017381b
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.140078324
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, [0x140033aa0]
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.140078324
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x30]
call fcn.140174248
mov esi, eax
test eax, eax
js 0x140173558
xor esi, esi
cmp dword [0x1404230f8], 1
cmove rsi, qword [0x1404227e0]
jmp 0x1401736df
mov ecx, 0x8007000e
xor edi, edi
mov esi, ecx
jmp 0x14017355a
lea rcx, [0x140422f78]
call fcn.14035aa48
cmp dword [0x140422f78], esi
jne 0x1401734a2
lea rax, str.__USERSEP_RESERVED____GLOBAL_CREATION_TIME__
mov dword [0x140422f88], r15d
mov qword [0x140422f80], rax
lea rcx, [0x140422f78]
lea rax, str.__USERSEP_RESERVED____GLOBAL_UP_TIME__
mov dword [0x140422f98], ebx
mov qword [0x140422f90], rax
lea rax, str.__USERSEP_RESERVED____UP_TIME_DELTA__
mov qword [0x140422fa0], rax
lea rax, str.__USERSEP_RESERVED____GLOBAL_TICKCOUNT_UPTIME__
mov qword [0x140422fb0], rax
lea rax, str.__USERSEP_RESERVED____GLOBAL_TIMERQUEUETIMER_UPTIME__
mov qword [0x140422fc0], rax
lea rax, str.__USERSEP_RESERVED____GLOBAL_BREADCRUMB__
mov qword [0x140422fd0], rax
mov dword [0x140422fa8], 2
mov dword [0x140422fb8], ebx
mov dword [0x140422fc8], ebx
mov dword [0x140422fd8], 3
call fcn.14035a9e8
jmp 0x1401734a2