Function at 0x140184fc0
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rbx
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x57]
sub rsp, 0x90
and qword [rbp - 0x29], 0
lea rdx, [rbp - 0x11]
mov r13, r8
mov r15, rcx
xor ebx, ebx
lea r8, [rbp - 0x31]
and qword [rbp - 0x11], rbx
xor edi, edi
mov rcx, r13
mov qword [rbp - 0x21], rbx
mov qword [rbp - 0x19], rdi
call fcn.14018a494
lea r12, [0x140028cdc]
mov r14d, eax
test eax, eax
jns 0x14018502a
mov ecx, eax
call fcn.140082a8c
jmp 0x14018527c
mov edx, dword [rbp - 0x31]
lea r8, [rbp - 0x21]
mov rcx, qword [rbp - 0x11]
call fcn.14008262c
mov r14d, eax
test eax, eax
jns 0x140185051
mov ecx, eax
call fcn.140082a8c
mov rbx, qword [rbp - 0x21]
jmp 0x14018527c
lea r8, [rbp - 0x31]
mov rcx, r13
lea rdx, [rbp - 0x19]
call fcn.14018a610
mov r14d, eax
test eax, eax
jns 0x14018507c
mov ecx, eax
call fcn.140082a8c
mov rbx, qword [rbp - 0x21]
mov rdi, qword [rbp - 0x19]
jmp 0x14018527c
mov eax, dword [r13]
mov r12d, dword [r13 + 4]
mov rbx, qword [rbp - 0x21]
mov rdi, qword [rbp - 0x19]
mov dword [rbp - 9], r12d
mov dword [rbp - 5], eax
test eax, eax
je 0x1401851f2
sub eax, 1
je 0x1401851c0
sub eax, 1
je 0x140185199
sub eax, 1
je 0x14018516b
cmp eax, 1
jne 0x140185217
mov r12, qword [r15 + 0x18]
xor r15d, r15d
and qword [rbp - 0x31], 0
cmp dword [0x140452c58], 1
mov rax, qword [r12]
cmove r15, qword [0x140452308]
mov r14, qword [rax + 0x178]
mov rax, qword [0x1403cf6d0]
mov rcx, r14
call rax
mov rax, r14
lea r8, [rbp - 0x31]
mov rdx, r15
mov rcx, r12
call rax
mov r14d, eax
test eax, eax
jns 0x140185110
mov ecx, eax
call fcn.140082a8c
jmp 0x14018511d
mov rcx, qword [rbp - 0x31]
lea rdx, [rbp - 0x29]
call fcn.14016f740
mov ecx, r14d
call fcn.140082b34
and qword [rbp + 0xf], 0
lea rax, [rbp - 0x31]
xor r9d, r9d
mov qword [rbp - 1], 3
lea r12, [0x140028cdc]
mov qword [rbp + 0x17], rax
lea rdx, [rbp - 1]
mov qword [rbp + 7], r12
mov ecx, 0xb9
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
test r14d, r14d
jns 0x14018520f
mov ecx, r14d
jmp 0x14018506a
mov r8d, dword [rbp - 0x31]
lea r9, [rbp - 0x29]
mov rdx, rdi
mov rcx, r15
call fcn.1401854c4
mov r14d, eax
test eax, eax
jns 0x140185217
mov ecx, eax
call fcn.140082a8c
mov rbx, qword [rbp - 0x21]
jmp 0x140185275
mov r9d, dword [rbp - 0x31]
lea rax, [rbp - 0x29]
mov r8, rdi
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, r15
call fcn.14018592c
mov r14d, eax
test eax, eax
jns 0x140185217
jmp 0x14018526e
mov rax, qword [rbp + 0x7f]
mov r9, rdi
mov rdx, qword [rbp + 0x67]
mov r8, rbx
mov qword [rsp + 0x38], rax
mov rcx, r15
lea rax, [rbp - 0x29]
mov qword [rsp + 0x30], rax
mov eax, dword [rbp - 0x31]
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], eax
call fcn.140185f0c
jmp 0x1401851b4
mov r9d, dword [rbp - 0x31]
lea rax, [rbp - 0x29]
mov r8, rdi
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, r15
call fcn.140186710
jmp 0x1401851b4
mov r15, qword [rbp + 0x5f]
mov r12d, dword [rbp - 9]
mov rax, qword [rbp - 0x29]
mov r8, rbx
mov r9d, dword [rbp - 5]
mov rdx, r13
mov qword [rsp + 0x28], rax
mov rcx, r15
mov dword [rsp + 0x20], r12d
call fcn.140186d64
mov r14d, eax
test eax, eax
js 0x14018526e
mov r15, qword [rbp + 0x77]
mov rax, qword [r15]
mov r14, qword [rax + 0xa8]
mov rax, qword [0x1403cf6d0]
mov rcx, r14
call rax
mov rdx, qword [rbp - 0x29]
mov rax, r14
xor r8d, r8d
mov rcx, r15
call rax
mov r14d, eax
test eax, eax
jns 0x140185275
mov ecx, eax
call fcn.140082a8c
lea r12, [0x140028cdc]
mov ecx, r14d
call fcn.140082b34
test rdi, rdi
je 0x14018529d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rbp - 0x11], 0
je 0x1401852b9
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbp - 0x11]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rbx, rbx
je 0x1401852da
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rbx - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.140082b34
and qword [rbp + 0xf], 0
lea rax, [rbp - 0x29]
xor r9d, r9d
mov qword [rbp - 1], 3
lea rdx, [rbp - 1]
mov qword [rbp + 7], r12
mov ecx, 0xb9
mov qword [rbp + 0x17], rax
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
mov eax, r14d
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret