Function at 0x140186710
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 [0x140452ad8], eax
jg 0x140186cb3
mov ebx, r15d
lea rcx, [0x140452ae0]
mov eax, ebx
add rax, rax
mov esi, ebx
mov r8, qword [rcx + rax*8]
cmp r8, r14
je 0x1401867ce
test r14, r14
lea rdx, [0x1403da578]
lea rcx, [0x1403da578]
cmovne rdx, r14
test r8, r8
cmovne rcx, r8
call qword [sym.imp.msvcrt.dll__wcsicmp]
lea rcx, [0x140452ae0]
test eax, eax
je 0x1401867ce
inc ebx
cmp ebx, 6
jne 0x140186778
mov ebx, 0x80070490
mov ecx, ebx
call fcn.140082a8c
mov r15d, dword [rbp + 0x40]
jmp 0x1401867d8
add rsi, rsi
xor ebx, ebx
mov r15d, dword [rcx + rsi*8 + 8]
mov ecx, ebx
call fcn.140082b34
mov r14, qword [r13 + 0x18]
test ebx, ebx
mov eax, 0xffffffff
cmovs r15d, eax
xor esi, esi
cmp dword [0x140452c58], 1
mov rax, qword [r14]
cmove rsi, qword [0x1404522e8]
mov rbx, qword [rax + 0x178]
mov rax, qword [0x1403cf6d0]
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 0x140186836
mov ecx, eax
call fcn.140082a8c
jmp 0x140186ac5
test r15d, r15d
je 0x140186a86
sub r15d, 1
je 0x14018696d
sub r15d, 1
je 0x140186887
mov r8, qword [rbp - 0x40]
xor ecx, ecx
mov rdx, qword [r13 + 0x18]
cmp r15d, 1
je 0x140186873
cmp dword [0x140452c58], 1
cmove rcx, qword [0x140452310]
jmp 0x140186aa9
cmp dword [0x140452c58], 1
cmove rcx, qword [0x140452348]
jmp 0x140186aa9
cmp r12d, 8
je 0x1401868a3
xor ecx, ecx
cmp dword [0x140452c58], 1
cmove rcx, qword [0x140452328]
jmp 0x140186aa1
mov rax, qword [rbp + 0x50]
lea rdx, [rbp - 0x38]
mov r15, qword [rax]
mov rcx, r15
call fcn.140187d98
mov esi, eax
test eax, eax
js 0x14018682a
mov r14, qword [r13 + 0x18]
xor esi, esi
cmp dword [0x140452c58], 1
cmove rsi, qword [0x140452340]
mov rax, qword [r14]
mov rbx, qword [rax + 0x178]
mov rax, qword [0x1403cf6d0]
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 0x14018682a
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rdi, rax
test rax, rax
je 0x1401869fc
mov rdx, qword [rbp + 0x40]
xor r8d, r8d
cmp dword [0x140452c58], 1
mov r9, rax
mov rcx, qword [r13 + 0x18]
cmove r8, qword [0x1404523a8]
call fcn.140169600
mov esi, eax
test eax, eax
js 0x14018682a
mov rdx, qword [rbp + 0x40]
xor r8d, r8d
cmp dword [0x140452c58], 1
mov r9, r15
mov rcx, qword [r13 + 0x18]
cmove r8, qword [0x1404523b0]
call fcn.1401870b0
jmp 0x140186a51
cmp r12d, 8
je 0x140186989
xor ecx, ecx
cmp dword [0x140452c58], 1
cmove rcx, qword [0x140452320]
jmp 0x140186aa1
mov rax, qword [rbp + 0x50]
lea rdx, [rbp - 0x38]
mov r15, qword [rax]
mov rcx, r15
call fcn.140187e8c
mov esi, eax
test eax, eax
js 0x14018682a
mov r14, qword [r13 + 0x18]
xor esi, esi
cmp dword [0x140452c58], 1
cmove rsi, qword [0x140452338]
mov rax, qword [r14]
mov rbx, qword [rax + 0x178]
mov rax, qword [0x1403cf6d0]
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 0x14018682a
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rdi, rax
test rax, rax
jne 0x140186a03
xor edi, edi
jmp 0x140186c1e
mov rdx, qword [rbp + 0x40]
xor r8d, r8d
cmp dword [0x140452c58], 1
mov r9, rax
mov rcx, qword [r13 + 0x18]
cmove r8, qword [0x1404523a8]
call fcn.140169600
mov esi, eax
test eax, eax
js 0x14018682a
mov rdx, qword [rbp + 0x40]
xor r8d, r8d
cmp dword [0x140452c58], 1
mov r9, r15
mov rcx, qword [r13 + 0x18]
cmove r8, qword [0x1404523b0]
call fcn.140187264
mov esi, eax
test eax, eax
js 0x14018682a
mov rbx, qword [rbp - 0x40]
mov rax, qword [rbx]
mov rsi, qword [rax + 0xa8]
mov rax, qword [0x1403cf6d0]
mov rcx, rsi
call rax
mov rdx, qword [rbp + 0x40]
mov rax, rsi
xor r8d, r8d
mov rcx, rbx
call rax
jmp 0x140186aae
cmp r12d, 8
je 0x140186b7f
xor ecx, ecx
cmp dword [0x140452c58], 1
cmove rcx, qword [0x140452318]
mov r8, qword [rbp - 0x40]
mov rdx, qword [r13 + 0x18]
call fcn.140188c18
mov esi, eax
test eax, eax
js 0x14018682a
mov rdx, qword [rbp + 0x60]
mov rcx, qword [rbp - 0x40]
call fcn.14016f740
mov ecx, esi
call fcn.140082b34
test rdi, rdi
je 0x140186ada
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rax, qword [rbp - 0x38]
test rax, rax
je 0x140186b02
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.140082b34
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, [0x140028cdc]
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.140082b34
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x30]
call fcn.1401880cc
mov esi, eax
test eax, eax
js 0x14018682a
mov r14, qword [r13 + 0x18]
xor esi, esi
cmp dword [0x140452c58], 1
cmove rsi, qword [0x140452330]
mov rax, qword [r14]
mov rbx, qword [rax + 0x178]
mov rax, qword [0x1403cf6d0]
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 0x14018682a
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov r14, rax
test rax, rax
je 0x140186c1e
mov rdi, rax
test rax, rax
jne 0x140186c2a
mov ecx, 0x8007000e
mov esi, ecx
jmp 0x14018682c
mov rdx, qword [rbp + 0x40]
xor r8d, r8d
cmp dword [0x140452c58], 1
mov r9, r14
mov rcx, qword [r13 + 0x18]
cmove r8, qword [0x1404523a8]
call fcn.140169600
mov esi, eax
test eax, eax
js 0x14018682a
mov rdx, qword [rbp + 0x40]
xor r8d, r8d
cmp dword [0x140452c58], 1
mov r9, r15
mov rcx, qword [r13 + 0x18]
cmove r8, qword [0x1404523b0]
call fcn.140187264
mov esi, eax
test eax, eax
js 0x14018682a
mov rbx, qword [rbp - 0x40]
mov rax, qword [rbx]
mov rdi, qword [rax + 0xa8]
mov rax, qword [0x1403cf6d0]
mov rcx, rdi
call rax
mov rdx, qword [rbp + 0x40]
mov rax, rdi
xor r8d, r8d
mov rcx, rbx
call rax
mov rdi, r14
jmp 0x140186aae
lea rcx, [0x140452ad8]
call fcn.140389a9c
cmp dword [0x140452ad8], esi
jne 0x14018676e
lea rax, str.__USERSEP_RESERVED____GLOBAL_CREATION_TIME__
mov dword [0x140452ae8], r15d
mov qword [0x140452ae0], rax
lea rcx, [0x140452ad8]
lea rax, str.__USERSEP_RESERVED____GLOBAL_UP_TIME__
mov dword [0x140452af8], ebx
mov qword [0x140452af0], rax
lea rax, str.__USERSEP_RESERVED____UP_TIME_DELTA__
mov qword [0x140452b00], rax
lea rax, str.__USERSEP_RESERVED____GLOBAL_TICKCOUNT_UPTIME__
mov qword [0x140452b10], rax
lea rax, str.__USERSEP_RESERVED____GLOBAL_TIMERQUEUETIMER_UPTIME__
mov qword [0x140452b20], rax
lea rax, str.__USERSEP_RESERVED____GLOBAL_BREADCRUMB__
mov qword [0x140452b30], rax
mov dword [0x140452b08], 2
mov dword [0x140452b18], ebx
mov dword [0x140452b28], ebx
mov dword [0x140452b38], 3
call fcn.140389a2c
jmp 0x14018676e