Function at 0x14001a6d0
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x1402a7d08]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov rdi, rdx
mov rsi, rcx
xor r14d, r14d
mov dword [rsp + 0x60], r14d
xor edx, edx
mov r8d, 0xe8
lea rcx, [rbp - 0x70]
call fcn.140132a80
lea rax, [0x14025bde0]
mov qword [rbp - 0x70], rax
mov dword [rsp + 0x60], 1
lea r12, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rbp + 0x18], r12
mov dword [rbp + 0x14], 0x78
xor r8d, r8d
lea rdx, [rbp - 0x68]
lea rcx, [rbp + 0x18]
call fcn.1400081f0
nop
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea r15, vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp + rcx - 0x70], r15
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x68]
call fcn.140007b90
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp - 0x68], rax
mov qword [rbp], r14
mov dword [rbp + 8], 4
mov ebx, r14d
mov rax, qword [rdi]
test rax, rax
je 0x14001a7d0
nop word [rax + rax]
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.14001b6d0
mov rcx, rax
call fcn.14001b9f0
lea ebx, [rbx + 1]
mov rax, qword [rdi + rbx*8]
test rax, rax
jne 0x14001a7b0
lea rcx, [rbp - 0x70]
call fcn.14001b9f0
nop
mov qword [rsp + 0x78], r14
mov qword [rbp - 0x80], 7
mov word [rsp + 0x68], r14w
mov dword [rsp + 0x60], 9
mov ecx, dword [rbp + 8]
test cl, 2
jne 0x14001a81e
mov rax, qword [rbp - 0x28]
mov r8, qword [rax]
test r8, r8
je 0x14001a81e
mov rax, qword [rbp - 0x48]
mov rdx, qword [rax]
cmp r8, qword [rbp]
cmovb r8, qword [rbp]
sub r8, rdx
jmp 0x14001a846
test cl, 4
jne 0x14001a854
mov rax, qword [rbp - 0x30]
mov rcx, qword [rax]
test rcx, rcx
je 0x14001a854
mov rax, qword [rbp - 0x50]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x18]
movsxd r8, dword [rax]
add r8, r8
sub r8, rdx
add r8, rcx
sar r8, 1
lea rcx, [rsp + 0x68]
call fcn.140007240
nop
lea rax, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rax, qword [rsp + 0x68]
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
mov edx, 0xffffffff
mov r9d, edx
mov r8d, edx
mov rcx, qword [rsi + 8]
call qword [sym.imp.ADVAPI32.DLL_ChangeServiceConfigW]
test eax, eax
sete bl
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x14001a8e2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001a8dd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001aa34
call fcn.14013ff64
test bl, bl
je 0x14001a9ae
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
mov rcx, qword gs:[0x58]
mov rdx, qword [rcx]
mov eax, 0x10
mov ecx, dword [rax + rdx]
mov r8d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
test cl, 1
jne 0x14001a921
or ecx, 1
mov dword [rax + rdx], ecx
lea rcx, [rdx + r8]
call fcn.14000b340
nop
cmp byte [rdx + r8 + 1], 0
je 0x14001a9ae
lea rdx, str.ChangeServiceConfig_returned_0x
lea rdi, [0x1402b2c40]
mov rcx, rdi
call fcn.1400127a0
mov rax, qword [0x1402b2c40]
movsxd rcx, dword [rax + 4]
mov eax, dword [rcx + rdi + 0x18]
and eax, 0xfffff9ff
bts eax, 0xb
mov dword [rcx + rdi + 0x18], eax
mov edx, ebx
mov rcx, rdi
call fcn.14000c790
mov rax, qword [0x1402b2c40]
movsxd rcx, dword [rax + 4]
mov eax, dword [rcx + rdi + 0x18]
and eax, 0xfffff3ff
bts eax, 9
mov dword [rcx + rdi + 0x18], eax
mov rax, qword [0x1402b2c40]
movsxd rcx, dword [rax + 4]
add rcx, rdi
mov dl, 0xa
call fcn.140014960
movzx edx, al
mov rcx, rdi
call fcn.140014780
mov rcx, rdi
call fcn.1400118e0
nop
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x70], r15
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x68]
call fcn.140005670
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x70], r12
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx - 0x74], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x18], rax
lea rcx, [rbp + 0x18]
call fcn.140143920
nop
xor eax, eax
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.140140100
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.1400e0284
nop
int3