Function at 0x140002c90
Capabilities:
Copy file
Create service
Delete file
Modify service
Move file
Set registry value
Stop service

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4c8
mov ebp, ecx
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x4c0], rax
xor ecx, ecx
xor edx, edx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
je 0x140002d74
mov r15, rax
lea rsi, [rsp + 0xa0]
xor ecx, ecx
mov rdx, rsi
mov r8d, 0x105
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140002dbc
lea rdx, str.MozillaMaintenance
mov rcx, r15
mov r8d, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
je 0x140002e04
test rbx, rbx
jne 0x140002e04
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140003bd5
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140039fa8]
lea rdx, str.Could_not_open_service.____d_
mov r8d, eax
call fcn.14000ccd0
xor edi, edi
test rbx, rbx
jne 0x140003e99
jmp 0x140003ea2
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140003b53
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140039fa8]
lea rdx, str.Could_not_open_service_manager.____d_
mov r8d, eax
call fcn.14000ccd0
xor edi, edi
jmp 0x140003eab
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140003b94
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140039fa8]
lea rdx, str.Could_not_obtain_module_filename_when_attempting_to_install_service.____d_
mov r8d, eax
call fcn.14000ccd0
xor edi, edi
jmp 0x140003ea2
test rbx, rbx
je 0x140002f34
mov qword [rsp + 0x2b0], 0
lea rdx, [rsp + 0x2b0]
mov rcx, rbx
call fcn.140004690
mov esi, eax
mov rcx, qword [rsp + 0x2b0]
test rcx, rcx
je 0x140002e3e
call qword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x140002e83
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140003c16
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140039fa8]
lea rdx, str.Could_not_reset_security_ACE_on_service_handle._It_might_not_be_possible_to_start_the_service._This_error_should_never_happen.____d_
mov r8d, eax
call fcn.14000ccd0
lea r9, [rsp + 0x94]
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x140002eac
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400034d1
mov esi, dword [rsp + 0x94]
mov rcx, rsi
call fcn.14000e39c
mov r14, rax
lea r9, [rsp + 0x94]
mov rcx, rbx
mov rdx, rax
mov r8d, esi
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x140003032
cmp byte [0x14003a1c8], 0
jne 0x1400030bb
mov rdi, qword [r14 + 0x10]
mov rcx, rdi
call fcn.1400174c8
cmp rax, 3
jb 0x140003078
mov rsi, rax
lea rdx, str.maintenanceservice_tmp.exe
mov rcx, rdi
call fcn.140010268
test rax, rax
jne 0x140003078
cmp word [rdi], 0x22
jne 0x140003078
cmp word [rdi + rsi*2 - 2], 0x22
sete sil
jmp 0x14000307a
mov edi, 1
test ebp, ebp
je 0x140003e94
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x10
lea rdx, str.MozillaMaintenance
lea r8, str.Mozilla_Maintenance_Service
mov rcx, r15
mov r9d, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rbx, rax
test rax, rax
je 0x14000354c
mov qword [rsp + 0x2b0], 0
lea rdx, [rsp + 0x2b0]
mov rcx, rbx
call fcn.140004690
mov esi, eax
mov rcx, qword [rsp + 0x2b0]
test rcx, rcx
je 0x140002fd7
call qword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x14000301c
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140003d1a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140039fa8]
lea rdx, str.Could_not_set_security_ACE_on_service_handle__the_service_will_not_be_able_to_be_started_from_unelevated_processes._This_error_should_never_happen.____d_
mov r8d, eax
call fcn.14000ccd0
mov rcx, rbx
call fcn.140002780
test rbx, rbx
jne 0x140003e99
jmp 0x140003ea2
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140003c57
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140039fa8]
lea rdx, str.Could_open_service_but_could_not_query_service_config.____d_
mov r8d, eax
call fcn.14000ccd0
jmp 0x140003e8a
xor esi, esi
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140003c98
lea rcx, [0x140039fa8]
test sil, sil
je 0x14000358a
lea rdx, str.The_MozillaMaintenance_service_path_is_correct.
call fcn.14000cc50
mov rcx, qword [r14 + 0x10]
call qword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
mov rcx, qword [r14 + 0x10]
lea rax, [rsp + 0x84]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x90]
lea r8, [rsp + 0x8c]
lea r9, [rsp + 0x88]
call fcn.1400042b0
mov esi, eax
lea rax, [rsp + 0x74]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0xa0]
lea rdx, [rsp + 0x80]
lea r8, [rsp + 0x7c]
lea r9, [rsp + 0x78]
call fcn.1400042b0
test eax, eax
je 0x14000350f
cmp ebp, 2
je 0x140003143
test esi, esi
je 0x140003143
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x90], eax
jae 0x1400036ac
mov rcx, rbx
call fcn.140002780
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor ecx, ecx
xor edx, edx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
je 0x140003666
mov rdi, rax
lea rdx, str.MozillaMaintenance
mov rcx, rax
mov r8d, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140003e1e
test rbx, rbx
je 0x140003e63
lea rcx, [0x140039fa8]
lea rdx, str.Sending_stop_request...
call fcn.14000cc50
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r8, [rsp + 0x2b0]
mov rcx, rbx
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x14000323a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x14000323a
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140004012
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140039fa8]
lea rdx, str.Error_sending_stop_request.____d_
mov r8d, eax
call fcn.14000ccd0
mov rsi, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call rsi
mov rcx, rbx
call rsi
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140003ecd
lea rcx, [0x140039fa8]
lea rdx, str.Waiting_for_service_stop...
call fcn.14000cc50
lea rcx, str.MozillaMaintenance
mov edx, 0x1e
call fcn.14000d9c0
mov esi, eax
lea rcx, [0x140031152]
mov edx, 0x1e
call fcn.14000ddb0
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140003f0e
lea rcx, [0x140039fa8]
lea rdx, str.Done_waiting_for_service_stop__last_service_state:__d
mov r8d, esi
call fcn.14000cc50
cmp esi, 1
jne 0x140003e88
mov rdx, qword [r14 + 0x10]
lea rcx, [rsp + 0xa0]
call fcn.140017474
test eax, eax
je 0x140003705
mov rdx, qword [r14 + 0x10]
lea rcx, [rsp + 0xa0]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x140003751
xorps xmm0, xmm0
movaps xmmword [rsp + 0x3a0], xmm0
movaps xmmword [rsp + 0x390], xmm0
movaps xmmword [rsp + 0x380], xmm0
movaps xmmword [rsp + 0x370], xmm0
movaps xmmword [rsp + 0x360], xmm0
movaps xmmword [rsp + 0x350], xmm0
movaps xmmword [rsp + 0x340], xmm0
movaps xmmword [rsp + 0x330], xmm0
movaps xmmword [rsp + 0x320], xmm0
movaps xmmword [rsp + 0x310], xmm0
movaps xmmword [rsp + 0x300], xmm0
movaps xmmword [rsp + 0x2f0], xmm0
movaps xmmword [rsp + 0x2e0], xmm0
movaps xmmword [rsp + 0x2d0], xmm0
movaps xmmword [rsp + 0x2c0], xmm0
movaps xmmword [rsp + 0x2b0], xmm0
mov eax, dword [rsp + 0x74]
mov ecx, dword [rsp + 0x78]
mov edx, dword [rsp + 0x7c]
mov r9d, dword [rsp + 0x80]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
lea r8, str._d._d._d._d
lea rsi, [rsp + 0x2b0]
mov edx, 0x80
mov rcx, rsi
call fcn.140001e20
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionUninstallMozillaMaintenanceService
mov rcx, 0xffffffff80000002
xor r8d, r8d
mov r9d, 0x20206
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140003457
mov rcx, rsi
call fcn.1400174c8
lea eax, [rax + rax]
add eax, 2
mov rcx, qword [rsp + 0x98]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
lea rdx, str.DisplayVersion
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x14000348f
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140004094
lea rcx, [0x140039fa8]
lea rdx, str.The_uninstaller_version_string_could_not_be_updated.
call fcn.14000cc50
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140003fd1
lea rcx, [0x140039fa8]
lea rdx, str.The_new_service_binary_was_copied_in.
call fcn.14000cc50
mov edi, 1
jmp 0x140003ad5
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140003cd9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140039fa8]
lea rdx, str.Could_not_determine_buffer_size_for_query_service_config.____d_
jmp 0x140002d5c
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140003d5b
lea rcx, [0x140039fa8]
lea rdx, str.Could_not_obtain_version_number_from_new_path
call fcn.14000ccd0
jmp 0x140003e8a
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140003d9c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140039fa8]
lea rdx, str.Could_not_create_Windows_service._This_error_should_never_happen_since_a_service_install_should_only_be_called_when_elevated.____d_
jmp 0x140002d5c
lea rdx, str.The_MozillaMaintenance_path_is_NOT_correct._It_was:__ls
mov r8, rdi
call fcn.14000cc50
lea rsi, [rsp + 0x2b0]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.14000ff90
mov r8d, 0x104
mov rcx, rsi
mov rdx, rdi
call fcn.140017990
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x14000387b
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
lea rdi, str.Couldnt_remove_file_spec.____d_
cmp eax, dword [rcx + 4]
jg 0x1400039d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140039fa8]
mov rdx, rdi
mov r8d, eax
call fcn.14000ccd0
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140003ddd
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140039fa8]
lea rdx, str.Could_not_fix_service_path._This_should_never_happen.____d_
mov r8d, eax
call fcn.14000ccd0
jmp 0x1400036fb
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140003f4f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140039fa8]
lea rdx, str.Could_not_open_service_manager.____d_
mov r8d, eax
call fcn.14000ccd0
jmp 0x140003e88
jne 0x1400036e5
mov eax, dword [rsp + 0x7c]
cmp dword [rsp + 0x8c], eax
jb 0x140003143
jne 0x1400036e5
mov eax, dword [rsp + 0x78]
cmp dword [rsp + 0x88], eax
jb 0x140003143
jne 0x1400036e5
mov eax, dword [rsp + 0x84]
cmp eax, dword [rsp + 0x74]
jb 0x140003143
lea rcx, [rsp + 0xa0]
xor edx, edx
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, 1
jmp 0x140003e8c
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140004053
lea rcx, [0x140039fa8]
lea rdx, str.File_is_already_in_the_correct_location__no_action_needed_for_upgrade.__The_path_is:___ls_
lea r8, [rsp + 0xa0]
call fcn.14000cc50
mov edi, 1
xor ebx, ebx
jmp 0x140003e8c
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400040d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140039fa8]
lea rdx, str.Could_not_overwrite_old_service_binary_file._This_should_never_happen__but_if_it_does_the_next_upgrade_will_fix_it__the_service_is_not_a_critical_component_that_needs_to_be_installed_for_upgrades_to_work.____d_
mov r8d, eax
call fcn.14000ccd0
mov rsi, qword [r14 + 0x10]
mov rcx, rsi
call fcn.1400174c8
cmp rax, 4
jb 0x14000396e
mov rdi, rax
add rax, 1
add rax, rax
mov rcx, 0xffffffffffffffff
cmovae rcx, rax
call fcn.14000e39c
mov rbx, rax
lea r8, [rdi + rdi]
add r8, 2
mov rcx, rax
xor edx, edx
call fcn.14000ff90
mov rcx, rbx
mov rdx, rsi
mov r8, rdi
call fcn.140017990
lea rcx, [rbx + rdi*2]
add rcx, 0xfffffffffffffffa
lea rdx, [0x1400312f4]
mov r8d, 3
call fcn.140017990
mov rcx, qword [r14 + 0x10]
mov rdx, rbx
mov r8d, 9
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x140003a1a
mov rdx, qword [r14 + 0x10]
lea rcx, [rsp + 0xa0]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400041e8
lea rcx, [0x140039fa8]
test esi, esi
je 0x140003a67
lea rdx, str.The_new_service_binary_was_copied_in_by_first_moving_the_old_one_out_of_the_way.
call fcn.14000cc50
mov edi, 1
jmp 0x140003a75
lea rdx, [0x140031152]
lea rsi, [rsp + 0x2b0]
mov rcx, rsi
call fcn.14000e140
test eax, eax
je 0x1400039ad
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], rsi
mov rcx, rbx
mov edx, 0xffffffff
mov r8d, 0xffffffff
mov r9d, 0xffffffff
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov esi, eax
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140004116
test esi, esi
je 0x14000415a
lea rcx, [0x140039fa8]
lea rdx, str.Fixed_service_path_to:__ls.
lea r8, [rsp + 0x2b0]
call fcn.14000cc50
mov byte [0x14003a1c8], 1
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400041a7
lea rcx, [0x140039fa8]
lea rdx, str.Restarting_install_action:__d
mov r8d, ebp
call fcn.14000cc50
mov ecx, ebp
call fcn.140002c90
mov edi, eax
jmp 0x140003e8c
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140004166
lea rcx, [0x140039fa8]
lea rdx, str.Service_binary_path_was_less_than_3__service_will_not_be_updated.__This_should_never_happen.
call fcn.14000ccd0
xor edi, edi
jmp 0x140003ad5
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
lea rdi, str.Couldnt_append_file_spec.____d_
cmp eax, dword [rcx + 4]
jle 0x140003608
lea rcx, [0x14003a1b8]
call fcn.14000e510
cmp dword [0x14003a1b8], 0xffffffff
jne 0x140003608
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e6c8
lea rcx, [0x14003a1b8]
call fcn.14000e578
jmp 0x140003608
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000426a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [r14 + 0x10]
mov dword [rsp + 0x20], eax
lea rcx, [0x140039fa8]
lea rdx, str.Could_not_move_old_service_file_out_of_the_way_from:___ls__to___ls_._Service_will_not_be_upgraded.____d_
mov r9, rbx
call fcn.14000ccd0
xor edi, edi
jmp 0x140003acd
lea rdx, str.The_new_service_binary_could_not_be_copied_in._The_service_will_not_be_upgraded.
call fcn.14000ccd0
xor edi, edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140004229
lea rcx, [0x140039fa8]
test esi, esi
je 0x140003ac1
lea rdx, str.The_old_temp_service_path_was_deleted:__ls.
mov r8, rbx
call fcn.14000cc50
jmp 0x140003acd
lea rdx, str.The_old_temp_service_path_was_not_deleted.
call fcn.14000ccd0
mov rcx, rbx
call fcn.14000e3a4
lea rcx, [rsp + 0xa0]
xor edx, edx
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, eax
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140003f90
lea rcx, [0x140039fa8]
test esi, esi
je 0x140003b38
lea rdx, str.Deleting_the_old_file_path_on_the_next_reboot:__ls.
lea r8, [rsp + 0xa0]
call fcn.14000cc50
xor ebx, ebx
jmp 0x140003e8c
lea rdx, str.Call_to_delete_the_old_file_path_failed:__ls.
lea r8, [rsp + 0xa0]
call fcn.14000ccd0
xor ebx, ebx
jmp 0x140003e8c
lea rcx, [0x14003a1b8]
call fcn.14000e510
cmp dword [0x14003a1b8], 0xffffffff
jne 0x140002d99
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e6c8
lea rcx, [0x14003a1b8]
call fcn.14000e578
jmp 0x140002d99
lea rcx, [0x14003a1b8]
call fcn.14000e510
cmp dword [0x14003a1b8], 0xffffffff
jne 0x140002de1
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e6c8
lea rcx, [0x14003a1b8]
call fcn.14000e578
jmp 0x140002de1
lea rcx, [0x14003a1b8]
call fcn.14000e510
cmp dword [0x14003a1b8], 0xffffffff
jne 0x140002d48
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e6c8
lea rcx, [0x14003a1b8]
call fcn.14000e578
jmp 0x140002d48
lea rcx, [0x14003a1b8]
call fcn.14000e510
cmp dword [0x14003a1b8], 0xffffffff
jne 0x140002e67
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e6c8
lea rcx, [0x14003a1b8]
call fcn.14000e578
jmp 0x140002e67
lea rcx, [0x14003a1b8]
call fcn.14000e510
cmp dword [0x14003a1b8], 0xffffffff
jne 0x140003057
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e6c8
lea rcx, [0x14003a1b8]
call fcn.14000e578
jmp 0x140003057
lea rcx, [0x14003a1b8]
call fcn.14000e510
cmp dword [0x14003a1b8], 0xffffffff
jne 0x14000309f
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e6c8
lea rcx, [0x14003a1b8]
call fcn.14000e578
jmp 0x14000309f
lea rcx, [0x14003a1b8]
call fcn.14000e510
cmp dword [0x14003a1b8], 0xffffffff
jne 0x1400034f6
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e6c8
lea rcx, [0x14003a1b8]
call fcn.14000e578
jmp 0x1400034f6
lea rcx, [0x14003a1b8]
call fcn.14000e510
cmp dword [0x14003a1b8], 0xffffffff
jne 0x140003000
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e6c8
lea rcx, [0x14003a1b8]
call fcn.14000e578
jmp 0x140003000
lea rcx, [0x14003a1b8]
call fcn.14000e510
cmp dword [0x14003a1b8], 0xffffffff
jne 0x140003534
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e6c8
lea rcx, [0x14003a1b8]
call fcn.14000e578
jmp 0x140003534
lea rcx, [0x14003a1b8]
call fcn.14000e510
cmp dword [0x14003a1b8], 0xffffffff
jne 0x140003571
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e6c8
lea rcx, [0x14003a1b8]
call fcn.14000e578
jmp 0x140003571
lea rcx, [0x14003a1b8]
call fcn.14000e510
cmp dword [0x14003a1b8], 0xffffffff
jne 0x140003645
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e6c8
lea rcx, [0x14003a1b8]
call fcn.14000e578
jmp 0x140003645
lea rcx, [0x14003a1b8]
call fcn.14000e510
cmp dword [0x14003a1b8], 0xffffffff
jne 0x1400031ae
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e6c8
lea rcx, [0x14003a1b8]
call fcn.14000e578
test rbx, rbx
jne 0x1400031b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140039fa8]
lea rdx, str.Could_not_open_service.____d_
mov r8d, eax
call fcn.14000ccd0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor ebx, ebx
xor edi, edi
mov rcx, r14
call fcn.14000e3a4
test rbx, rbx
je 0x140003ea2
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x4c0]
xor rcx, rsp
call fcn.1400193c0
mov eax, edi
add rsp, 0x4c8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [0x14003a1b8]
call fcn.14000e510
cmp dword [0x14003a1b8], 0xffffffff
jne 0x140003270
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e6c8
lea rcx, [0x14003a1b8]
call fcn.14000e578
jmp 0x140003270
lea rcx, [0x14003a1b8]
call fcn.14000e510
cmp dword [0x14003a1b8], 0xffffffff
jne 0x1400032cc
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e6c8
lea rcx, [0x14003a1b8]
call fcn.14000e578
jmp 0x1400032cc
lea rcx, [0x14003a1b8]
call fcn.14000e510
cmp dword [0x14003a1b8], 0xffffffff
jne 0x14000368b
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e6c8
lea rcx, [0x14003a1b8]
call fcn.14000e578
jmp 0x14000368b
lea rcx, [0x14003a1b8]
call fcn.14000e510
cmp dword [0x14003a1b8], 0xffffffff
jne 0x140003b12
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e6c8
lea rcx, [0x14003a1b8]
call fcn.14000e578
jmp 0x140003b12
lea rcx, [0x14003a1b8]
call fcn.14000e510
cmp dword [0x14003a1b8], 0xffffffff
jne 0x1400034b4
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e6c8
lea rcx, [0x14003a1b8]
call fcn.14000e578
jmp 0x1400034b4
lea rcx, [0x14003a1b8]
call fcn.14000e510
cmp dword [0x14003a1b8], 0xffffffff
jne 0x14000321e
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e6c8
lea rcx, [0x14003a1b8]
call fcn.14000e578
jmp 0x14000321e
lea rcx, [0x14003a1b8]
call fcn.14000e510
cmp dword [0x14003a1b8], 0xffffffff
jne 0x14000372a
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e6c8
lea rcx, [0x14003a1b8]
call fcn.14000e578
jmp 0x14000372a
lea rcx, [0x14003a1b8]
call fcn.14000e510
cmp dword [0x14003a1b8], 0xffffffff
jne 0x14000347c
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e6c8
lea rcx, [0x14003a1b8]
call fcn.14000e578
jmp 0x14000347c
lea rcx, [0x14003a1b8]
call fcn.14000e510
cmp dword [0x14003a1b8], 0xffffffff
jne 0x140003776
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e6c8
lea rcx, [0x14003a1b8]
call fcn.14000e578
jmp 0x140003776
lea rcx, [0x14003a1b8]
call fcn.14000e510
cmp dword [0x14003a1b8], 0xffffffff
jne 0x1400038fb
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e6c8
lea rcx, [0x14003a1b8]
call fcn.14000e578
test esi, esi
jne 0x140003903
lea rdi, str.Could_not_fix_service_path.____d_
jmp 0x140003608
lea rcx, [0x14003a1b8]
call fcn.14000e510
cmp dword [0x14003a1b8], 0xffffffff
jne 0x140003993
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e6c8
lea rcx, [0x14003a1b8]
call fcn.14000e578
jmp 0x140003993
lea rcx, [0x14003a1b8]
call fcn.14000e510
cmp dword [0x14003a1b8], 0xffffffff
jne 0x14000394a
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e6c8
lea rcx, [0x14003a1b8]
call fcn.14000e578
jmp 0x14000394a
lea rcx, [0x14003a1b8]
call fcn.14000e510
cmp dword [0x14003a1b8], 0xffffffff
jne 0x140003856
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e6c8
lea rcx, [0x14003a1b8]
call fcn.14000e578
jmp 0x140003856
lea rcx, [0x14003a1b8]
call fcn.14000e510
cmp dword [0x14003a1b8], 0xffffffff
jne 0x140003aa5
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e6c8
lea rcx, [0x14003a1b8]
call fcn.14000e578
jmp 0x140003aa5
lea rcx, [0x14003a1b8]
call fcn.14000e510
cmp dword [0x14003a1b8], 0xffffffff
jne 0x140003a3f
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e6c8
lea rcx, [0x14003a1b8]
call fcn.14000e578
jmp 0x140003a3f