Function at 0x14005b410
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 0x14005b442
xor eax, eax
jmp 0x14005b7c9
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 0x14005b7b8
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.140148fe0
lea r8d, [r15 + 0x38]
xor edx, edx
mov rcx, rdi
call fcn.140148fe0
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 0x14005b510
lea rcx, [0x140206d00]
mov dword [0x140206d00], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [0x140206d04], 6
jne 0x14005b527
cmp dword [0x140206d08], r15d
jne 0x14005b527
mov eax, r14d
jmp 0x14005b52c
mov eax, 0x1b
cmp esi, eax
jge 0x14005b74a
movzx r12d, word [rdi]
cmp r12w, 0x20
je 0x14005b73e
xor edx, edx
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 0x68]
call fcn.140148fe0
mov r8d, dword [rdi - 4]
lea r9, [0x140000000]
movzx edx, word [r13 + r9 + 0x1ec904]
mov rax, qword [r9 + 0x18eb40]
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 + 0x18eb48]
mov qword [rcx + 8], rax
mov rax, qword [r9 + 0x18eb50]
lea rcx, [rsp + 0x50]
mov qword [rcx], rax
mov rax, qword [r9 + 0x18eb58]
mov qword [rcx + 8], rax
mov rax, qword [r9 + 0x18eb60]
lea rcx, [rsp + 0x60]
mov qword [rcx], rax
mov rax, qword [r9 + 0x18eb68]
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 + 0x18eb50]
mov r8d, 0x68
mov qword [rcx], rax
mov rax, qword [r9 + 0x18eb58]
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.1401492a0
movzx r11d, word [rsp + 0x7e]
cmp r11w, 0x10
jbe 0x14005b6af
movzx ecx, word [rsp + 0xee]
cmp r11w, 0x20
cmovbe cx, r14w
mov word [rsp + 0xee], cx
jmp 0x14005b6b7
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 0x14005b71b
cmp dword [rsp + 0x20], r15d
je 0x14005b73e
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 0x14005b4f0
add rbp, 8
add r13, r14
lea rax, [0x140000000]
cmp rbp, 0x38
jl 0x14005b4d0
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 0x14005b7a6
mov rax, qword [rbx + 0x90]
test rax, rax
je 0x14005b7a6
or dword [rax + 0x2c], 0x200
cmp dword [rbx + 0x398], r15d
jne 0x14005b7bc
cmp dword [rbx + 0x1d0], 9
jne 0x14005b7bc
xor eax, eax
jmp 0x14005b7c1
mov eax, 1
mov r15, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.140144dc0
add rsp, 0x138
pop rdi
pop rbx
ret