Function at 0x140158ac4
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc0
xor eax, eax
mov r14, rcx
lea rcx, [rbp - 0x21]
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x19], rax
mov r15, rdx
mov qword [rbp - 0x11], rax
call qword [sym.imp.OLEAUT32.dll_VariantClear]
movsd xmm1, qword [rbp - 0x11]
xor r12d, r12d
cmp dword [0x140422f18], 1
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x31], xmm0
mov edi, r12d
mov qword [rbp - 0x41], r12
lea eax, [r12 + 8]
mov qword [rbp - 0x39], r12
mov word [rbp - 0x21], ax
mov eax, r12d
cmove rax, qword [0x1404224c8]
cmp dword [0x140422f38], 1
mov qword [rbp - 0x19], rax
mov rax, qword [r14]
movups xmm0, xmmword [rbp - 0x21]
cmove rdi, qword [0x1404224e0]
mov qword [rbp - 0x79], r12
mov rbx, qword [rax + 0x280]
mov rcx, rbx
mov qword [rbp - 0x71], r12
mov qword [rbp + 0x7f], r12
movaps xmmword [rbp + 7], xmm0
movsd qword [rbp + 0x17], xmm1
call qword [0x1403a2250]
lea r8, [rbp + 7]
mov rdx, rdi
mov rcx, r14
call rbx
lea r13d, [r12 + 3]
mov esi, eax
test eax, eax
jns 0x140158b96
mov ecx, eax
call fcn.140078308
jmp 0x140158d9a
mov rax, qword [r14]
mov rdi, r12
cmp dword [0x140422f18], 1
cmove rdi, qword [0x1404224c0]
mov rbx, qword [rax + 0x120]
mov rcx, rbx
call qword [0x1403a2250]
lea r8, [rbp - 0x71]
mov rdx, rdi
mov rcx, r14
call rbx
mov esi, eax
test eax, eax
js 0x140158b8a
mov rbx, qword [rbp - 0x71]
test rbx, rbx
je 0x140158d8e
mov rax, qword [rbx]
mov rdi, qword [rax + 0x40]
mov rcx, rdi
call qword [0x1403a2250]
lea rdx, [rbp + 0x77]
mov rcx, rbx
call rdi
mov esi, eax
test eax, eax
js 0x140158b8a
mov r14d, r12d
cmp dword [rbp + 0x77], r12d
jle 0x140158d8e
mov rbx, qword [rbp - 0x79]
test rbx, rbx
je 0x140158c28
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [0x1403a2250]
mov rcx, rbx
call rdi
mov qword [rbp - 0x79], r12
mov rbx, qword [rbp - 0x71]
mov rax, qword [rbx]
mov rdi, qword [rax + 0x38]
mov rcx, rdi
call qword [0x1403a2250]
lea r8, [rbp - 0x79]
mov edx, r14d
mov rcx, rbx
call rdi
mov esi, eax
test eax, eax
js 0x140158b8a
mov rcx, qword [rbp + 0x7f]
test rcx, rcx
je 0x140158c65
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbp + 0x7f], r12
mov rbx, qword [rbp - 0x79]
mov rax, qword [rbx]
mov rdi, qword [rax + 0x38]
mov rcx, rdi
call qword [0x1403a2250]
lea rdx, [rbp + 0x7f]
mov rcx, rbx
call rdi
mov esi, eax
test eax, eax
js 0x140158b8a
mov rcx, qword [rbp + 0x7f]
lea rdx, [rbp - 0x31]
call fcn.1400781e4
mov esi, eax
test eax, eax
js 0x140158b8a
mov rcx, qword [rbp + 0x7f]
test rcx, rcx
je 0x140158cb6
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbp + 0x7f], r12
mov rbx, qword [rbp - 0x79]
mov rax, qword [rbx]
mov rdi, qword [rax + 0xd0]
mov rcx, rdi
call qword [0x1403a2250]
lea rdx, [rbp + 0x7f]
mov rcx, rbx
call rdi
mov esi, eax
test eax, eax
js 0x140158b8a
mov rcx, qword [rbp + 0x7f]
lea rdx, [rbp - 0x29]
call fcn.1400781e4
mov esi, eax
test eax, eax
js 0x140158b8a
mov rdx, qword [rbp - 0x31]
lea r8, [rbp + 0x67]
lea rcx, [rbp - 0x41]
call fcn.1400b5fdc
test al, al
je 0x140158d55
movsxd rax, dword [rbp + 0x67]
lea rcx, [0x140045560]
shl rax, 4
lea rdx, [rbp - 0x69]
add rax, qword [rbp - 0x39]
xor r9d, r9d
mov qword [rbp - 0x61], rcx
lea rcx, [rbp - 9]
mov qword [rbp - 0x51], rax
lea rax, [rbp - 0x31]
mov qword [rbp - 0x59], rcx
mov ecx, 0xb9
lea r8d, [r9 + 0x28]
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x69], r13
call sub.ntdll.dll_NtQuerySystemInformation
mov esi, r12d
jmp 0x140158d72
mov edx, dword [rbp + 0x67]
lea r8, [rbp - 0x31]
lea rcx, [rbp - 0x41]
call fcn.14015ce64
mov esi, eax
test eax, eax
jns 0x140158d72
mov ecx, eax
call fcn.140078308
mov ecx, esi
call fcn.140078324
test esi, esi
js 0x140158e80
inc r14d
cmp r14d, dword [rbp + 0x77]
jl 0x140158c06
lea rdx, [rbp - 0x41]
mov rcx, r15
call fcn.14015b398
mov ecx, esi
call fcn.140078324
mov rcx, qword [rbp + 0x7f]
test rcx, rcx
je 0x140158db4
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbp + 0x7f], r12
mov rbx, qword [rbp - 0x71]
test rbx, rbx
je 0x140158dd6
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [0x1403a2250]
mov rcx, rbx
call rdi
mov qword [rbp - 0x71], r12
xor r9d, r9d
mov qword [rbp - 0x69], r13
lea rax, [0x14003f720]
mov qword [rbp - 0x59], r12
mov qword [rbp - 0x61], rax
lea rdx, [rbp - 0x69]
lea rax, [rbp - 0x79]
mov edi, 0xb9
lea ebx, [r9 + 0x28]
mov qword [rbp - 0x51], rax
mov r8d, ebx
mov ecx, edi
call sub.ntdll.dll_NtQuerySystemInformation
lea rax, [0x14003f3e0]
mov qword [rbp - 0x69], r13
mov qword [rbp - 0x61], rax
lea rdx, [rbp - 0x69]
lea rax, [rbp - 0x31]
mov qword [rbp - 0x59], r12
xor r9d, r9d
mov qword [rbp - 0x51], rax
mov r8d, ebx
mov ecx, edi
call sub.ntdll.dll_NtQuerySystemInformation
lea rax, [0x14003a920]
mov qword [rbp - 0x69], r13
mov qword [rbp - 0x61], rax
lea rdx, [rbp - 0x69]
lea rax, [rbp - 0x41]
mov qword [rbp - 0x59], r12
xor r9d, r9d
mov qword [rbp - 0x51], rax
mov r8d, ebx
mov ecx, edi
call sub.ntdll.dll_NtQuerySystemInformation
mov rbx, qword [rsp + 0x108]
mov eax, esi
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, esi
jmp 0x140158b8c