Function at 0x14009c3ec
Capabilities:
Create service

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x230
mov qword [r11 - 0x88], 0xfffffffffffffffe
mov rax, qword [0x1402d9850]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov qword [rsp + 0x98], r9
mov qword [rsp + 0xa8], r8
mov r12, rdx
mov qword [rsp + 0xb0], rcx
mov rax, qword [rsp + 0x290]
mov qword [rsp + 0xa0], rax
mov eax, dword [rsp + 0x298]
mov dword [rsp + 0x78], eax
mov r13d, dword [rsp + 0x2a0]
xor ebx, ebx
mov dword [rsp + 0x70], ebx
mov dword [rsp + 0x74], 0x78
lea r9, [rsp + 0x74]
lea r8, [rsp + 0x70]
lea rdx, str._ServiceManager::Install_
lea rcx, [r11 - 0x80]
call fcn.14003fda0
nop
mov r15d, ebx
mov qword [rsp + 0xb8], rbx
mov rcx, qword [0x1402de630]
test rcx, rcx
je 0x14009cc04
mov rax, qword [rcx]
mov r14d, 0x7d0
mov edx, r14d
call qword [rax + 0x10]
lea edi, [rbx + 1]
lea esi, [rbx + 2]
test eax, eax
je 0x14009c5d8
mov r8d, edi
mov edx, esi
lea rcx, [rsp + 0xd0]
call fcn.140040070
nop
call fcn.14010ab78
mov r8, rax
mov rax, qword [rsp + 0xd0]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0xd0]
add rcx, rax
lea rdx, [rsp + 0x80]
call fcn.140040f30
nop
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x14009c520
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rax
test rax, rax
je 0x14009c520
mov rax, qword [rax]
mov edx, edi
call qword [rax]
nop
lea rdx, str._ServiceManager::Install_
lea rcx, [rsp + 0xd0]
call fcn.140043d80
lea rdx, str.Binary_path:
mov rcx, rax
call fcn.140043d80
mov rdx, r12
mov rcx, rax
call fcn.140043d80
lea rdx, [rsp + 0x200]
lea rcx, [rsp + 0xd0]
call fcn.14003ffc0
nop
lea r8, [rsp + 0x200]
cmp qword [rsp + 0x218], 8
cmovae r8, qword [rsp + 0x200]
mov rcx, qword [0x1402de630]
mov rax, qword [rcx]
mov r9, qword [rsp + 0x210]
mov edx, r14d
call qword [rax + 0x20]
nop
xor r8d, r8d
mov dl, dil
lea rcx, [rsp + 0x200]
call fcn.140006e40
nop
lea rcx, [rsp + 0x158]
call fcn.14003fff0
nop
lea r14, vtable.std::ios_base.0
mov qword [rsp + 0x158], r14
lea rcx, [rsp + 0x158]
call fcn.14010acb0
nop
jmp 0x14009c5df
lea r14, vtable.std::ios_base.0
mov rcx, qword [0x1402de630]
test rcx, rcx
je 0x14009cc09
mov rax, qword [rcx]
mov edx, 0x7d0
call qword [rax + 0x10]
test eax, eax
je 0x14009c71b
mov r8d, edi
mov edx, esi
lea rcx, [rsp + 0xd0]
call fcn.140040070
nop
call fcn.14010ab78
mov r8, rax
mov rax, qword [rsp + 0xd0]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0xd0]
add rcx, rax
lea rdx, [rsp + 0x80]
call fcn.140040f30
nop
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x14009c665
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rax
test rax, rax
je 0x14009c665
mov rax, qword [rax]
mov edx, edi
call qword [rax]
nop
lea rdx, str._ServiceManager::Install_
lea rcx, [rsp + 0xd0]
call fcn.140043d80
lea rdx, str.Service_name:
mov rcx, rax
call fcn.140043d80
mov rdx, qword [rsp + 0xa8]
mov rcx, rax
call fcn.140043d80
lea rdx, [rsp + 0x200]
lea rcx, [rsp + 0xd0]
call fcn.14003ffc0
nop
lea r8, [rsp + 0x200]
cmp qword [rsp + 0x218], 8
cmovae r8, qword [rsp + 0x200]
mov rcx, qword [0x1402de630]
mov rax, qword [rcx]
mov r9, qword [rsp + 0x210]
mov edx, 0x7d0
call qword [rax + 0x20]
nop
xor r8d, r8d
mov dl, dil
lea rcx, [rsp + 0x200]
call fcn.140006e40
nop
lea rcx, [rsp + 0x158]
call fcn.14003fff0
nop
mov qword [rsp + 0x158], r14
lea rcx, [rsp + 0x158]
call fcn.14010acb0
nop
mov rcx, qword [0x1402de630]
test rcx, rcx
je 0x14009cc09
mov rax, qword [rcx]
mov edx, 0x7d0
call qword [rax + 0x10]
test eax, eax
je 0x14009c857
mov r8d, edi
mov edx, esi
lea rcx, [rsp + 0xd0]
call fcn.140040070
nop
call fcn.14010ab78
mov r8, rax
mov rax, qword [rsp + 0xd0]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0xd0]
add rcx, rax
lea rdx, [rsp + 0x80]
call fcn.140040f30
nop
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x14009c7a1
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rax
test rax, rax
je 0x14009c7a1
mov rax, qword [rax]
mov edx, edi
call qword [rax]
nop
lea rdx, str._ServiceManager::Install_
lea rcx, [rsp + 0xd0]
call fcn.140043d80
lea rdx, str.Display_name:
mov rcx, rax
call fcn.140043d80
mov rdx, qword [rsp + 0x98]
mov rcx, rax
call fcn.140043d80
lea rdx, [rsp + 0x200]
lea rcx, [rsp + 0xd0]
call fcn.14003ffc0
nop
lea r8, [rsp + 0x200]
cmp qword [rsp + 0x218], 8
cmovae r8, qword [rsp + 0x200]
mov rcx, qword [0x1402de630]
mov rax, qword [rcx]
mov r9, qword [rsp + 0x210]
mov edx, 0x7d0
call qword [rax + 0x20]
nop
xor r8d, r8d
mov dl, dil
lea rcx, [rsp + 0x200]
call fcn.140006e40
nop
lea rcx, [rsp + 0x158]
call fcn.14003fff0
nop
mov qword [rsp + 0x158], r14
lea rcx, [rsp + 0x158]
call fcn.14010acb0
nop
mov rcx, qword [0x1402de630]
test rcx, rcx
je 0x14009cc09
mov rax, qword [rcx]
mov edx, 0x7d0
call qword [rax + 0x10]
test eax, eax
je 0x14009c993
mov r8d, edi
mov edx, esi
lea rcx, [rsp + 0xd0]
call fcn.140040070
nop
call fcn.14010ab78
mov r8, rax
mov rax, qword [rsp + 0xd0]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0xd0]
add rcx, rax
lea rdx, [rsp + 0x80]
call fcn.140040f30
nop
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x14009c8dd
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rax
test rax, rax
je 0x14009c8dd
mov rax, qword [rax]
mov edx, edi
call qword [rax]
nop
lea rdx, str._ServiceManager::Install_
lea rcx, [rsp + 0xd0]
call fcn.140043d80
lea rdx, str.Description:
mov rcx, rax
call fcn.140043d80
mov rdx, qword [rsp + 0xa0]
mov rcx, rax
call fcn.140043d80
lea rdx, [rsp + 0x200]
lea rcx, [rsp + 0xd0]
call fcn.14003ffc0
nop
lea r8, [rsp + 0x200]
cmp qword [rsp + 0x218], 8
cmovae r8, qword [rsp + 0x200]
mov rcx, qword [0x1402de630]
mov rax, qword [rcx]
mov r9, qword [rsp + 0x210]
mov edx, 0x7d0
call qword [rax + 0x20]
nop
xor r8d, r8d
mov dl, dil
lea rcx, [rsp + 0x200]
call fcn.140006e40
nop
lea rcx, [rsp + 0x158]
call fcn.14003fff0
nop
mov qword [rsp + 0x158], r14
lea rcx, [rsp + 0x158]
call fcn.14010acb0
nop
mov rcx, qword [0x1402de630]
test rcx, rcx
je 0x14009cc09
mov rax, qword [rcx]
mov edx, 0x7d0
call qword [rax + 0x10]
test eax, eax
je 0x14009cacb
mov r8d, edi
mov edx, esi
lea rcx, [rsp + 0xd0]
call fcn.140040070
nop
call fcn.14010ab78
mov r8, rax
mov rax, qword [rsp + 0xd0]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0xd0]
add rcx, rax
lea rdx, [rsp + 0x80]
call fcn.140040f30
nop
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x14009ca19
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rax
test rax, rax
je 0x14009ca19
mov rax, qword [rax]
mov edx, edi
call qword [rax]
nop
lea rdx, str._ServiceManager::Install_
lea rcx, [rsp + 0xd0]
call fcn.140043d80
lea rdx, str.Service_type:
mov rcx, rax
call fcn.140043d80
mov edx, dword [rsp + 0x78]
mov rcx, rax
call fcn.1400408d0
lea rdx, [rsp + 0x200]
lea rcx, [rsp + 0xd0]
call fcn.14003ffc0
nop
lea r8, [rsp + 0x200]
cmp qword [rsp + 0x218], 8
cmovae r8, qword [rsp + 0x200]
mov rcx, qword [0x1402de630]
mov rax, qword [rcx]
mov r9, qword [rsp + 0x210]
mov edx, 0x7d0
call qword [rax + 0x20]
nop
xor r8d, r8d
mov dl, dil
lea rcx, [rsp + 0x200]
call fcn.140006e40
nop
lea rcx, [rsp + 0x158]
call fcn.14003fff0
nop
mov qword [rsp + 0x158], r14
lea rcx, [rsp + 0x158]
call fcn.14010acb0
nop
mov rcx, qword [0x1402de630]
test rcx, rcx
je 0x14009cc09
mov rax, qword [rcx]
mov edx, 0x7d0
call qword [rax + 0x10]
test eax, eax
je 0x14009cc09
mov r8d, edi
mov edx, esi
lea rcx, [rsp + 0xd0]
call fcn.140040070
nop
call fcn.14010ab78
mov r8, rax
mov rax, qword [rsp + 0xd0]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0xd0]
add rcx, rax
lea rdx, [rsp + 0x80]
call fcn.140040f30
nop
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x14009cb51
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rax
test rax, rax
je 0x14009cb51
mov rax, qword [rax]
mov edx, edi
call qword [rax]
nop
lea rdx, str._ServiceManager::Install_
lea rcx, [rsp + 0xd0]
call fcn.140043d80
lea rdx, str.Start_type:
mov rcx, rax
call fcn.140043d80
mov edx, r13d
mov rcx, rax
call fcn.1400408d0
lea rdx, [rsp + 0x200]
lea rcx, [rsp + 0xd0]
call fcn.14003ffc0
nop
lea r8, [rsp + 0x200]
cmp qword [rsp + 0x218], 8
cmovae r8, qword [rsp + 0x200]
mov rcx, qword [0x1402de630]
mov rax, qword [rcx]
mov r9, qword [rsp + 0x210]
mov edx, 0x7d0
call qword [rax + 0x20]
nop
xor r8d, r8d
mov dl, dil
lea rcx, [rsp + 0x200]
call fcn.140006e40
nop
lea rcx, [rsp + 0x158]
call fcn.14003fff0
nop
mov qword [rsp + 0x158], r14
lea rcx, [rsp + 0x158]
call fcn.14010acb0
nop
jmp 0x14009cc09
mov edi, 1
mov dword [rsp + 0x90], ebx
mov dword [rsp + 0x94], ebx
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x94]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r13d
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x98]
mov r14, qword [rsp + 0xa8]
mov r8, r14
mov rdx, r12
mov rcx, qword [rsp + 0xb0]
call fcn.14009b2d8
test eax, eax
jne 0x14009cca7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x1c0], eax
lea rax, str.ServiceManager::CheckServiceConfig
mov qword [rsp + 0x1c8], rax
lea rdx, [0x1402d6470]
lea rcx, [rsp + 0x1c0]
call fcn.14012ccc0
mov esi, dword [rsp + 0x90]
test esi, esi
jne 0x14009cd10
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], r13d
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
mov r9d, 0xf01ff
mov r8, qword [rsp + 0x98]
mov rdx, r14
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov r15, rax
mov qword [rsp + 0xb8], rax
jmp 0x14009cd47
cmp dword [rsp + 0x94], ebx
jne 0x14009cd47
mov dword [rsp + 0x1d0], 0x431
lea rax, str.Check_PreviousInstallation_
mov qword [rsp + 0x1d8], rax
lea rdx, [0x1402d6470]
lea rcx, [rsp + 0x1d0]
call fcn.14012ccc0
mov dword [rsp + 0x70], edi
neg esi
sbb eax, eax
and eax, 0x431
mov dword [rsp + 0x74], eax
jmp 0x14009cd62
test r15, r15
je 0x14009cd70
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, dword [rsp + 0x70]
lea rcx, [rsp + 0x1e8]
call fcn.14003fbb0
nop
mov ecx, dword [rsp + 0x74]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.14012a1e0
add rsp, 0x230
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret