Function at 0x1401854c4
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], r9
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [rcx + 0x18]
xor r14d, r14d
and qword [rbp - 0x50], 0
xor r13d, r13d
mov qword [rbp - 0x40], rax
xor r15d, r15d
xor ebx, ebx
mov qword [rbp - 0x48], r14
mov rax, qword [rax]
xor edi, edi
xor esi, esi
mov qword [rbp - 0x38], r13
mov qword [rbp - 0x30], r15
mov r12, qword [rax + 0x178]
xor eax, eax
mov rcx, r12
cmp r8d, 0x20
je 0x14018556a
cmp dword [0x140452c58], 1
cmove rax, qword [0x140452360]
mov qword [rbp - 0x28], rax
mov rax, qword [0x1403cf6d0]
call rax
mov rdx, qword [rbp - 0x28]
lea r8, [rbp - 0x50]
mov rcx, qword [rbp - 0x40]
mov rax, r12
call rax
mov r12d, eax
test eax, eax
jns 0x140185832
mov ecx, eax
call fcn.140082a8c
jmp 0x14018583f
cmp dword [0x140452c58], 1
cmove rax, qword [0x140452300]
mov qword [rbp - 0x28], rax
mov rax, qword [0x1403cf6d0]
call rax
mov rdx, qword [rbp - 0x28]
lea r8, [rbp - 0x50]
mov rcx, qword [rbp - 0x40]
mov rax, r12
call rax
mov r12d, eax
test eax, eax
js 0x14018555e
mov rax, qword [rbp + 0x48]
xor r8d, r8d
cmp dword [0x140452c58], 1
mov rcx, qword [rbp + 0x40]
cmove r8, qword [0x140452458]
mov r9d, dword [rax]
mov rdx, qword [rbp - 0x50]
mov rcx, qword [rcx + 0x18]
call fcn.140187418
mov r12d, eax
test eax, eax
js 0x14018555e
mov rax, qword [rbp + 0x48]
xor r8d, r8d
cmp dword [0x140452c58], 1
mov rdx, qword [rbp - 0x50]
cmove r8, qword [0x140452460]
mov r9, qword [rax + 0x10]
mov rax, qword [rbp + 0x40]
mov rcx, qword [rax + 0x18]
call fcn.140187264
mov r12d, eax
test eax, eax
js 0x14018555e
mov rax, qword [rbp + 0x48]
imul rax, qword [rax + 0x10], 0x2710
mov rcx, rax
mov dword [rbp - 0x40], eax
shr rcx, 0x20
mov dword [rbp - 0x3c], ecx
mov rax, qword [rbp - 0x40]
mov qword [rbp - 0x40], rax
xor ecx, ecx
call fcn.140082b34
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x40]
call fcn.1401880cc
mov r12d, eax
test eax, eax
jns 0x140185651
mov ecx, eax
call fcn.140082a8c
mov r14, qword [rbp - 0x48]
jmp 0x14018583f
mov r14, qword [rbp - 0x48]
mov rcx, r14
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
test rax, rax
je 0x14018571d
mov rdx, qword [rbp - 0x50]
xor r8d, r8d
cmp dword [0x140452c58], 1
mov rbx, rax
mov r9, rax
mov rax, qword [rbp + 0x40]
cmove r8, qword [0x140452468]
mov rcx, qword [rax + 0x18]
call fcn.140169600
mov r12d, eax
test eax, eax
js 0x14018555e
mov rax, qword [rbp + 0x48]
xor r8d, r8d
cmp dword [0x140452c58], 1
mov rdx, qword [rbp - 0x50]
cmove r8, qword [0x140452470]
mov r9, qword [rax + 8]
mov rax, qword [rbp + 0x40]
mov rcx, qword [rax + 0x18]
call fcn.140187264
mov r12d, eax
test eax, eax
js 0x14018555e
mov rax, qword [rbp + 0x48]
imul rax, qword [rax + 8], 0x2710
mov rcx, rax
mov dword [rbp - 0x40], eax
shr rcx, 0x20
mov dword [rbp - 0x3c], ecx
mov rax, qword [rbp - 0x40]
mov qword [rbp - 0x40], rax
xor ecx, ecx
call fcn.140082b34
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x40]
call fcn.1401880cc
mov r12d, eax
test eax, eax
jns 0x14018572a
mov ecx, eax
call fcn.140082a8c
mov r13, qword [rbp - 0x38]
jmp 0x14018583f
mov ecx, 0x8007000e
mov r12d, ecx
jmp 0x140185560
mov r13, qword [rbp - 0x38]
mov rcx, r13
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbp - 0x48], rax
test rax, rax
je 0x14018571d
mov rdx, qword [rbp - 0x50]
xor r8d, r8d
cmp dword [0x140452c58], 1
mov rdi, rax
mov r9, rax
mov rax, qword [rbp + 0x40]
cmove r8, qword [0x140452478]
mov rcx, qword [rax + 0x18]
call fcn.140169600
mov r12d, eax
test eax, eax
js 0x14018555e
mov rax, qword [rbp + 0x40]
xor r8d, r8d
cmp dword [0x140452c58], 1
mov rdi, qword [rbp + 0x48]
cmove r8, qword [0x140452480]
mov rcx, qword [rax + 0x18]
mov rdx, qword [rbp - 0x50]
mov r9, qword [rdi + 0x18]
call fcn.140187264
mov r12d, eax
test eax, eax
jns 0x1401857b6
mov ecx, eax
call fcn.140082a8c
mov rdi, qword [rbp - 0x48]
jmp 0x14018583f
mov rcx, qword [rdi + 0x18]
lea rdx, [rbp - 0x30]
call fcn.140187e8c
mov r12d, eax
test eax, eax
jns 0x1401857db
mov ecx, eax
call fcn.140082a8c
mov rdi, qword [rbp - 0x48]
mov r15, qword [rbp - 0x30]
jmp 0x14018583f
mov r15, qword [rbp - 0x30]
mov rcx, r15
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
test rax, rax
je 0x140185825
mov rdx, qword [rbp - 0x50]
xor r8d, r8d
cmp dword [0x140452c58], 1
mov rsi, rax
mov r9, rax
mov rax, qword [rbp + 0x40]
cmove r8, qword [0x140452488]
mov rcx, qword [rax + 0x18]
call fcn.140169600
mov rdx, qword [rbp - 0x48]
mov r8, rsi
mov rdi, rdx
jmp 0x140185553
mov ecx, 0x8007000e
mov r12d, ecx
jmp 0x1401857a8
mov rdx, qword [rbp + 0x58]
mov rcx, qword [rbp - 0x50]
call fcn.14016f740
mov ecx, r12d
call fcn.140082b34
test rsi, rsi
je 0x140185855
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test r15, r15
je 0x140185876
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [r15 - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.140082b34
test rdi, rdi
je 0x140185884
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test r13, r13
je 0x1401858a5
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [r13 - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.140082b34
test rbx, rbx
je 0x1401858b3
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test r14, r14
je 0x1401858d4
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [r14 - 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 - 0x50]
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 + 0xc0]
mov eax, r12d
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret