Function at 0x14010c380
Capabilities:
Copy file
Create directory
Get file attributes

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x200], rbx
mov rax, qword [0x14044b080]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov r14, rdx
lea rsi, [rcx + 0xb0]
lea r9, str.CCoInstallerCapabilities::BackupCabFile_n
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call fcn.14011e570
call fcn.1400606b0
cmp eax, 0x5313
jge 0x14010c3fe
lea r9, str.CCoInstallerCapabilities::BackupCabFile__CAPX_is_not_supported_n
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call fcn.14011e570
mov al, 1
jmp 0x14010c670
xor r15d, r15d
mov qword [rsp + 0x40], r15
lea rcx, [rsp + 0x40]
call fcn.14011e0d0
nop
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x14010c434
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xfffffff
jb 0x14010c549
mov rbx, qword [rsp + 0x40]
xor edx, edx
mov r8d, 0x158
lea rcx, [rsp + 0x50]
call fcn.140222790
mov edx, 5
lea rcx, [rsp + 0x50]
call fcn.14029c000
lea rax, vtable.CSecuredDirectory.0
mov qword [rsp + 0x50], rax
mov byte [rbp + 0xa0], 0
mov dword [rsp + 0x5c], 1
mov dword [rsp + 0x60], 1
mov dword [rsp + 0x64], 2
mov dword [rsp + 0x68], 2
mov dword [rsp + 0x6c], shutdown
mov dword [rsp + 0x70], shutdown
mov dword [rsp + 0x74], 0x20
mov qword [rsp + 0x78], 0x20
mov dword [rbp - 0x80], r15d
mov dword [rbp - 0x7c], 0x220
mov dword [rbp - 0x78], 0x221
test rbx, rbx
je 0x14010c50f
lea rcx, [rsp + 0x50]
call fcn.14029c0e0
test eax, eax
je 0x14010c4ed
lea r8, [rbp + 0x80]
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
sete al
mov byte [rbp + 0xa0], al
jmp 0x14010c4f4
movzx eax, byte [rbp + 0xa0]
cmp dword [rbp + 0x98], 0
je 0x14010c50a
test al, al
je 0x14010c50a
mov al, 1
mov rbx, qword [rsp + 0x40]
jmp 0x14010c511
mov rbx, qword [rsp + 0x40]
xor al, al
mov qword [rsp + 0x20], rbx
lea r9, str.CCoInstallerCapabilities::BackupCabFile__Creating___s__directory_n
movzx r8d, al
xor edx, edx
mov rcx, rsi
call fcn.14011e570
nop
mov byte [rbp + 0xa0], 0
lea rax, vtable.CSecurityAttribute.0
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x50]
call fcn.14029c310
xor dil, dil
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x14010c56d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xfffffff
setb dil
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, str.CCoInstallerCapabilities::BackupCabFile____s__directory_is_present_on_disk._n
movzx r8d, dil
xor edx, edx
mov rcx, rsi
call fcn.14011e570
mov ebx, 0xffffffff
test dil, dil
je 0x14010c649
mov qword [rsp + 0x48], r15
mov rdx, qword [0x140464bf0]
lea rcx, [rsp + 0x48]
call fcn.14011e210
nop
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x14010c5ec
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xfffffff
jae 0x14010c5e7
mov rcx, qword [rsp + 0x48]
add rcx, 0xffffffffffffffe8
call fcn.14003c400
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
call fcn.14012e610
mov rdx, qword [rsp + 0x48]
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne dil
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, str.CCoInstallerCapabilities::BackupCabFile__CopyFile__s___s__n
movzx r8d, dil
xor edx, edx
mov rcx, rsi
call fcn.14011e570
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14010c649
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14004487d.0]
nop
mov rax, qword [rsp + 0x40]
lea rdx, [rax - 0x18]
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x14010c66c
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x14004487d.0]
movzx eax, dil
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.140202880
mov rbx, qword [rsp + 0x200]
add rsp, 0x1c0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret