Function at 0x180001850
Capabilities:
Copy file

Disassembly:
push rbp
push r14
lea rbp, [rsp - 0x3fa8]
mov eax, 0x40a8
call section..text
sub rsp, rax
mov rax, qword [0x180045020]
xor rax, rsp
mov qword [rbp + 0x3f80], rax
lea rdx, str.InstallBranding:_Handling_branding_file_...
mov r14d, ecx
call fcn.1800040a0
mov r9d, 0x1004
lea r8, [rsp + 0x60]
lea rdx, str.SOURCEDIR
mov ecx, r14d
call fcn.180004900
test eax, eax
jne 0x180001c6c
mov r9d, 0x1003
lea r8, [rbp + 0x1f70]
lea rdx, str.CustomActionData
mov ecx, r14d
call fcn.180004900
test eax, eax
jne 0x180001c6c
mov qword [rsp + 0x40c8], rbx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x40d0], rsi
lea rbx, str..custom
mov qword [rsp + 0x40d8], rdi
mov rdi, rbx
mov qword [rsp + 0x40a0], r12
mov qword [rsp + 0x4098], r13
mov qword [rsp + 0x4090], r15
call fcn.18000ae70
mov r13d, 1
mov rsi, rax
cmp rax, r13
jbe 0x180001937
movzx eax, word [rsp + rax*2 + 0x5e]
cmp ax, 0x5c
je 0x180001932
cmp ax, 0x2f
jne 0x180001937
xor r15d, r15d
jmp 0x180001940
mov r15, r13
nop word [rax + rax]
movzx eax, word [rdi]
cmp ax, 0x5c
je 0x18000194f
cmp ax, 0x2f
jne 0x180001955
add rdi, 2
jmp 0x180001940
mov rcx, rdi
call fcn.18000ae70
lea rcx, [rsi*2 + 1]
mov r12, rax
add rcx, rax
cmp rcx, 0x1003
jae 0x180001c37
mov eax, 0x5c
test r15, r15
je 0x18000198a
mov word [rsp + rsi*2 + 0x60], ax
inc rsi
lea rcx, [rsp + 0x60]
mov rdx, rdi
lea rcx, [rcx + rsi*2]
lea r8, [r12*2 + 2]
call sym.VBoxInstallHelper.dll_nocrt_memcpy
lea rax, [r12 + rsi]
mov qword [rsp + 0x28], 2
xor r12d, r12d
lea r9, [rsp + 0x60]
mov word [rsp + rax*2 + 0x62], r12w
lea r8, [rbp + 0x1f70]
lea rax, [rbp + 0x1f70]
mov dword [rsp + 0x52], r12d
mov qword [rsp + 0x38], rax
lea rdx, str.CopyDir:_pwszzDstDir_ls__pwszzSrcDir_ls
lea rax, [rsp + 0x60]
mov word [rsp + 0x56], r12w
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
mov eax, 0x614
mov qword [rsp + 0x20], r12
mov ecx, r14d
mov word [rsp + 0x40], ax
movdqu xmmword [rsp + 0x42], xmm0
call fcn.1800040a0
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x180001c1e
lea rcx, [rbp + 0x1f70]
call fcn.18000ae70
cmp rax, 0x1004
jae 0x180001c37
lea r8, [rax*2 + 2]
lea rdx, [rbp + 0x1f70]
lea rcx, [rsp + 0x60]
call sym.VBoxInstallHelper.dll_nocrt_memcpy
lea rcx, [rsp + 0x60]
call fcn.18000ae70
mov rdi, rax
cmp rax, r13
jbe 0x180001a79
movzx eax, word [rsp + rax*2 + 0x5e]
cmp ax, 0x5c
je 0x180001a74
cmp ax, 0x2f
jne 0x180001a79
mov r15, r12
jmp 0x180001a80
mov r15, r13
nop dword [rax]
movzx eax, word [rbx]
cmp ax, 0x5c
je 0x180001a8f
cmp ax, 0x2f
jne 0x180001a95
add rbx, 2
jmp 0x180001a80
mov rcx, rbx
call fcn.18000ae70
lea rcx, [rdi*2 + 1]
mov rsi, rax
add rcx, rax
cmp rcx, 0x1004
jae 0x180001af0
test r15, r15
mov r15d, 0x5c
je 0x180001ac8
mov word [rsp + rdi*2 + 0x60], r15w
inc rdi
lea rcx, [rsp + 0x60]
mov rdx, rbx
lea rcx, [rcx + rdi*2]
lea r8, [rax*2 + 2]
call sym.VBoxInstallHelper.dll_nocrt_memcpy
lea rax, [rsi + rdi]
mov word [rsp + rax*2 + 0x62], r12w
mov eax, r12d
jmp 0x180001af9
mov eax, 0x6f
lea r15d, [rax - 0x13]
test eax, eax
jne 0x180001c3c
lea rcx, [rbp + 0x1f70]
lea rbx, str.custom
call fcn.18000ae70
mov rdi, rax
cmp rax, r13
jbe 0x180001b33
movzx eax, word [rbp + rax*2 + 0x1f6e]
cmp ax, 0x5c
je 0x180001b30
cmp ax, 0x2f
jne 0x180001b33
mov r13, r12
movzx eax, word [rbx]
cmp ax, 0x5c
je 0x180001b42
cmp ax, 0x2f
jne 0x180001b48
add rbx, 2
jmp 0x180001b33
mov rcx, rbx
call fcn.18000ae70
lea rcx, [rdi*2 + 1]
mov rsi, rax
add rcx, rax
cmp rcx, 0x1004
jae 0x180001c37
test r13, r13
je 0x180001b7c
mov word [rbp + rdi*2 + 0x1f70], r15w
inc rdi
lea rcx, [rbp + 0x1f70]
mov rdx, rbx
lea rcx, [rcx + rdi*2]
lea r8, [rax*2 + 2]
call sym.VBoxInstallHelper.dll_nocrt_memcpy
lea rax, [rsi + rdi]
mov qword [rsp + 0x28], 4
mov word [rbp + rax*2 + 0x1f72], r12w
lea r9, [rsp + 0x60]
lea rax, [rbp + 0x1f70]
mov dword [rsp + 0x52], r12d
mov qword [rsp + 0x38], rax
lea r8, [rbp + 0x1f70]
lea rax, [rsp + 0x60]
mov word [rsp + 0x56], r12w
mov qword [rsp + 0x30], rax
lea rdx, str.RenameDir:_pwszzDstDir_ls__pwszzSrcDir_ls
mov eax, 0x614
mov qword [rsp + 0x20], r12
xorps xmm0, xmm0
mov word [rsp + 0x40], ax
mov ecx, r14d
movdqu xmmword [rsp + 0x42], xmm0
call fcn.1800040a0
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x180001c15
mov eax, r12d
jmp 0x180001c3c
lea rdx, str.RenameDir:_Rename_operation_returned_status__x
jmp 0x180001c25
lea rdx, str.CopyDir:_Copy_operation_returned_status__x
mov r8d, eax
mov ecx, r14d
call fcn.1800040a0
mov eax, 0x1f
jmp 0x180001c3c
mov eax, 0x6f
mov r13, qword [rsp + 0x4098]
mov r12, qword [rsp + 0x40a0]
mov rdi, qword [rsp + 0x40d8]
mov rsi, qword [rsp + 0x40d0]
mov rbx, qword [rsp + 0x40c8]
mov r15, qword [rsp + 0x4090]
mov r8d, eax
lea rdx, str.InstallBranding:_Handling_done.__rc_u__ignored__
mov ecx, r14d
call fcn.1800040a0
xor eax, eax
mov rcx, qword [rbp + 0x3f80]
xor rcx, rsp
call fcn.180001140
add rsp, 0x40a8
pop r14
pop rbp
ret