Function at 0x140004e44
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 - 0x9b0]
sub rsp, 0xab0
mov rax, qword [0x14002c008]
xor rax, rsp
mov qword [rbp + 0x9a0], rax
mov r15, rdx
mov r13d, ecx
cmp ecx, 3
jge 0x140004ec5
mov eax, dword [0x14002def4]
mov ebx, 1
test bl, al
jne 0x140004eab
or eax, ebx
lea rcx, [0x14001da60]
xor edi, edi
mov dword [0x14002def4], eax
mov qword [0x14002df30], rdi
call fcn.1400075b4
lea rdx, str.Not_enough_command_line_arguments_to_execute_a_service_command
lea rcx, [0x14002df30]
call fcn.140007010
xor eax, eax
jmp 0x140005353
lea rax, [0x140027638]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x30], rax
call qword [sym.imp.ole32.dll_CoCreateGuid]
xor edi, edi
test eax, eax
js 0x140004ef2
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
mov eax, dword [0x14002def4]
lea rsi, [0x14001da60]
mov ebx, 1
test bl, al
jne 0x140004f1f
or eax, ebx
mov qword [0x14002df30], rdi
mov rcx, rsi
mov dword [0x14002def4], eax
call fcn.1400075b4
mov r9, qword [rsp + 0x30]
lea r14, [0x14002df30]
mov r8, qword [r15 + 0x10]
lea rdx, str.Executing_service_command__ls__ID:__ls
mov rcx, r14
call fcn.140006fb8
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 0x1400052d4
mov r12d, 0x20a
lea rcx, [rbp + 0x370]
mov r8d, r12d
xor edx, edx
call fcn.140008490
lea rdx, [r15 + 0x18]
lea ecx, [r13 - 3]
lea r8, [rbp + 0x370]
call fcn.140003d50
test eax, eax
jne 0x14000500a
mov eax, dword [0x14002def4]
test bl, al
jne 0x140004fb5
or eax, ebx
mov qword [0x14002df30], rdi
mov rcx, rsi
mov dword [0x14002def4], eax
call fcn.1400075b4
lea rdx, str.Could_not_get_the_installation_directory
mov rcx, r14
call fcn.140007010
mov rcx, qword [r15 + 8]
mov edx, 0x21
call fcn.1400069c8
test eax, eax
jne 0x140004ebe
mov eax, dword [0x14002def4]
test bl, al
jne 0x140004ffb
or eax, ebx
mov qword [0x14002df30], rdi
mov rcx, rsi
mov dword [0x14002def4], eax
call fcn.1400075b4
lea rdx, str.Could_not_write_update.status_for_GetInstallationDir_failure.
mov rcx, r14
jmp 0x140004eb9
mov r8, r12
lea rcx, [rbp + 0x160]
xor edx, edx
call fcn.140008490
mov r8d, 0x104
lea rdx, [rbp + 0x370]
lea rcx, [rbp + 0x160]
call fcn.14000903c
lea rdx, str.updater.exe
lea rcx, [rbp + 0x160]
call fcn.140006994
test eax, eax
jne 0x14000507b
mov eax, dword [0x14002def4]
test bl, al
jne 0x14000506c
or eax, ebx
mov qword [0x14002df30], rdi
mov rcx, rsi
mov dword [0x14002def4], eax
call fcn.1400075b4
lea rdx, str.Install_directory_updater_could_not_be_determined.
mov rcx, r14
call fcn.140007010
mov r8, qword [r15 + 0x28]
lea rdx, [rbp + 0x370]
lea rcx, [rbp + 0x160]
call fcn.140004274
xor edx, edx
movzx r12d, al
mov r8d, 0x20a
lea rcx, [rsp + 0x50]
call fcn.140008490
test r12d, r12d
je 0x14000521d
lea rcx, [rsp + 0x50]
call fcn.140004bdc
mov r12d, eax
test eax, eax
je 0x14000521d
mov eax, dword [0x14002def4]
test bl, al
jne 0x1400050e7
or eax, ebx
mov qword [0x14002df30], rdi
mov rcx, rsi
mov dword [0x14002def4], eax
call fcn.1400075b4
lea r9, [rsp + 0x50]
mov rcx, r14
lea r8, [rbp + 0x160]
lea rdx, str.Passed_in_path:__ls__Using_this_path_for_updating:__ls.
call fcn.140006fb8
lea rcx, [rsp + 0x50]
call fcn.140004cfc
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov r12d, eax
test eax, eax
je 0x14000521d
lea rax, [rsp + 0x50]
xor edx, edx
mov r8d, 0x20a
mov qword [r15 + 0x18], rax
lea rcx, [rbp + 0x790]
call fcn.140008490
xor edx, edx
lea rcx, [rbp + 0x580]
mov r8d, 0x20a
call fcn.140008490
lea r8, str.updater.ini
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x580]
call fcn.140006690
test eax, eax
je 0x1400051fe
lea r8, str.updater.ini
lea rdx, [rbp + 0x160]
lea rcx, [rbp + 0x790]
call fcn.140006690
test eax, eax
je 0x1400051fe
xor r8d, r8d
lea rdx, [rbp + 0x580]
lea rcx, [rbp + 0x790]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1400051fe
mov eax, dword [0x14002def4]
test bl, al
jne 0x1400051d7
or eax, ebx
mov qword [0x14002df30], rdi
mov rcx, rsi
mov dword [0x14002def4], eax
call fcn.1400075b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, [rbp + 0x580]
mov rcx, r14
lea r8, [rbp + 0x790]
mov dword [rsp + 0x20], eax
lea rdx, str.Could_not_copy_updater.ini_from:__ls_to__ls.____d_
call fcn.140007010
lea ecx, [r13 - 3]
lea rdx, [r15 + 0x18]
call fcn.1400047f4
lea rcx, [rsp + 0x50]
mov r12d, eax
call fcn.140004cfc
jmp 0x14000529e
mov eax, dword [0x14002def4]
test bl, al
jne 0x14000523e
or eax, ebx
mov qword [0x14002df30], rdi
mov rcx, rsi
mov dword [0x14002def4], eax
call fcn.1400075b4
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.140007010
cmp r13d, 4
jle 0x14000529e
mov rcx, qword [r15 + 0x20]
mov edx, 0x31
call fcn.1400069c8
test eax, eax
jne 0x14000529e
mov eax, dword [0x14002def4]
test bl, al
jne 0x14000528f
or eax, ebx
mov qword [0x14002df30], rdi
mov rcx, rsi
mov dword [0x14002def4], eax
call fcn.1400075b4
lea rdx, str.Could_not_write_update.status_could_not_copy_updater_error
mov rcx, r14
call fcn.140007010
mov eax, dword [0x14002def4]
test bl, al
jne 0x1400052bf
or eax, ebx
mov qword [0x14002df30], rdi
mov rcx, rsi
mov dword [0x14002def4], eax
call fcn.1400075b4
mov r8, qword [r15 + 0x10]
lea rdx, str.Service_command__ls_complete.
mov rcx, r14
call fcn.140006fb8
jmp 0x140005308
mov eax, dword [0x14002def4]
test bl, al
jne 0x1400052f5
or eax, ebx
mov qword [0x14002df30], rdi
mov rcx, rsi
mov dword [0x14002def4], eax
call fcn.1400075b4
mov r8, qword [r15 + 0x10]
lea rdx, str.Service_command_not_recognized:__ls.
mov rcx, r14
call fcn.140007010
mov eax, dword [0x14002def4]
test bl, al
jne 0x140005329
or eax, ebx
mov qword [0x14002df30], rdi
mov rcx, rsi
mov dword [0x14002def4], eax
call fcn.1400075b4
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.140006fb8
mov eax, ebx
mov rcx, qword [rbp + 0x9a0]
xor rcx, rsp
call fcn.140007300
mov rbx, qword [rsp + 0xb00]
add rsp, 0xab0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret