Function at 0x14018592c
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 edi, edi
and qword [rbp - 0x40], 0
or r12d, 0xffffffff
mov r13, r8
mov qword [rbp - 0x38], rdi
mov r14, rcx
mov dword [rbp + 0x58], r12d
mov r8, qword [rax]
xor ebx, ebx
mov ecx, 4
xor esi, esi
mov r15d, r9d
mov eax, dword [rcx + r8]
cmp dword [0x140452aa0], eax
jg 0x140185e95
mov rax, qword [r14 + 0x18]
mov qword [rbp - 0x28], rax
mov rax, qword [rax]
mov r14, qword [rax + 0x178]
mov rax, qword [0x1403cf6d0]
mov rcx, r14
cmp r15d, 8
je 0x1401859eb
xor r15d, r15d
cmp dword [0x140452c58], 1
cmove r15, qword [0x140452358]
call rax
mov rcx, qword [rbp - 0x28]
lea r8, [rbp - 0x40]
mov rax, r14
mov rdx, r15
call rax
mov r14d, eax
test eax, eax
jns 0x140185df2
mov ecx, eax
call fcn.140082a8c
jmp 0x140185dff
xor r15d, r15d
cmp dword [0x140452c58], 1
cmove r15, qword [0x1404522f8]
call rax
mov rcx, qword [rbp - 0x28]
lea r8, [rbp - 0x40]
mov rax, r14
mov rdx, r15
call rax
mov r14d, eax
test eax, eax
js 0x1401859df
xor r15d, r15d
lea rdx, [0x140452aa8]
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 0x140185a84
test rax, rax
lea rdx, [0x1403da578]
lea rcx, [0x1403da578]
cmovne rdx, rax
test r8, r8
cmovne rcx, r8
call qword [sym.imp.msvcrt.dll__wcsicmp]
lea rdx, [0x140452aa8]
test eax, eax
je 0x140185a80
inc r15d
cmp r15d, 3
jne 0x140185a20
mov r15d, 0x80070490
mov ecx, r15d
call fcn.140082a8c
jmp 0x140185a91
mov rcx, qword [rbp - 0x28]
add rcx, rcx
xor r15d, r15d
mov eax, dword [rdx + rcx*8 + 8]
mov dword [rbp + 0x58], eax
mov ecx, r15d
call fcn.140082b34
test r15d, r15d
js 0x140185aa8
mov eax, dword [rbp + 0x58]
mov r12d, eax
test al, 1
je 0x140185b12
cmp byte [r13], bl
lea rax, [0x1403e2c6c]
lea rcx, [0x1403ec05c]
cmovne rcx, rax
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov r15, rax
test rax, rax
je 0x140185ad4
mov rsi, rax
test rax, rax
jne 0x140185ae1
mov ecx, 0x8007000e
mov r14d, ecx
jmp 0x1401859e1
mov rcx, qword [rbp + 0x40]
xor r8d, r8d
cmp dword [0x140452c58], 1
mov r9, r15
mov rdx, qword [rbp - 0x40]
cmove r8, qword [0x140452418]
mov rcx, qword [rcx + 0x18]
call fcn.140169600
mov r14d, eax
test eax, eax
js 0x1401859df
mov r15, qword [rbp + 0x40]
test r12b, 2
je 0x140185b4a
mov r9d, dword [r13]
xor r8d, r8d
cmp dword [0x140452c58], 1
mov rdx, qword [rbp - 0x40]
cmove r8, qword [0x140452420]
mov rcx, qword [r15 + 0x18]
call fcn.140187418
mov r14d, eax
test eax, eax
js 0x1401859df
test r12b, 4
je 0x140185c20
mov r9, qword [r13]
xor r8d, r8d
cmp dword [0x140452c58], 1
mov rdx, qword [rbp - 0x40]
cmove r8, qword [0x140452428]
mov rcx, qword [r15 + 0x18]
call fcn.140187264
mov r14d, eax
test eax, eax
js 0x1401859df
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.140082b34
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x30]
call fcn.1401880cc
mov r14d, eax
test eax, eax
jns 0x140185bca
mov ecx, eax
call fcn.140082a8c
mov rdi, qword [rbp - 0x38]
jmp 0x140185dff
mov rdi, qword [rbp - 0x38]
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov r15, rax
test rax, rax
je 0x140185ad4
mov rbx, rax
test rax, rax
je 0x140185ad4
mov rcx, qword [rbp + 0x40]
xor r8d, r8d
cmp dword [0x140452c58], 1
mov r9, rax
mov rdx, qword [rbp - 0x40]
cmove r8, qword [0x140452430]
mov rcx, qword [rcx + 0x18]
call fcn.140169600
mov r14d, eax
test eax, eax
js 0x1401859df
test r12b, 8
je 0x140185d01
mov rax, qword [rbp + 0x40]
xor r8d, r8d
cmp dword [0x140452c58], 1
mov r9, qword [r13]
cmove r8, qword [0x140452438]
mov rcx, qword [rax + 0x18]
mov rdx, qword [rbp - 0x40]
call fcn.140187264
mov r14d, eax
test eax, eax
js 0x1401859df
test rdi, rdi
je 0x140185c82
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rdi - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.140082b34
and qword [rbp - 0x38], 0
mov rcx, qword [r13]
lea rdx, [rbp - 0x38]
call fcn.140187e8c
mov r14d, eax
test eax, eax
js 0x140185bba
mov rdi, qword [rbp - 0x38]
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov r15, rax
test rbx, rbx
je 0x140185cb8
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test r15, r15
jne 0x140185cc4
xor ebx, ebx
jmp 0x140185ad4
mov rbx, r15
test r15, r15
je 0x140185ad4
mov rax, qword [rbp + 0x40]
xor r8d, r8d
cmp dword [0x140452c58], 1
mov r9, r15
mov rdx, qword [rbp - 0x40]
cmove r8, qword [0x140452440]
mov rcx, qword [rax + 0x18]
call fcn.140169600
mov r14d, eax
test eax, eax
js 0x1401859df
test r12b, 0x10
je 0x140185df2
mov r12, qword [rbp + 0x40]
xor r8d, r8d
cmp dword [0x140452c58], 1
mov r9, qword [r13]
cmove r8, qword [0x140452448]
mov rcx, qword [r12 + 0x18]
mov rdx, qword [rbp - 0x40]
call fcn.140187264
mov r14d, eax
test eax, eax
js 0x1401859df
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.140082b34
test rdi, rdi
je 0x140185d88
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rdi - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.140082b34
and qword [rbp - 0x38], 0
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x30]
call fcn.1401880cc
mov r14d, eax
test eax, eax
js 0x140185bba
mov rdi, qword [rbp - 0x38]
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov r15, rax
test rbx, rbx
je 0x140185dbe
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test r15, r15
je 0x140185cbd
mov rdx, qword [rbp - 0x40]
xor r8d, r8d
cmp dword [0x140452c58], 1
mov r9, r15
mov rcx, qword [r12 + 0x18]
mov rbx, r15
cmove r8, qword [0x140452450]
call fcn.140169600
jmp 0x1401859d4
mov rdx, qword [rbp + 0x60]
mov rcx, qword [rbp - 0x40]
call fcn.14016f740
mov ecx, r14d
call fcn.140082b34
test rsi, rsi
je 0x140185e15
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test rbx, rbx
je 0x140185e23
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test rdi, rdi
je 0x140185e44
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rdi - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.140082b34
and qword [rbp - 0x10], 0
lea rax, [0x140028cdc]
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, [0x140452aa0]
call fcn.140389a9c
cmp dword [0x140452aa0], r12d
jne 0x14018598e
mov ecx, 1
mov dword [0x140452ab0], 2
lea rax, str.__USERSEP_RESERVED____REARM_COUNT__
mov dword [0x140452ac0], ecx
mov qword [0x140452aa8], rax
lea rax, str.__USERSEP_RESERVED____RECREATED_FLAG__
mov qword [0x140452ab8], rax
lea rax, str.__USERSEP_RESERVED____RECOVERED_FLAG__
mov dword [0x140452ad0], ecx
lea rcx, [0x140452aa0]
mov qword [0x140452ac8], rax
call fcn.140389a2c
jmp 0x14018598e