Function at 0x14009fa30
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x100
mov qword [rbp - 0x41], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14016ca00]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rbx, rdx
mov qword [rbp - 0x49], rdx
mov r8, qword [rdx + 8]
mov rdx, qword [rdx]
call fcn.1400a2bc0
mov rax, qword [rbx]
mov qword [rbx + 8], rax
xor r15d, r15d
mov qword [rbp - 0x71], r15
mov qword [rbp - 0x69], r15
mov qword [rbp - 0x69], 7
mov qword [rbp - 0x71], r15
mov word [rsp + 0x48], r15w
lea r8d, [r15 + 0xc]
lea rdx, str.Advapi32.dll
lea rcx, [rsp + 0x48]
call fcn.140006900
nop
call fcn.14007a6e0
mov rcx, rax
lea rdx, [rsp + 0x48]
call fcn.14007a790
mov rbx, rax
cmp qword [rbp - 0x69], 8
jb 0x14009fadc
mov rcx, qword [rsp + 0x48]
call fcn.1400bd20c
mov qword [rbp - 0x69], 7
mov qword [rbp - 0x71], r15
mov word [rsp + 0x48], r15w
test rbx, rbx
je 0x14009fe3f
lea rdx, str.OpenSCManagerW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
lea rdx, str.EnumServicesStatusW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
lea rdx, str.OpenServiceW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
mov qword [rbp - 0x59], rax
lea rdx, str.QueryServiceConfigW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r13, rax
lea rdx, str.CloseServiceHandle
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov qword [rbp - 0x51], rax
test rsi, rsi
je 0x14009fe3f
test rdi, rdi
je 0x14009fe3f
test r14, r14
je 0x14009fe3f
test r13, r13
je 0x14009fe3f
test rax, rax
je 0x14009fe3f
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 4]
call rsi
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14009fe3f
mov dword [rbp - 0x39], r15d
mov dword [rbp - 0x31], r15d
mov qword [rsp + 0x38], r15
lea rax, [rbp - 0x31]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x39]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
xor r9d, r9d
lea edx, [r9 + 0x30]
lea r8d, [r9 + 3]
mov rcx, r14
call rdi
test eax, eax
jne 0x14009fe3a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x14009fe3a
mov ecx, dword [rbp - 0x39]
mov eax, 0x30
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400bbc88
mov r12, rax
mov qword [rbp - 0x61], rax
mov qword [rsp + 0x38], r15
lea rax, [rbp - 0x31]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x39]
mov qword [rsp + 0x28], rax
mov ecx, dword [rbp - 0x39]
mov dword [rsp + 0x20], ecx
mov r9, r12
mov edx, 0x30
lea r8d, [rdx - 0x2d]
mov rcx, r14
call rdi
cmp eax, 1
jne 0x14009fe32
mov r15d, 0x2800
mov ecx, r15d
call fcn.1400bbc88
mov rdi, rax
xor eax, eax
mov esi, eax
cmp dword [rbp - 0x31], eax
jbe 0x14009fe2a
mov r12d, r15d
mov r8, r12
xor edx, edx
mov rcx, rdi
call fcn.1400c2130
xor edx, edx
mov qword [rbp - 0x19], rdx
mov qword [rbp - 0x11], rdx
mov qword [rbp - 0x11], 7
mov qword [rbp - 0x19], rdx
mov word [rbp - 0x29], dx
mov qword [rbp + 7], rdx
mov qword [rbp + 0xf], rdx
mov qword [rbp + 0xf], 7
mov qword [rbp + 7], rdx
mov word [rbp - 9], dx
mov eax, esi
lea rbx, [rax + rax*2]
shl rbx, 4
add rbx, qword [rbp - 0x61]
mov eax, edx
cmp dword [rbx + 0x14], 4
sete al
mov dword [rbp + 0x17], eax
lea r8d, [rdx + 5]
mov rdx, qword [rbx]
mov rcx, r14
call qword [rbp - 0x59]
mov r14, rax
test rax, rax
je 0x14009fdc7
xor eax, eax
mov dword [rbp - 0x35], eax
lea r9, [rbp - 0x35]
xor r8d, r8d
xor edx, edx
mov rcx, r14
call r13
cmp dword [rbp - 0x35], 0
jbe 0x14009fdc7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14009fdc7
mov r8d, dword [rbp - 0x35]
cmp r8d, r15d
jbe 0x14009fd43
mov r15d, r8d
mov rcx, rdi
call fcn.1400bd2dc
mov r12d, r15d
mov ecx, r15d
call fcn.1400bbc88
mov rdi, rax
mov r8d, r15d
xor edx, edx
mov rcx, rax
call fcn.1400c2130
mov r8d, dword [rbp - 0x35]
lea r9, [rbp - 0x35]
mov rdx, rdi
mov rcx, r14
call r13
test eax, eax
je 0x14009fdc7
mov rdx, qword [rbx]
cmp word [rdx], 0
jne 0x14009fd64
xor ebx, ebx
mov r8d, ebx
jmp 0x14009fd7d
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14009fd70
xor ebx, ebx
lea rcx, [rbp - 0x29]
call fcn.140006900
mov rdx, qword [rdi + 0x10]
test rdx, rdx
je 0x14009fdb4
cmp word [rdx], 0
jne 0x14009fd9a
mov r8, rbx
jmp 0x14009fdab
or r8, 0xffffffffffffffff
nop
inc r8
cmp word [rdx + r8*2], 0
jne 0x14009fda0
lea rcx, [rbp - 9]
call fcn.140006900
mov eax, dword [rdi + 4]
mov dword [rbp + 0x1b], eax
lea rdx, [rbp - 0x29]
mov rcx, qword [rbp - 0x49]
call fcn.1400a2ac0
mov rcx, r14
mov rbx, qword [rbp - 0x51]
call rbx
nop
cmp qword [rbp + 0xf], 8
jb 0x14009fde1
mov rcx, qword [rbp - 9]
call fcn.1400bd20c
mov qword [rbp + 0xf], 7
xor r14d, r14d
mov qword [rbp + 7], r14
mov word [rbp - 9], r14w
cmp qword [rbp - 0x11], 8
jb 0x14009fe05
mov rcx, qword [rbp - 0x29]
call fcn.1400bd20c
mov qword [rbp - 0x11], 7
mov qword [rbp - 0x19], r14
mov word [rbp - 0x29], r14w
inc esi
cmp esi, dword [rbp - 0x31]
mov r14, qword [rsp + 0x40]
jb 0x14009fc71
mov r12, qword [rbp - 0x61]
mov rcx, rdi
call fcn.1400bd2dc
mov rcx, r12
call fcn.1400bd2dc
mov rcx, r14
call rbx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400bcae0
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret