Function at 0x1401737a8
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 [0x14042fef8], 1
mov rbx, r8
mov r14, rdx
mov qword [rbp - 0x60], r12
mov r8d, r12d
mov qword [rbp - 0x58], r12
cmove r8, qword [0x14042f570]
lea rdx, [0x1403c9b30]
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.140068cd4
mov r15d, eax
test eax, eax
jns 0x14017382c
mov ecx, eax
call fcn.1400790f8
jmp 0x140173a65
mov edx, 0x5c
lea r8, [rbp - 0x48]
mov rcx, rbx
call fcn.140068ad0
mov r15d, eax
test eax, eax
js 0x140173820
lea rdx, [rbp - 0x58]
mov rcx, r14
call fcn.14007613c
mov r13d, r12d
cmp dword [rbp - 0x44], r12d
jle 0x140173a58
mov rax, qword [rbp - 0x40]
lea rdx, str.__s__name_s_
xor r8d, r8d
lea rcx, [rbp - 0x38]
cmp dword [0x14042fef8], 1
cmove r8, qword [0x14042f578]
mov r9, qword [rax + r12]
call fcn.140068cd4
mov r15d, eax
test eax, eax
js 0x140173820
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
test rdi, rdi
je 0x1401738a9
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rdi, rbx
test rbx, rbx
je 0x140173b7f
mov rbx, qword [rbp - 0x60]
test rbx, rbx
je 0x1401738d9
mov rax, qword [rbx]
mov r14, qword [rax + 0x10]
mov rcx, r14
call qword [0x1403af620]
mov rcx, rbx
call r14
and qword [rbp - 0x60], 0
mov rbx, qword [rbp - 0x50]
test rbx, rbx
je 0x1401738fd
mov rax, qword [rbx]
mov r14, qword [rax + 0x10]
mov rcx, r14
call qword [0x1403af620]
mov rcx, rbx
call r14
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 rcx, rbx
call qword [0x1403af620]
lea r8, [rbp - 0x50]
mov rdx, rdi
mov rcx, r14
call rbx
test eax, eax
jne 0x14017394b
mov rbx, qword [rbp - 0x50]
mov rax, qword [rbx]
mov r14, qword [rax]
mov rcx, r14
call qword [0x1403af620]
lea r8, [rbp - 0x60]
lea rdx, [0x1403ca2c8]
jmp 0x140173a05
mov r15, qword [r15 + 0x18]
xor r14d, r14d
cmp dword [0x14042fef8], 1
cmove r14, qword [0x14042f578]
mov rax, qword [r15]
mov rbx, qword [rax + 0x178]
mov rcx, rbx
call qword [0x1403af620]
lea r8, [rbp - 0x60]
mov rdx, r14
mov rcx, r15
call rbx
mov r15d, eax
test eax, eax
js 0x140173820
mov rax, qword [rbp - 0x40]
mov rcx, qword [rax + r12]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
test rsi, rsi
je 0x1401739aa
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rsi, rbx
test rbx, rbx
je 0x140173b7f
mov rcx, qword [rbp + 0x40]
xor r8d, r8d
cmp dword [0x14042fef8], 1
mov r9, rbx
mov rdx, qword [rbp - 0x60]
cmove r8, qword [0x14042f620]
mov rcx, qword [rcx + 0x18]
call fcn.14015acfc
mov r15d, eax
test eax, eax
js 0x140173820
mov rbx, qword [rbp - 0x58]
mov rax, qword [rbx]
mov r14, qword [rax + 0xa8]
mov rcx, r14
call qword [0x1403af620]
mov rdx, qword [rbp - 0x60]
xor r8d, r8d
mov rcx, rbx
call r14
mov r15d, eax
test eax, eax
js 0x140173820
mov rbx, qword [rbp - 0x58]
test rbx, rbx
je 0x140173a3a
mov rax, qword [rbx]
mov r14, qword [rax + 0x10]
mov rcx, r14
call qword [0x1403af620]
mov rcx, rbx
call r14
and qword [rbp - 0x58], 0
mov rcx, qword [rbp - 0x60]
lea rdx, [rbp - 0x58]
call fcn.14007613c
inc r13d
add r12, 8
cmp r13d, dword [rbp - 0x44]
jl 0x14017385d
mov rdx, qword [rbp + 0x58]
mov rcx, qword [rbp - 0x60]
call fcn.14007613c
mov ecx, r15d
call fcn.140079118
and qword [rbp - 0x18], 0
lea rax, [0x14001ef38]
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 0x140173ac8
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 0x140173ad6
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
xor edx, edx
lea rcx, [rbp - 0x48]
call fcn.140078a70
mov rbx, qword [rbp - 0x40]
test rbx, rbx
je 0x140173afe
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, [0x140011f38]
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 0x140173b3a
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 0x140173822