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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0xad8]
sub rsp, 0xbd0
mov rax, qword [0x14002c008]
xor rax, rsp
mov qword [rbp + 0xac0], rax
mov rdi, rcx
lea rdx, [rbp + 0x1a0]
xor ecx, ecx
mov r8d, 0x105
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor esi, esi
test eax, eax
jne 0x1400022ac
mov eax, dword [0x14002df0c]
test al, 1
jne 0x14000228b
or eax, 1
mov qword [0x14002df50], rsi
lea rcx, [0x14001dc10]
mov dword [0x14002df0c], eax
call fcn.140007614
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Could_not_obtain_module_filename_when_attempting_to_modify_service_description.____d_
mov r8d, eax
lea rcx, [0x14002df50]
call fcn.140007060
jmp 0x140002529
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x1400022f2
mov eax, dword [0x14002df0c]
test al, 1
jne 0x1400022e3
or eax, 1
mov qword [0x14002df50], rsi
lea rcx, [0x14001dc10]
mov dword [0x14002df0c], eax
call fcn.140007614
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Could_not_remove_file_spec_when_attempting_to_modify_service_description.____d_
jmp 0x140002298
lea rdx, str.updater.ini
lea rcx, [rbp + 0x1a0]
call fcn.140006928
test eax, eax
jne 0x140002341
mov eax, dword [0x14002df0c]
test al, 1
jne 0x14000232f
or eax, 1
mov qword [0x14002df50], rsi
lea rcx, [0x14001dc10]
mov dword [0x14002df0c], eax
call fcn.140007614
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Could_not_append_updater.ini_filename_when_attempting_to_modify_service_description.____d_
jmp 0x140002298
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000238b
mov eax, dword [0x14002df0c]
test al, 1
jne 0x140002379
or eax, 1
mov qword [0x14002df50], rsi
lea rcx, [0x14001dc10]
mov dword [0x14002df0c], eax
call fcn.140007614
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.updater.ini_file_does_not_exist__will_not_modify_service_description.____d_
jmp 0x140002298
lea r9, [rbp + 0x3b0]
lea rcx, [rbp + 0x1a0]
call fcn.140005bec
movzx ecx, byte [rbp + 0x3b0]
lea rdx, [rbp + 0x3b0]
test eax, eax
mov r8d, 0x257
mov ebx, eax
cmovne ecx, esi
mov byte [rbp + 0x3b0], cl
lea rcx, [rsp + 0x40]
call fcn.14000c8f0
mov byte [rbp + 0x197], sil
test ebx, ebx
jne 0x1400024f0
or rcx, 0xffffffffffffffff
lea rdx, [rsp + 0x40]
mov rax, rcx
inc rax
cmp byte [rdx + rax], sil
jne 0x1400023e4
test rax, rax
je 0x1400024f0
lea rax, [rbp + 0x610]
mov dword [rsp + 0x28], 0x258
mov r9d, ecx
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
lea r8, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x14000245b
mov eax, dword [0x14002df0c]
test al, 1
jne 0x140002449
or eax, 1
mov qword [0x14002df50], rsi
lea rcx, [0x14001dc10]
mov dword [0x14002df0c], eax
call fcn.140007614
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Could_not_convert_description_to_wide_string_format.____d_
jmp 0x140002298
lea rax, [rbp + 0x610]
mov edx, 1
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
mov eax, dword [0x14002df0c]
jne 0x1400024b6
test al, 1
jne 0x1400024a4
or eax, 1
mov qword [0x14002df50], rsi
lea rcx, [0x14001dc10]
mov dword [0x14002df0c], eax
call fcn.140007614
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Could_not_change_service_config.____d_
jmp 0x140002298
test al, 1
jne 0x1400024d6
or eax, 1
mov qword [0x14002df50], rsi
lea rcx, [0x14001dc10]
mov dword [0x14002df0c], eax
call fcn.140007614
lea rdx, str.The_service_description_was_updated_successfully.
lea rcx, [0x14002df50]
call fcn.140007008
mov eax, 1
jmp 0x14000252b
mov eax, dword [0x14002df0c]
test al, 1
jne 0x140002516
or eax, 1
mov qword [0x14002df50], rsi
lea rcx, [0x14001dc10]
mov dword [0x14002df0c], eax
call fcn.140007614
lea rdx, str.updater.ini_file_does_not_contain_a_maintenance_service_description.
lea rcx, [0x14002df50]
call fcn.140007060
xor eax, eax
mov rcx, qword [rbp + 0xac0]
xor rcx, rsp
call fcn.140007360
lea r11, [rsp + 0xbd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret