Function at 0x1401780b8
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
xor r12d, r12d
lea rcx, [rbp - 0x38]
cmp dword [0x140440928], 1
mov rbx, r8
mov r14, rdx
mov qword [rbp - 0x60], r12
mov r8d, r12d
mov qword [rbp - 0x58], r12
cmove r8, qword [0x14043ffb0]
lea rdx, [0x1403dbba0]
mov esi, r12d
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x40], r12
mov edi, r12d
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x50], r12
call fcn.140069888
mov r15d, eax
test eax, eax
jns 0x14017813c
mov ecx, eax
call fcn.140079c40
jmp 0x140178398
mov edx, 0x5c
lea r8, [rbp - 0x48]
mov rcx, rbx
call fcn.140069684
mov r15d, eax
test eax, eax
js 0x140178130
lea rdx, [rbp - 0x58]
mov rcx, r14
call fcn.140076ce8
mov r13d, r12d
cmp dword [rbp - 0x44], r12d
jle 0x14017838b
mov rax, qword [rbp - 0x40]
lea rdx, str.__s__name_s_
xor r8d, r8d
lea rcx, [rbp - 0x38]
cmp dword [0x140440928], 1
cmove r8, qword [0x14043ffb8]
mov r9, qword [rax + r12]
call fcn.140069888
mov r15d, eax
test eax, eax
js 0x140178130
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
test rdi, rdi
je 0x1401781b9
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rdi, rbx
test rbx, rbx
je 0x1401784b3
mov rbx, qword [rbp - 0x60]
test rbx, rbx
je 0x1401781ee
mov rax, qword [rbx]
mov r14, qword [rax + 0x10]
mov rax, qword [0x1403c1610]
mov rcx, r14
call rax
mov rax, r14
mov rcx, rbx
call rax
and qword [rbp - 0x60], 0
mov rbx, qword [rbp - 0x50]
test rbx, rbx
je 0x140178217
mov rax, qword [rbx]
mov r14, qword [rax + 0x10]
mov rax, qword [0x1403c1610]
mov rcx, r14
call rax
mov rax, r14
mov rcx, rbx
call rax
and qword [rbp - 0x50], 0
mov r15, qword [rbp + 0x40]
mov r14, qword [r15 + 0x18]
mov rax, qword [r14]
mov rbx, qword [rax + 0x128]
mov rax, qword [0x1403c1610]
mov rcx, rbx
call rax
mov rax, rbx
lea r8, [rbp - 0x50]
mov rdx, rdi
mov rcx, r14
call rax
test eax, eax
jne 0x14017826e
mov rbx, qword [rbp - 0x50]
mov rax, qword [rbx]
mov r14, qword [rax]
mov rax, qword [0x1403c1610]
mov rcx, r14
call rax
lea r8, [rbp - 0x60]
lea rdx, [0x1403dc338]
jmp 0x140178331
mov r15, qword [r15 + 0x18]
xor r14d, r14d
cmp dword [0x140440928], 1
cmove r14, qword [0x14043ffb8]
mov rax, qword [r15]
mov rbx, qword [rax + 0x178]
mov rax, qword [0x1403c1610]
mov rcx, rbx
call rax
mov rax, rbx
lea r8, [rbp - 0x60]
mov rdx, r14
mov rcx, r15
call rax
mov r15d, eax
test eax, eax
js 0x140178130
mov rax, qword [rbp - 0x40]
mov rcx, qword [rax + r12]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
test rsi, rsi
je 0x1401782d3
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rsi, rbx
test rbx, rbx
je 0x1401784b3
mov rcx, qword [rbp + 0x40]
xor r8d, r8d
cmp dword [0x140440928], 1
mov r9, rbx
mov rdx, qword [rbp - 0x60]
cmove r8, qword [0x140440060]
mov rcx, qword [rcx + 0x18]
call fcn.14015f424
mov r15d, eax
test eax, eax
js 0x140178130
mov rbx, qword [rbp - 0x58]
mov rax, qword [rbx]
mov r14, qword [rax + 0xa8]
mov rax, qword [0x1403c1610]
mov rcx, r14
call rax
mov rdx, qword [rbp - 0x60]
xor r8d, r8d
mov rcx, rbx
mov rax, r14
call rax
mov r15d, eax
test eax, eax
js 0x140178130
mov rbx, qword [rbp - 0x58]
test rbx, rbx
je 0x14017836d
mov rax, qword [rbx]
mov r14, qword [rax + 0x10]
mov rax, qword [0x1403c1610]
mov rcx, r14
call rax
mov rax, r14
mov rcx, rbx
call rax
and qword [rbp - 0x58], 0
mov rcx, qword [rbp - 0x60]
lea rdx, [rbp - 0x58]
call fcn.140076ce8
inc r13d
add r12, 8
cmp r13d, dword [rbp - 0x44]
jl 0x14017816d
mov rdx, qword [rbp + 0x58]
mov rcx, qword [rbp - 0x60]
call fcn.140076ce8
mov ecx, r15d
call fcn.140079c60
and qword [rbp - 0x18], 0
lea rax, [0x140026b58]
mov r14d, 3
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x50]
mov qword [rbp - 0x28], r14
mov r13d, 0xb9
mov qword [rbp - 0x10], rax
xor r9d, r9d
lea rdx, [rbp - 0x28]
lea r12d, [r14 + 0x1d]
mov ecx, r13d
mov r8d, r12d
call sub.ntdll.dll_NtQuerySystemInformation
mov rbx, qword [rbp - 0x38]
test rbx, rbx
je 0x1401783fb
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rdi, rdi
je 0x140178409
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
xor edx, edx
lea rcx, [rbp - 0x48]
call fcn.1400795ac
mov rbx, qword [rbp - 0x40]
test rbx, rbx
je 0x140178431
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
and qword [rbp - 0x18], 0
lea rax, [rbp - 0x58]
lea rbx, [0x14001ab98]
mov qword [rbp - 0x10], rax
xor r9d, r9d
mov qword [rbp - 0x20], rbx
mov r8, r12
mov qword [rbp - 0x28], r14
lea rdx, [rbp - 0x28]
mov rcx, r13
call sub.ntdll.dll_NtQuerySystemInformation
test rsi, rsi
je 0x14017846d
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
and qword [rbp - 0x18], 0
lea rax, [rbp - 0x60]
xor r9d, r9d
mov qword [rbp - 0x10], rax
mov r8, r12
mov qword [rbp - 0x28], r14
lea rdx, [rbp - 0x28]
mov qword [rbp - 0x20], rbx
mov rcx, r13
call sub.ntdll.dll_NtQuerySystemInformation
mov rbx, qword [rsp + 0xc8]
mov eax, r15d
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x8007000e
mov r15d, ecx
jmp 0x140178132