Function at 0x140004f14
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x590]
sub rsp, 0x690
mov rax, qword [0x14002c008]
xor rax, rsp
mov qword [rbp + 0x580], rax
mov r15, rdx
mov r13d, ecx
cmp ecx, 3
jge 0x140004f95
mov eax, dword [0x14002df0c]
mov ebx, 1
test bl, al
jne 0x140004f7b
or eax, ebx
lea rcx, [0x14001dc10]
xor edi, edi
mov dword [0x14002df0c], eax
mov qword [0x14002df50], rdi
call fcn.140007614
lea rdx, str.Not_enough_command_line_arguments_to_execute_a_service_command
lea rcx, [0x14002df50]
call fcn.140007060
xor eax, eax
jmp 0x1400052e8
lea rax, [0x140027708]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rax
call qword [sym.imp.ole32.dll_CoCreateGuid]
xor edi, edi
test eax, eax
js 0x140004fc2
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
mov eax, dword [0x14002df0c]
lea rsi, [0x14001dc10]
mov ebx, 1
test bl, al
jne 0x140004fef
or eax, ebx
mov qword [0x14002df50], rdi
mov rcx, rsi
mov dword [0x14002df0c], eax
call fcn.140007614
mov r9, qword [rsp + 0x30]
lea r14, [0x14002df50]
mov r8, qword [r15 + 0x10]
lea rdx, str.Executing_service_command__ls__ID:__ls
mov rcx, r14
call fcn.140007008
lea rcx, [rsp + 0x30]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
mov rcx, qword [r15 + 0x10]
lea rdx, str.software_update
mov r12d, edi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140005269
mov rax, qword [r15 + 0x18]
lea rcx, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x38], rax
mov r8d, 0x20a
call fcn.140008760
lea rcx, [rsp + 0x50]
call fcn.140004cac
mov r12d, eax
test eax, eax
je 0x1400051b2
mov eax, dword [0x14002df0c]
test bl, al
jne 0x140005086
or eax, ebx
mov qword [0x14002df50], rdi
mov rcx, rsi
mov dword [0x14002df0c], eax
call fcn.140007614
mov r8, qword [rsp + 0x38]
lea r9, [rsp + 0x50]
lea rdx, str.Passed_in_path:__ls__Using_this_path_for_updating:__ls.
mov rcx, r14
call fcn.140007008
lea rcx, [rsp + 0x50]
call fcn.140004dcc
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x50]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov r12d, eax
test eax, eax
je 0x1400051b2
lea rax, [rsp + 0x50]
xor edx, edx
mov r8d, 0x20a
mov qword [r15 + 0x18], rax
lea rcx, [rbp + 0x370]
call fcn.140008760
xor edx, edx
lea rcx, [rbp + 0x160]
mov r8d, 0x20a
call fcn.140008760
lea r8, str.updater.ini
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x160]
call fcn.140006624
test eax, eax
je 0x140005193
mov rdx, qword [rsp + 0x38]
lea r8, str.updater.ini
lea rcx, [rbp + 0x370]
call fcn.140006624
test eax, eax
je 0x140005193
xor r8d, r8d
lea rdx, [rbp + 0x160]
lea rcx, [rbp + 0x370]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x140005193
mov eax, dword [0x14002df0c]
test bl, al
jne 0x14000516c
or eax, ebx
mov qword [0x14002df50], rdi
mov rcx, rsi
mov dword [0x14002df0c], eax
call fcn.140007614
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, [rbp + 0x160]
mov rcx, r14
lea r8, [rbp + 0x370]
mov dword [rsp + 0x20], eax
lea rdx, str.Could_not_copy_updater.ini_from:__ls_to__ls.____d_
call fcn.140007060
lea ecx, [r13 - 3]
lea rdx, [r15 + 0x18]
call fcn.140004458
lea rcx, [rsp + 0x50]
mov r12d, eax
call fcn.140004dcc
jmp 0x140005233
mov eax, dword [0x14002df0c]
test bl, al
jne 0x1400051d3
or eax, ebx
mov qword [0x14002df50], rdi
mov rcx, rsi
mov dword [0x14002df0c], eax
call fcn.140007614
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Could_not_copy_path_to_secure_location.____d_
mov rcx, r14
mov r8d, eax
call fcn.140007060
cmp r13d, 4
jle 0x140005233
mov rcx, qword [r15 + 0x20]
mov edx, 0x31
call fcn.14000695c
test eax, eax
jne 0x140005233
mov eax, dword [0x14002df0c]
test bl, al
jne 0x140005224
or eax, ebx
mov qword [0x14002df50], rdi
mov rcx, rsi
mov dword [0x14002df0c], eax
call fcn.140007614
lea rdx, str.Could_not_write_update.status_could_not_copy_updater_error
mov rcx, r14
call fcn.140007060
mov eax, dword [0x14002df0c]
test bl, al
jne 0x140005254
or eax, ebx
mov qword [0x14002df50], rdi
mov rcx, rsi
mov dword [0x14002df0c], eax
call fcn.140007614
mov r8, qword [r15 + 0x10]
lea rdx, str.Service_command__ls_complete.
mov rcx, r14
call fcn.140007008
jmp 0x14000529d
mov eax, dword [0x14002df0c]
test bl, al
jne 0x14000528a
or eax, ebx
mov qword [0x14002df50], rdi
mov rcx, rsi
mov dword [0x14002df0c], eax
call fcn.140007614
mov r8, qword [r15 + 0x10]
lea rdx, str.Service_command_not_recognized:__ls.
mov rcx, r14
call fcn.140007060
mov eax, dword [0x14002df0c]
test bl, al
jne 0x1400052be
or eax, ebx
mov qword [0x14002df50], rdi
mov rcx, rsi
mov dword [0x14002df0c], eax
call fcn.140007614
mov r8, qword [r15 + 8]
lea rax, str.Success
test r12d, r12d
lea r9, str.Failure
lea rdx, str.service_command__ls_complete_with_result:__ls.
mov rcx, r14
cmovne r9, rax
call fcn.140007008
mov eax, ebx
mov rcx, qword [rbp + 0x580]
xor rcx, rsp
call fcn.140007360
mov rbx, qword [rsp + 0x6e0]
add rsp, 0x690
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret