Function at 0x14004c560
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 + 0xe8]
call qword [0x1400926f0]
mov rcx, qword [rbx]
test eax, eax
mov r8, qword [rcx + 0x78]
mov rcx, rbx
mov rax, r8
je 0x14004c924
mov qword [rsp + 0x8d8], rsi
mov edx, 0xd
mov qword [rsp + 0x8e0], rdi
mov qword [rsp + 0x8b0], r14
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 r14, qword [rsp + 0x38]
lea rcx, [rbp + 0x390]
mov r8, r14
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 rdi, qword [rsp + 0x30]
lea rcx, [rbp - 0x80]
mov r8, rdi
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]
test r14, r14
je 0x14004c6a6
mov rcx, r14
call fcn.140069370
test rdi, rdi
je 0x14004c6b3
mov rcx, rdi
call fcn.140069370
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 r14d, eax
test edi, edi
je 0x14004c764
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 0x14004c894
lea rax, [rbp - 0x80]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], si
jne 0x14004c770
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 0x14004c7fe
mov esi, dword [rsp + 0x70]
mov eax, esi
shr eax, 0xa
test al, 1
je 0x14004c7f3
mov eax, dword [rsp + 0x74]
cmp eax, 0xa000000c
jne 0x14004c7e5
mov esi, 4
jmp 0x14004c817
cmp eax, 0xa0000003
jne 0x14004c7f3
mov esi, 0xa
jmp 0x14004c817
shr esi, 4
and esi, 1
add esi, 2
jmp 0x14004c817
sub eax, 2
je 0x14004c812
sub eax, 1
je 0x14004c812
sub eax, 0x32
je 0x14004c812
cmp eax, 0x46
jne 0x14004c817
mov esi, 1
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x14004c859
mov rcx, qword [rsp + 0x40]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004c854
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004c933
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 0x14004c8f9
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, 0xe
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 r14, qword [rsp + 0x8b0]
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.1400625f0
add rsp, 0x8b8
pop rbx
pop rbp
ret
mov r9d, r14d
lea rcx, str.InstallItem__s__s_copy_failed__error_code__d._n
call fcn.14005cb30
mov rcx, qword [rbx]
mov edx, 0xf
mov rax, qword [rcx + 0x78]
mov rcx, rbx
call qword [0x1400926f0]
mov eax, 1
jmp 0x14004c8c8
mov edx, 0xb
call qword [0x1400926f0]
xor eax, eax
jmp 0x14004c8e0
call fcn.1400695b8
int3