Function at 0x140002034
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 0x1400020c8
mov eax, dword [0x14002def4]
test al, 1
jne 0x1400020a7
or eax, 1
mov qword [0x14002df30], rsi
lea rcx, [0x14001da60]
mov dword [0x14002def4], eax
call fcn.1400075b4
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, [0x14002df30]
call fcn.140007010
jmp 0x140002345
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x14000210e
mov eax, dword [0x14002def4]
test al, 1
jne 0x1400020ff
or eax, 1
mov qword [0x14002df30], rsi
lea rcx, [0x14001da60]
mov dword [0x14002def4], eax
call fcn.1400075b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Could_not_remove_file_spec_when_attempting_to_modify_service_description.____d_
jmp 0x1400020b4
lea rdx, str.updater.ini
lea rcx, [rbp + 0x1a0]
call fcn.140006994
test eax, eax
jne 0x14000215d
mov eax, dword [0x14002def4]
test al, 1
jne 0x14000214b
or eax, 1
mov qword [0x14002df30], rsi
lea rcx, [0x14001da60]
mov dword [0x14002def4], eax
call fcn.1400075b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Could_not_append_updater.ini_filename_when_attempting_to_modify_service_description.____d_
jmp 0x1400020b4
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400021a7
mov eax, dword [0x14002def4]
test al, 1
jne 0x140002195
or eax, 1
mov qword [0x14002df30], rsi
lea rcx, [0x14001da60]
mov dword [0x14002def4], eax
call fcn.1400075b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.updater.ini_file_does_not_exist__will_not_modify_service_description.____d_
jmp 0x1400020b4
lea r9, [rbp + 0x3b0]
lea rcx, [rbp + 0x1a0]
call fcn.140005c58
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.14000c670
mov byte [rbp + 0x197], sil
test ebx, ebx
jne 0x14000230c
or rcx, 0xffffffffffffffff
lea rdx, [rsp + 0x40]
mov rax, rcx
inc rax
cmp byte [rdx + rax], sil
jne 0x140002200
test rax, rax
je 0x14000230c
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 0x140002277
mov eax, dword [0x14002def4]
test al, 1
jne 0x140002265
or eax, 1
mov qword [0x14002df30], rsi
lea rcx, [0x14001da60]
mov dword [0x14002def4], eax
call fcn.1400075b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Could_not_convert_description_to_wide_string_format.____d_
jmp 0x1400020b4
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 [0x14002def4]
jne 0x1400022d2
test al, 1
jne 0x1400022c0
or eax, 1
mov qword [0x14002df30], rsi
lea rcx, [0x14001da60]
mov dword [0x14002def4], eax
call fcn.1400075b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Could_not_change_service_config.____d_
jmp 0x1400020b4
test al, 1
jne 0x1400022f2
or eax, 1
mov qword [0x14002df30], rsi
lea rcx, [0x14001da60]
mov dword [0x14002def4], eax
call fcn.1400075b4
lea rdx, str.The_service_description_was_updated_successfully.
lea rcx, [0x14002df30]
call fcn.140006fb8
mov eax, 1
jmp 0x140002347
mov eax, dword [0x14002def4]
test al, 1
jne 0x140002332
or eax, 1
mov qword [0x14002df30], rsi
lea rcx, [0x14001da60]
mov dword [0x14002def4], eax
call fcn.1400075b4
lea rdx, str.updater.ini_file_does_not_contain_a_maintenance_service_description.
lea rcx, [0x14002df30]
call fcn.140007010
xor eax, eax
mov rcx, qword [rbp + 0xac0]
xor rcx, rsp
call fcn.140007300
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