Function at 0x140002780
Capabilities:
Check if file exists
Get file attributes
Modify service

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x258
mov rbx, rcx
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x250], rax
lea rdx, [rsp + 0x40]
xor ecx, ecx
mov r8d, 0x105
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14000280a
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x14000286d
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 0x140002ab6
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140039fa8]
lea rdx, str.Could_not_remove_file_spec_when_attempting_to_modify_service_description.____d_
jmp 0x140002843
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 0x140002af7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140039fa8]
lea rdx, str.Could_not_obtain_module_filename_when_attempting_to_modify_service_description.____d_
mov r8d, eax
call fcn.14000be30
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140019770
nop
add rsp, 0x258
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rdx, str.updater.ini
lea rcx, [rsp + 0x40]
call fcn.14000d610
test eax, eax
je 0x14000291b
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140002959
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x20], 0
lea rdx, str.MozillaMaintenanceDescription
lea rcx, [rsp + 0x40]
lea r9, [rsp + 0x38]
mov r8d, 1
call fcn.14000af10
mov r12, qword [rsp + 0x38]
test eax, eax
je 0x140002997
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 0x140002b79
lea rcx, [0x140039fa8]
lea rdx, str.updater.ini_file_does_not_contain_a_maintenance_service_description.
call fcn.14000be30
test r12, r12
jne 0x140002c6c
jmp 0x14000284b
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 0x140002b38
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140039fa8]
lea rdx, str.Could_not_append_updater.ini_filename_when_attempting_to_modify_service_description.____d_
jmp 0x140002843
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 0x140002bba
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140039fa8]
lea rdx, str.updater.ini_file_does_not_exist__will_not_modify_service_description.____d_
jmp 0x140002843
cmp byte [r12], 0
je 0x1400028d5
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r15, qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, 0xfde9
xor edx, edx
mov r8, r12
mov r9d, 0xffffffff
call r15
movsxd rsi, eax
mov rax, rsi
add rax, rsi
mov rdi, 0xffffffffffffffff
cmovae rdi, rax
mov rcx, rdi
call fcn.14000e728
mov r14, rax
mov rcx, rax
xor edx, edx
mov r8, rdi
call fcn.140010350
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], r14
mov ecx, 0xfde9
xor edx, edx
mov r8, r12
mov r9d, 0xffffffff
call r15
test eax, eax
je 0x140002a78
mov qword [rsp + 0x38], r14
lea r8, [rsp + 0x38]
mov rcx, rbx
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov ebx, 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 0x140002bfb
test ebx, ebx
je 0x140002c3f
lea rcx, [0x140039fa8]
lea rdx, str.The_service_description_was_updated_successfully.
call fcn.14000bdb0
jmp 0x140002c5b
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 0x140002c79
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140039fa8]
lea rdx, str.Could_not_convert_description_to_wide_string_format.____d_
jmp 0x140002c53
lea rcx, [0x14003a1b8]
call fcn.14000e8a0
cmp dword [0x14003a1b8], 0xffffffff
jne 0x1400027f4
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000ea58
lea rcx, [0x14003a1b8]
call fcn.14000e908
jmp 0x1400027f4
lea rcx, [0x14003a1b8]
call fcn.14000e8a0
cmp dword [0x14003a1b8], 0xffffffff
jne 0x14000282f
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000ea58
lea rcx, [0x14003a1b8]
call fcn.14000e908
jmp 0x14000282f
lea rcx, [0x14003a1b8]
call fcn.14000e8a0
cmp dword [0x14003a1b8], 0xffffffff
jne 0x140002940
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000ea58
lea rcx, [0x14003a1b8]
call fcn.14000e908
jmp 0x140002940
lea rcx, [0x14003a1b8]
call fcn.14000e8a0
cmp dword [0x14003a1b8], 0xffffffff
jne 0x1400028fa
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000ea58
lea rcx, [0x14003a1b8]
call fcn.14000e908
jmp 0x1400028fa
lea rcx, [0x14003a1b8]
call fcn.14000e8a0
cmp dword [0x14003a1b8], 0xffffffff
jne 0x14000297e
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000ea58
lea rcx, [0x14003a1b8]
call fcn.14000e908
jmp 0x14000297e
lea rcx, [0x14003a1b8]
call fcn.14000e8a0
cmp dword [0x14003a1b8], 0xffffffff
jne 0x140002a58
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000ea58
lea rcx, [0x14003a1b8]
call fcn.14000e908
test ebx, ebx
jne 0x140002a60
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140039fa8]
lea rdx, str.Could_not_change_service_config.____d_
mov r8d, eax
call fcn.14000be30
mov rcx, r14
call fcn.14000e730
test r12, r12
je 0x14000284b
mov rcx, r12
call fcn.14000e730
jmp 0x14000284b
lea rcx, [0x14003a1b8]
call fcn.14000e8a0
cmp dword [0x14003a1b8], 0xffffffff
jne 0x140002a9d
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000ea58
lea rcx, [0x14003a1b8]
call fcn.14000e908
jmp 0x140002a9d