Function at 0x180060810
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 [0x1800fb008]
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.180031270
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.180003940
nop
call fcn.18000f330
mov rcx, rax
lea rdx, [rsp + 0x48]
call fcn.18000f3e0
mov rbx, rax
cmp qword [rbp - 0x69], 8
jb 0x1800608bc
mov rcx, qword [rsp + 0x48]
call fcn.18008861c
mov qword [rbp - 0x69], 7
mov qword [rbp - 0x71], r15
mov word [rsp + 0x48], r15w
test rbx, rbx
je 0x180060c1f
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 0x180060c1f
test rdi, rdi
je 0x180060c1f
test r14, r14
je 0x180060c1f
test r13, r13
je 0x180060c1f
test rax, rax
je 0x180060c1f
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 4]
call rsi
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x180060c1f
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 0x180060c1a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x180060c1a
mov ecx, dword [rbp - 0x39]
mov eax, 0x30
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.180087e84
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 0x180060c12
mov r15d, 0x2800
mov ecx, r15d
call fcn.180087e84
mov rdi, rax
xor eax, eax
mov esi, eax
cmp dword [rbp - 0x31], eax
jbe 0x180060c0a
mov r12d, r15d
mov r8, r12
xor edx, edx
mov rcx, rdi
call fcn.18008c480
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 0x180060ba7
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 0x180060ba7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x180060ba7
mov r8d, dword [rbp - 0x35]
cmp r8d, r15d
jbe 0x180060b23
mov r15d, r8d
mov rcx, rdi
call fcn.180088db0
mov r12d, r15d
mov ecx, r15d
call fcn.180087e84
mov rdi, rax
mov r8d, r15d
xor edx, edx
mov rcx, rax
call fcn.18008c480
mov r8d, dword [rbp - 0x35]
lea r9, [rbp - 0x35]
mov rdx, rdi
mov rcx, r14
call r13
test eax, eax
je 0x180060ba7
mov rdx, qword [rbx]
cmp word [rdx], 0
jne 0x180060b44
xor ebx, ebx
mov r8d, ebx
jmp 0x180060b5d
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x180060b50
xor ebx, ebx
lea rcx, [rbp - 0x29]
call fcn.180003940
mov rdx, qword [rdi + 0x10]
test rdx, rdx
je 0x180060b94
cmp word [rdx], 0
jne 0x180060b7a
mov r8, rbx
jmp 0x180060b8b
or r8, 0xffffffffffffffff
nop
inc r8
cmp word [rdx + r8*2], 0
jne 0x180060b80
lea rcx, [rbp - 9]
call fcn.180003940
mov eax, dword [rdi + 4]
mov dword [rbp + 0x1b], eax
lea rdx, [rbp - 0x29]
mov rcx, qword [rbp - 0x49]
call fcn.180067bb0
mov rcx, r14
mov rbx, qword [rbp - 0x51]
call rbx
nop
cmp qword [rbp + 0xf], 8
jb 0x180060bc1
mov rcx, qword [rbp - 9]
call fcn.18008861c
mov qword [rbp + 0xf], 7
xor r14d, r14d
mov qword [rbp + 7], r14
mov word [rbp - 9], r14w
cmp qword [rbp - 0x11], 8
jb 0x180060be5
mov rcx, qword [rbp - 0x29]
call fcn.18008861c
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 0x180060a51
mov r12, qword [rbp - 0x61]
mov rcx, rdi
call fcn.180088db0
mov rcx, r12
call fcn.180088db0
mov rcx, r14
call rbx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.180087ea0
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