Function at 0x14002bf10
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 [0x140186768]
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.1400ec650
lea rax, [0x140158b10]
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.14001b0f0
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.14001b060
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 0x14002c020
nop word [rax + rax]
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.140016ed0
mov rcx, rax
call fcn.14002c880
lea ebx, [rbx + 1]
mov rax, qword [rdi + rbx*8]
test rax, rax
jne 0x14002c000
lea rcx, [rbp - 0x70]
call fcn.14002c880
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x68]
call fcn.14001afb0
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 0x14002c0c5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002c0c0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002c217
call fcn.1400e9cd4
test bl, bl
je 0x14002c191
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword gs:[0x58]
mov rdx, qword [rcx]
mov eax, 0x264
mov ecx, dword [rax + rdx]
mov r8d, 0x260
test cl, 1
jne 0x14002c104
or ecx, 1
mov dword [rax + rdx], ecx
lea rcx, [rdx + r8]
call fcn.14000fa60
nop
cmp byte [rdx + r8 + 1], 0
je 0x14002c191
lea rdx, str.ChangeServiceConfig_returned_0x
lea rdi, [0x1401950c0]
mov rcx, rdi
call fcn.1400104a0
mov rax, qword [0x1401950c0]
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.14001aaf0
mov rax, qword [0x1401950c0]
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 [0x1401950c0]
movsxd rcx, dword [rax + 4]
add rcx, rdi
mov dl, 0xa
call fcn.140010290
movzx edx, al
mov rcx, rdi
call fcn.140010130
mov rcx, rdi
call fcn.140010060
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.14001a390
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.1400cbf54
nop
xor eax, eax
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.1400e9cb0
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.1400f8ad4
nop
int3