Function at 0x14004c160
Capabilities:
Copy file

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x7b8]
sub rsp, 0x8b8
mov rax, qword [0x1400c7070]
xor rax, rsp
mov qword [rbp + 0x7a0], rax
mov rax, qword [rcx]
mov rbx, rcx
mov rax, qword [rax + 0xe0]
call qword [0x1400926f0]
mov r8, qword [rbx]
mov rcx, rbx
test eax, eax
je 0x14004c53a
mov rax, qword [r8 + 0x38]
call qword [0x1400926f0]
test eax, eax
jne 0x14004c4f6
mov rax, qword [rbx]
mov edx, 7
mov qword [rsp + 0x8d8], rsi
mov rcx, rbx
mov qword [rsp + 0x8e0], rdi
mov qword [rsp + 0x8b0], r12
mov rax, qword [rax + 0x78]
call qword [0x1400926f0]
xor edx, edx
lea rcx, [rbp + 0x390]
mov r8d, 0x410
call fcn.1400659a0
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x410
call fcn.1400659a0
mov rax, qword [rbx]
xor esi, esi
mov rcx, rbx
mov qword [rsp + 0x38], rsi
mov rax, qword [rax + 0x40]
call qword [0x1400926f0]
lea rdx, [rsp + 0x38]
mov rcx, qword [rax + 0x40]
call fcn.14005bc00
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rsi
call fcn.14005bc00
mov r8, qword [rsp + 0x38]
lea rcx, [rbp + 0x390]
mov edx, 0x208
call fcn.14006e2a0
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x40]
call qword [0x1400926f0]
lea rcx, [rbp + 0x390]
mov rdx, qword [rax + 0x28]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov r8, qword [rsp + 0x30]
lea rcx, [rbp - 0x80]
mov edx, 0x208
call fcn.14006e2a0
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x40]
call qword [0x1400926f0]
lea rcx, [rbp - 0x80]
mov rdx, qword [rax + 0x28]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x80]
call qword [0x1400926f0]
mov rcx, qword [rbx]
mov rdi, rax
mov rax, qword [rcx + 0x88]
mov rcx, rbx
call qword [0x1400926f0]
lea rcx, [rbp - 0x80]
mov r8, rdi
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x390]
lea rcx, str.InstallItem__s__s_copying__s___s._n
mov rdx, rax
call fcn.14005cb30
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor r8d, r8d
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x390]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
cmp qword [rsp + 0x38], rsi
je 0x14004c32b
mov rcx, qword [rsp + 0x38]
call fcn.140069370
cmp qword [rsp + 0x30], rsi
je 0x14004c33c
mov rcx, qword [rsp + 0x30]
call fcn.140069370
test edi, edi
je 0x14004c37b
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x80]
call qword [0x1400926f0]
mov rcx, qword [rbx]
mov rdi, rax
mov rax, qword [rcx + 0x88]
mov rcx, rbx
call qword [0x1400926f0]
mov r8, rdi
lea rcx, str.InstallItem__s__s_copy_ok._n
mov rdx, rax
jmp 0x14004c4aa
lea rax, [rbp - 0x80]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], si
jne 0x14004c386
lea rdx, [rbp - 0x80]
mov qword [rsp + 0x40], rsi
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], 7
call fcn.14001c900
cmp qword [rsp + 0x58], 8
lea rcx, [rsp + 0x40]
mov r9d, 0xffffffff
lea rdx, [rsp + 0x60]
cmovae rcx, qword [rsp + 0x40]
mov r8d, 3
call fcn.140061938
test eax, eax
jne 0x14004c414
mov esi, dword [rsp + 0x70]
mov eax, esi
shr eax, 0xa
test al, 1
je 0x14004c409
mov eax, dword [rsp + 0x74]
cmp eax, 0xa000000c
jne 0x14004c3fb
mov esi, 4
jmp 0x14004c42d
cmp eax, 0xa0000003
jne 0x14004c409
mov esi, 0xa
jmp 0x14004c42d
shr esi, 4
and esi, 1
add esi, 2
jmp 0x14004c42d
sub eax, 2
je 0x14004c428
sub eax, 1
je 0x14004c428
sub eax, 0x32
je 0x14004c428
cmp eax, 0x46
jne 0x14004c42d
mov esi, 1
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x14004c46f
mov rcx, qword [rsp + 0x40]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004c46a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004c54d
call fcn.140062610
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x80]
call qword [0x1400926f0]
mov rcx, qword [rbx]
mov rdi, rax
mov rax, qword [rcx + 0x88]
mov rcx, rbx
call qword [0x1400926f0]
mov r8, rdi
mov rdx, rax
cmp esi, 2
jne 0x14004c50f
lea rcx, str.InstallItem__s__s_copy_failed__file_exists._n
call fcn.14005cb30
mov rax, qword [rbx]
mov edx, 0x64
mov rcx, rbx
mov rax, qword [rax + 0xc0]
call qword [0x1400926f0]
mov rax, qword [rbx]
mov edx, 8
mov rcx, rbx
mov rax, qword [rax + 0x78]
call qword [0x1400926f0]
xor eax, eax
mov rdi, qword [rsp + 0x8e0]
mov rsi, qword [rsp + 0x8d8]
mov r12, qword [rsp + 0x8b0]
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.1400625f0
add rsp, 0x8b8
pop rbx
pop rbp
ret
mov r9d, r12d
lea rcx, str.InstallItem__s__s_copy_failed__error_code__d._n
call fcn.14005cb30
mov rcx, qword [rbx]
mov edx, 9
mov rax, qword [rcx + 0x78]
mov rcx, rbx
call qword [0x1400926f0]
mov eax, 1
jmp 0x14004c4de
mov rax, qword [r8 + 0x78]
mov edx, 8
call qword [0x1400926f0]
xor eax, eax
jmp 0x14004c4f6
call fcn.1400695b8
int3