Function at 0x14001c4d0
Capabilities:
Check os version

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x188]
sub rsp, 0x270
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14004b150]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rdi, rcx
xor esi, esi
mov qword [rsp + 0x38], rsi
lea r14d, [rsi + 7]
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x50], rsi
mov word [rbp - 0x60], si
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x78], rsi
mov word [rsp + 0x78], si
mov rax, qword [rcx + 0x20]
mov rdx, qword [rax + 0x10]
add rdx, 0x50
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x68]
call fcn.140003fc4
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [0x14003d0e8]
lea r15d, [rsi + 1]
mov r8d, r15d
xor edx, edx
lea rcx, [0x14003d0d8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x14001c606
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x44]
call sub.msvcrt.dll_memset
mov dword [rbp + 0x40], 0x114
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
nop dword [rax + rax]
test eax, eax
je 0x14001c5cc
cmp dword [rbp + 0x44], 6
ja 0x14001c5c8
jne 0x14001c5c1
cmp dword [rbp + 0x48], 2
jae 0x14001c5c8
mov ecx, 0x8007047e
jmp 0x14001c5e6
mov ecx, esi
jmp 0x14001c5e6
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
lea rax, str.Error_initializing_IXpsOMObjectFactory.
lea rdx, str.This_application_is_not_supported_on_the_current_operating_system_version.
test ecx, ecx
cmovns rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140003ecc
jmp 0x14001c656
mov rcx, qword [rsp + 0x30]
test rcx, rcx
jne 0x14001c628
lea rdx, str.Error_initializing_IXpsOMObjectFactory.
lea rcx, [rsp + 0x70]
call fcn.140003ecc
mov ebx, 0x80004005
jmp 0x14001c656
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rdx, qword [rbp - 0x60]
mov rax, qword [rcx]
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rax, qword [rax + 0x180]
call qword [0x140032bd8]
mov ebx, eax
test eax, eax
cmovs ebx, r15d
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14001c66d
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140032bd8]
test ebx, ebx
jns 0x14001c6c9
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rdx, qword [rsp + 0x78]
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x60], rsi
mov word [rsp + 0x50], si
lea rcx, [rsp + 0x48]
call fcn.140003ecc
nop
mov rax, qword [rdi + 0x10]
lea rdx, [rsp + 0x48]
mov rcx, qword [rax + 0x10]
call fcn.140006e34
nop
cmp qword [rsp + 0x68], 8
jb 0x14001c7fc
mov rcx, qword [rsp + 0x50]
call sub.msvcrt.dll_free
jmp 0x14001c7fc
cmp ebx, r15d
jne 0x14001c7ed
mov qword [rbp + 0x30], r14
mov qword [rbp + 0x28], rsi
mov word [rbp + 0x18], si
lea rdx, [0x140033aa0]
lea rcx, [rbp + 0x10]
call fcn.140003ecc
nop
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x60], rsi
mov word [rsp + 0x50], si
lea rdx, str.bool
lea rcx, [rsp + 0x48]
call fcn.140003ecc
nop
mov qword [rbp + 8], r14
mov qword [rbp], rsi
mov word [rbp - 0x10], si
lea rdx, [0x14003cbc8]
lea rcx, [rbp - 0x18]
call fcn.140003ecc
nop
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x28], rsi
mov word [rbp - 0x38], si
lea rdx, str.CorruptedXpsTrunk
lea rcx, [rbp - 0x40]
call fcn.140003ecc
nop
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x40]
call fcn.14001b6ec
lea rcx, [rdi + 0x28]
mov rdx, rax
call fcn.14001bd1c
nop
cmp qword [rbp - 0x20], 8
jb 0x14001c794
mov rcx, qword [rbp - 0x38]
call sub.msvcrt.dll_free
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x28], rsi
mov word [rbp - 0x38], si
cmp qword [rbp + 8], 8
jb 0x14001c7b0
mov rcx, qword [rbp - 0x10]
call sub.msvcrt.dll_free
mov qword [rbp + 8], r14
mov qword [rbp], rsi
mov word [rbp - 0x10], si
cmp qword [rsp + 0x68], 8
jb 0x14001c7ce
mov rcx, qword [rsp + 0x50]
call sub.msvcrt.dll_free
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x60], rsi
mov word [rsp + 0x50], si
cmp qword [rbp + 0x30], 8
jb 0x14001c7fc
mov rcx, qword [rbp + 0x18]
jmp 0x14001c6bf
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.14001c884
mov ebx, eax
cmp qword [rbp - 0x70], 8
jb 0x14001c80d
mov rcx, qword [rsp + 0x78]
call sub.msvcrt.dll_free
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x78], rsi
mov word [rsp + 0x78], si
cmp qword [rbp - 0x48], 8
jb 0x14001c82a
mov rcx, qword [rbp - 0x60]
call sub.msvcrt.dll_free
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x50], rsi
mov word [rbp - 0x60], si
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14001c84d
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140032bd8]
mov eax, ebx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.14002d5f0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret