Function at 0x140019ac0
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 [0x1402d7d18]
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.140145ae0
lea rax, [0x14028b470]
mov qword [rbp - 0x70], rax
mov qword [rbp + 0x20], r14
mov qword [rbp + 0x48], r14
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x50], xmm0
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.140007a90
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 0x140019bd0
nop word [rax + rax]
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.14001abc0
mov rcx, rax
call fcn.14001aec0
lea ebx, [rbx + 1]
mov rax, qword [rdi + rbx*8]
test rax, rax
jne 0x140019bb0
lea rcx, [rbp - 0x70]
call fcn.14001aec0
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 0x140019c1e
mov rax, qword [rbp - 0x28]
mov r8, qword [rax]
test r8, r8
je 0x140019c1e
mov rax, qword [rbp - 0x48]
mov rdx, qword [rax]
cmp r8, qword [rbp]
cmovb r8, qword [rbp]
sub r8, rdx
jmp 0x140019c46
test cl, 4
jne 0x140019c54
mov rax, qword [rbp - 0x30]
mov rcx, qword [rax]
test rcx, rcx
je 0x140019c54
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 0x140019ce2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140019cdd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140019e34
call fcn.1401544c8
test bl, bl
je 0x140019dae
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword gs:[0x58]
mov rdx, qword [rcx]
mov eax, 0x14
mov ecx, dword [rax + rdx]
mov r8d, 0x10
test cl, 1
jne 0x140019d21
or ecx, 1
mov dword [rax + rdx], ecx
lea rcx, [rdx + r8]
call fcn.14000afb0
nop
cmp byte [rdx + r8 + 1], 0
je 0x140019dae
lea rdx, str.ChangeServiceConfig_returned_0x
lea rdi, [0x1402e2d20]
mov rcx, rdi
call fcn.140011f70
mov rax, qword [0x1402e2d20]
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.14000c310
mov rax, qword [0x1402e2d20]
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 [0x1402e2d20]
movsxd rcx, dword [rax + 4]
add rcx, rdi
mov dl, 0xa
call fcn.140013b60
movzx edx, al
mov rcx, rdi
call fcn.1400139a0
mov rcx, rdi
call fcn.140010e30
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.1400056b0
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.1401574f0
nop
xor eax, eax
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.140154660
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.1400e3a70
nop
int3