Function at 0x14005d060
Capabilities:
Check os version

Disassembly:
push rbx
push rdi
sub rsp, 0x138
mov rax, qword [0x14020e318]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov rdi, qword [rcx + 0x398]
mov rbx, rcx
test rdi, rdi
jne 0x14005d092
xor eax, eax
jmp 0x14005d413
cmp qword [rcx + 0x90], 0
je 0x14005d08b
mov qword [rsp + 0x128], r14
xor r14d, r14d
cmp qword [rcx + 0x380], r14
mov dword [rcx + 0x3a0], r14d
mov dword [rsp + 0x24], r14d
mov dword [rsp + 0x20], r14d
je 0x14005d402
mov qword [rsp + 0x158], rbp
mov qword [rsp + 0x160], rsi
mov qword [rsp + 0x168], r12
lea r8d, [r14 + 0x68]
lea rcx, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x130], r13
mov qword [rsp + 0x120], r15
call fcn.1401601f0
lea r8d, [r14 + 0x38]
xor edx, edx
mov rcx, rdi
call fcn.1401601f0
mov r12, r14
mov rbp, r14
lea r15, [0x140000000]
lea r13d, [r14 + 0x18]
nop
mov rcx, qword [rbx + 0x398]
mov eax, dword [r12 + r15 + 0x210630]
mov esi, r14d
mov dword [rcx + rbp], eax
lea rdi, reloc.OLEAUT32.dll_VariantClear
nop
cmp dword [0x14022c3f4], r14d
jne 0x14005d160
lea rcx, [0x14022c3f0]
mov dword [0x14022c3f0], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [0x14022c3f4], 6
jne 0x14005d177
cmp dword [0x14022c3f8], r14d
jne 0x14005d177
mov eax, r13d
jmp 0x14005d17c
mov eax, 0x1d
cmp esi, eax
jge 0x14005d39b
mov rax, qword [rbx + 0x90]
bt dword [rax + 0x1f8], 0x1b
jb 0x14005d19f
cmp word [rdi], 0x20
je 0x14005d38f
xor edx, edx
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 0x68]
call fcn.1401601f0
movzx r9d, word [rdi]
movzx edx, word [r12 + r15 + 0x210634]
mov rax, qword [r15 + 0x1aba80]
mov r8d, dword [rdi - 4]
mov dword [rsp + 0x30], 0x52
mov dword [rsp + 0x38], r14d
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x24], r14d
mov qword [rcx], rax
mov rax, qword [r15 + 0x1aba88]
mov qword [rcx + 8], rax
mov rax, qword [r15 + 0x1aba90]
lea rcx, [rsp + 0x50]
mov qword [rcx], rax
mov rax, qword [r15 + 0x1aba98]
mov qword [rcx + 8], rax
mov rax, qword [r15 + 0x1abaa0]
lea rcx, [rsp + 0x60]
mov qword [rcx], rax
mov rax, qword [r15 + 0x1abaa8]
mov qword [rcx + 8], rax
mov word [rsp + 0x72], dx
lea eax, [r9 - 0x11]
cmp ax, 0xf
movzx ecx, r9w
mov dword [rsp + 0x74], r8d
mov word [rsp + 0x82], r9w
mov eax, 0x20
mov word [rsp + 0x70], 0xfffe
cmovbe cx, ax
mov word [rsp + 0x80], 0x16
lea r9, [rsp + 0x24]
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 [r12 + r15 + 0x210638]
mov dword [rsp + 0x84], eax
mov rax, qword [r15 + 0x1aba90]
mov r8d, 0x68
mov qword [rcx], rax
mov rax, qword [r15 + 0x1aba98]
mov qword [rcx + 8], rax
mov rcx, qword [rbx + 0x380]
mov rax, qword [rcx]
call qword [rax + 0x18]
lea rcx, [rsp + 0xa0]
lea rdx, [rsp + 0x30]
mov r8d, 0x68
call fcn.1401604f0
movzx r11d, word [rsp + 0x7e]
cmp r11w, 0x10
jbe 0x14005d307
movzx ecx, word [rsp + 0xee]
cmp r11w, 0x20
cmovbe cx, r13w
mov word [rsp + 0xee], cx
jmp 0x14005d30f
mov cx, word [rsp + 0xee]
movzx eax, word [rsp + 0xe2]
movzx ecx, cx
mov dword [rsp + 0x20], r14d
lea r9, [rsp + 0x20]
mov r8d, 0x68
imul eax, ecx
mov rcx, qword [rbx + 0x380]
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], r14d
jne 0x14005d373
cmp dword [rsp + 0x20], r14d
je 0x14005d38f
mov eax, dword [rdi - 8]
mov rcx, qword [rbx + 0x398]
or dword [rcx + rbp + 4], eax
mov eax, dword [r12 + r15 + 0x210630]
or dword [rbx + 0x3a0], eax
add esi, 1
add rdi, 0x14
jmp 0x14005d140
add rbp, 8
add r12, r13
cmp rbp, 0x38
jl 0x14005d120
test byte [rbx + 0x3a0], 0x20
mov r15, qword [rsp + 0x120]
mov r13, qword [rsp + 0x130]
mov r12, qword [rsp + 0x168]
mov rsi, qword [rsp + 0x160]
mov rbp, qword [rsp + 0x158]
je 0x14005d3f0
mov rax, qword [rbx + 0x90]
test rax, rax
je 0x14005d3f0
or dword [rax + 0x2c], 0x200
cmp dword [rbx + 0x3a0], r14d
jne 0x14005d406
cmp dword [rbx + 0x1d8], 9
jne 0x14005d406
xor eax, eax
jmp 0x14005d40b
mov eax, 1
mov r14, qword [rsp + 0x128]
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.14015b6f0
add rsp, 0x138
pop rdi
pop rbx
ret