Function at 0x14005d2b0
Capabilities:
Check os version

Disassembly:
push rbx
push rdi
sub rsp, 0x138
mov rax, qword [0x140210348]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov rdi, qword [rcx + 0x398]
mov rbx, rcx
test rdi, rdi
jne 0x14005d2e2
xor eax, eax
jmp 0x14005d663
cmp qword [rcx + 0x90], 0
je 0x14005d2db
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 0x14005d652
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.140160e90
lea r8d, [r14 + 0x38]
xor edx, edx
mov rcx, rdi
call fcn.140160e90
mov r12, r14
mov rbp, r14
lea r15, [0x140000000]
lea r13d, [r14 + 0x18]
nop
mov rcx, qword [rbx + 0x398]
mov eax, dword [r12 + r15 + 0x212620]
mov esi, r14d
mov dword [rcx + rbp], eax
lea rdi, reloc.OLEAUT32.dll_VariantClear
nop
cmp dword [0x14022e714], r14d
jne 0x14005d3b0
lea rcx, [0x14022e710]
mov dword [0x14022e710], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [0x14022e714], 6
jne 0x14005d3c7
cmp dword [0x14022e718], r14d
jne 0x14005d3c7
mov eax, r13d
jmp 0x14005d3cc
mov eax, 0x1d
cmp esi, eax
jge 0x14005d5eb
mov rax, qword [rbx + 0x90]
bt dword [rax + 0x1f8], 0x1b
jb 0x14005d3ef
cmp word [rdi], 0x20
je 0x14005d5df
xor edx, edx
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 0x68]
call fcn.140160e90
movzx r9d, word [rdi]
movzx edx, word [r12 + r15 + 0x212624]
mov rax, qword [r15 + 0x1acc30]
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 + 0x1acc38]
mov qword [rcx + 8], rax
mov rax, qword [r15 + 0x1acc40]
lea rcx, [rsp + 0x50]
mov qword [rcx], rax
mov rax, qword [r15 + 0x1acc48]
mov qword [rcx + 8], rax
mov rax, qword [r15 + 0x1acc50]
lea rcx, [rsp + 0x60]
mov qword [rcx], rax
mov rax, qword [r15 + 0x1acc58]
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 + 0x212628]
mov dword [rsp + 0x84], eax
mov rax, qword [r15 + 0x1acc40]
mov r8d, 0x68
mov qword [rcx], rax
mov rax, qword [r15 + 0x1acc48]
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.140161150
movzx r11d, word [rsp + 0x7e]
cmp r11w, 0x10
jbe 0x14005d557
movzx ecx, word [rsp + 0xee]
cmp r11w, 0x20
cmovbe cx, r13w
mov word [rsp + 0xee], cx
jmp 0x14005d55f
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 0x14005d5c3
cmp dword [rsp + 0x20], r14d
je 0x14005d5df
mov eax, dword [rdi - 8]
mov rcx, qword [rbx + 0x398]
or dword [rcx + rbp + 4], eax
mov eax, dword [r12 + r15 + 0x212620]
or dword [rbx + 0x3a0], eax
add esi, 1
add rdi, 0x14
jmp 0x14005d390
add rbp, 8
add r12, r13
cmp rbp, 0x38
jl 0x14005d370
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 0x14005d640
mov rax, qword [rbx + 0x90]
test rax, rax
je 0x14005d640
or dword [rax + 0x2c], 0x200
cmp dword [rbx + 0x3a0], r14d
jne 0x14005d656
cmp dword [rbx + 0x1d8], 9
jne 0x14005d656
xor eax, eax
jmp 0x14005d65b
mov eax, 1
mov r14, qword [rsp + 0x128]
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.14015d000
add rsp, 0x138
pop rdi
pop rbx
ret