Function at 0x14002b800
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 [0x1401c7808]
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.14012f310
lea rax, [0x14018ca28]
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.140019370
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.1400192e0
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 0x14002b910
nop word [rax + rax]
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.1400154f0
mov rcx, rax
call fcn.14002c250
lea ebx, [rbx + 1]
mov rax, qword [rdi + rbx*8]
test rax, rax
jne 0x14002b8f0
lea rcx, [rbp - 0x70]
call fcn.14002c250
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x68]
call fcn.140019110
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 0x14002b9b5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b9b0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002bb07
call fcn.14013b860
test bl, bl
je 0x14002ba81
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 0x14002b9f4
or ecx, 1
mov dword [rax + rdx], ecx
lea rcx, [rdx + r8]
call fcn.14000f490
nop
cmp byte [rdx + r8 + 1], 0
je 0x14002ba81
lea rdx, str.ChangeServiceConfig_returned_0x
lea rdi, [0x1401d8ef0]
mov rcx, rdi
call fcn.1400157b0
mov rax, qword [0x1401d8ef0]
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.140027500
mov rax, qword [0x1401d8ef0]
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 [0x1401d8ef0]
movsxd rcx, dword [rax + 4]
add rcx, rdi
mov dl, 0xa
call fcn.140017280
movzx edx, al
mov rcx, rdi
call fcn.140017120
mov rcx, rdi
call fcn.140014f70
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.140018580
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.14013e260
nop
xor eax, eax
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.14013b830
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.140107b20
nop
int3