Function at 0x14002b580
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 [0x1401b6838]
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.140123210
lea rax, [0x14017dd08]
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.140018840
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.1400187b0
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 0x14002b680
nop word [rax + rax]
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.140014a00
mov rcx, rax
call fcn.14002c030
lea ebx, [rbx + 1]
mov rax, qword [rdi + rbx*8]
test rax, rax
jne 0x14002b660
lea rcx, [rbp - 0x70]
call fcn.14002c030
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x68]
call fcn.1400185e0
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 0x14002b725
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b720
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002b877
call fcn.14012e940
test bl, bl
je 0x14002b7f1
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
mov rcx, qword gs:[0x58]
mov rdx, qword [rcx]
mov eax, 0x254
mov ecx, dword [rax + rdx]
mov r8d, 0x250
test cl, 1
jne 0x14002b764
or ecx, 1
mov dword [rax + rdx], ecx
lea rcx, [rdx + r8]
call fcn.14000e450
nop
cmp byte [rdx + r8 + 1], 0
je 0x14002b7f1
lea rdx, str.ChangeServiceConfig_returned_0x
lea rdi, [0x1401c6980]
mov rcx, rdi
call fcn.140014760
mov rax, qword [0x1401c6980]
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.1400272f0
mov rax, qword [0x1401c6980]
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 [0x1401c6980]
movsxd rcx, dword [rax + 4]
add rcx, rdi
mov dl, 0xa
call fcn.1400165f0
movzx edx, al
mov rcx, rdi
call fcn.140016490
mov rcx, rdi
call fcn.140014250
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.140017a30
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.140131410
nop
xor eax, eax
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.14012e910
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.1400fec40
nop
int3