Function at 0x14005b0e0
Capabilities:
Check os version

Disassembly:
push rbx
push rdi
sub rsp, 0x138
mov rax, qword [0x1401ea158]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov rdi, qword [rcx + 0x390]
mov rbx, rcx
test rdi, rdi
jne 0x14005b112
xor eax, eax
jmp 0x14005b499
mov qword [rsp + 0x120], r15
xor r15d, r15d
cmp qword [rcx + 0x378], r15
mov dword [rcx + 0x398], r15d
mov dword [rsp + 0x24], r15d
mov dword [rsp + 0x20], r15d
je 0x14005b488
mov qword [rsp + 0x158], rbp
mov qword [rsp + 0x160], rsi
mov qword [rsp + 0x168], r12
lea r8d, [r15 + 0x68]
lea rcx, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x130], r13
mov qword [rsp + 0x128], r14
call fcn.1401489d0
lea r8d, [r15 + 0x38]
xor edx, edx
mov rcx, rdi
call fcn.1401489d0
mov r13, r15
mov rbp, r15
lea rax, [0x140000000]
lea r14d, [r15 + 0x18]
nop
nop
nop
nop
mov rcx, qword [rbx + 0x390]
mov eax, dword [r13 + rax + 0x1ec900]
mov esi, r15d
mov dword [rcx + rbp], eax
lea rdi, reloc.OLEAUT32.dll_VariantClear
nop
cmp dword [0x140206d04], r15d
jne 0x14005b1e0
lea rcx, [0x140206d00]
mov dword [0x140206d00], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [0x140206d04], 6
jne 0x14005b1f7
cmp dword [0x140206d08], r15d
jne 0x14005b1f7
mov eax, r14d
jmp 0x14005b1fc
mov eax, 0x1b
cmp esi, eax
jge 0x14005b41a
movzx r12d, word [rdi]
cmp r12w, 0x20
je 0x14005b40e
xor edx, edx
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 0x68]
call fcn.1401489d0
mov r8d, dword [rdi - 4]
lea r9, [0x140000000]
movzx edx, word [r13 + r9 + 0x1ec904]
mov rax, qword [r9 + 0x18eb30]
mov dword [rsp + 0x30], 0x52
mov dword [rsp + 0x38], r15d
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x24], r15d
mov qword [rcx], rax
mov rax, qword [r9 + 0x18eb38]
mov qword [rcx + 8], rax
mov rax, qword [r9 + 0x18eb40]
lea rcx, [rsp + 0x50]
mov qword [rcx], rax
mov rax, qword [r9 + 0x18eb48]
mov qword [rcx + 8], rax
mov rax, qword [r9 + 0x18eb50]
lea rcx, [rsp + 0x60]
mov qword [rcx], rax
mov rax, qword [r9 + 0x18eb58]
mov qword [rcx + 8], rax
mov word [rsp + 0x72], dx
mov dword [rsp + 0x74], r8d
lea eax, [r12 - 0x11]
mov word [rsp + 0x70], 0xfffe
mov word [rsp + 0x80], 0x16
cmp ax, 0xf
mov eax, 0x20
mov word [rsp + 0x82], r12w
movzx ecx, r12w
cmovbe cx, ax
movzx eax, cx
mov word [rsp + 0x7e], cx
lea rcx, [rsp + 0x88]
imul eax, edx
cdq
and edx, 7
add eax, edx
lea rdx, [rsp + 0x30]
sar eax, 3
mov word [rsp + 0x7c], ax
movzx eax, ax
imul eax, r8d
mov dword [rsp + 0x78], eax
mov eax, dword [r13 + r9 + 0x1ec908]
mov dword [rsp + 0x84], eax
mov rax, qword [r9 + 0x18eb40]
mov r8d, 0x68
mov qword [rcx], rax
mov rax, qword [r9 + 0x18eb48]
lea r9, [rsp + 0x24]
mov qword [rcx + 8], rax
mov rcx, qword [rbx + 0x378]
mov rax, qword [rcx]
call qword [rax + 0x18]
lea rcx, [rsp + 0xa0]
lea rdx, [rsp + 0x30]
mov r8d, 0x68
call fcn.140148c90
movzx r11d, word [rsp + 0x7e]
cmp r11w, 0x10
jbe 0x14005b37f
movzx ecx, word [rsp + 0xee]
cmp r11w, 0x20
cmovbe cx, r14w
mov word [rsp + 0xee], cx
jmp 0x14005b387
mov cx, word [rsp + 0xee]
movzx eax, word [rsp + 0xe2]
movzx ecx, cx
mov dword [rsp + 0x20], r15d
lea r9, [rsp + 0x20]
mov r8d, 0x68
imul eax, ecx
mov rcx, qword [rbx + 0x378]
cdq
and edx, 7
add eax, edx
lea rdx, [rsp + 0xa0]
sar eax, 3
mov word [rsp + 0xec], ax
movzx eax, ax
imul eax, dword [rsp + 0xe4]
mov dword [rsp + 0xe8], eax
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp dword [rsp + 0x24], r15d
jne 0x14005b3eb
cmp dword [rsp + 0x20], r15d
je 0x14005b40e
mov eax, dword [rdi - 8]
mov rcx, qword [rbx + 0x390]
or dword [rcx + rbp + 4], eax
lea rax, [0x140000000]
mov eax, dword [r13 + rax + 0x1ec900]
or dword [rbx + 0x398], eax
add esi, 1
add rdi, 0x14
jmp 0x14005b1c0
add rbp, 8
add r13, r14
lea rax, [0x140000000]
cmp rbp, 0x38
jl 0x14005b1a0
test byte [rbx + 0x398], 0x20
mov r14, qword [rsp + 0x128]
mov r13, qword [rsp + 0x130]
mov r12, qword [rsp + 0x168]
mov rsi, qword [rsp + 0x160]
mov rbp, qword [rsp + 0x158]
je 0x14005b476
mov rax, qword [rbx + 0x90]
test rax, rax
je 0x14005b476
or dword [rax + 0x2c], 0x200
cmp dword [rbx + 0x398], r15d
jne 0x14005b48c
cmp dword [rbx + 0x1d0], 9
jne 0x14005b48c
xor eax, eax
jmp 0x14005b491
mov eax, 1
mov r15, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.1401447b0
add rsp, 0x138
pop rdi
pop rbx
ret