Function at 0x1800b19d0
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 [0x1802247b8]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r13, rdx
mov r8, qword [rdx + 8]
mov rdx, qword [rdx]
call fcn.1800b9680
mov rax, qword [r13]
mov qword [r13 + 8], rax
xor r12d, r12d
mov qword [rbp - 0x69], r12
mov qword [rbp - 0x61], r12
mov qword [rbp - 0x61], 7
mov qword [rbp - 0x69], r12
mov word [rbp - 0x79], r12w
lea r8d, [r12 + 0xc]
lea rdx, str.Advapi32.dll
lea rcx, [rbp - 0x79]
call fcn.180005920
nop
mov eax, dword [0x18034db90]
test al, 1
jne 0x1800b1a80
or eax, 1
mov dword [0x18034db90], eax
xor eax, eax
mov qword [0x18034db88], rax
call fcn.180064890
lea rcx, [0x180197b50]
call fcn.180139aec
nop
lea rdx, [rbp - 0x79]
lea rcx, [0x18034db88]
call fcn.180064a80
mov rbx, rax
cmp qword [rbp - 0x61], 8
jb 0x1800b1aa3
mov rcx, qword [rbp - 0x79]
call fcn.180139b7c
mov qword [rbp - 0x61], 7
mov qword [rbp - 0x69], r12
mov word [rbp - 0x79], r12w
test rbx, rbx
je 0x1800b1dd3
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 r15, rax
mov qword [rbp - 0x51], rax
lea rdx, str.QueryServiceConfigW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
mov qword [rbp - 0x59], rax
lea rdx, str.CloseServiceHandle
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov qword [rbp - 0x49], rax
test rsi, rsi
je 0x1800b1dd3
test rdi, rdi
je 0x1800b1dd3
test r15, r15
je 0x1800b1dd3
test r14, r14
je 0x1800b1dd3
test rax, rax
je 0x1800b1dd3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 4]
call rsi
mov r14, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x1800b1dd3
mov dword [rbp - 0x39], r12d
mov dword [rbp - 0x31], r12d
mov qword [rsp + 0x38], r12
lea rax, [rbp - 0x31]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x39]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r12d
xor r9d, r9d
lea edx, [r9 + 0x30]
lea r8d, [r9 + 3]
mov rcx, r14
call rdi
test eax, eax
jne 0x1800b1dce
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x1800b1dce
mov ecx, dword [rbp - 0x39]
mov eax, 0x30
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.180112448
mov r12, rax
mov qword [rsp + 0x40], rax
xor esi, esi
mov qword [rsp + 0x38], rsi
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
lea edx, [rsi + 0x30]
lea r8d, [rsi + 3]
mov rcx, r14
call rdi
cmp eax, 1
jne 0x1800b1dc6
mov r15d, 0x2800
mov ecx, r15d
call fcn.180112448
mov rdi, rax
cmp dword [rbp - 0x31], esi
jbe 0x1800b1dbe
mov r12d, r15d
nop dword [rax + rax]
mov r8, r12
xor edx, edx
mov rcx, rdi
call fcn.180140c00
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 [rsp + 0x40]
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 - 0x51]
mov r14, rax
test rax, rax
je 0x1800b1d96
mov dword [rbp - 0x35], 0
lea r9, [rbp - 0x35]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [rbp - 0x59]
cmp dword [rbp - 0x35], 0
jbe 0x1800b1d96
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1800b1d96
mov r8d, dword [rbp - 0x35]
cmp r8d, r15d
jbe 0x1800b1d15
mov r15d, r8d
mov rcx, rdi
call fcn.18013a400
mov r12d, r15d
mov ecx, r15d
call fcn.180112448
mov rdi, rax
mov r8d, r15d
xor edx, edx
mov rcx, rax
call fcn.180140c00
mov r8d, dword [rbp - 0x35]
lea r9, [rbp - 0x35]
mov rdx, rdi
mov rcx, r14
call qword [rbp - 0x59]
test eax, eax
je 0x1800b1d96
mov rdx, qword [rbx]
cmp word [rdx], 0
jne 0x1800b1d36
xor ebx, ebx
mov r8d, ebx
jmp 0x1800b1d4d
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x1800b1d40
xor ebx, ebx
lea rcx, [rbp - 0x29]
call fcn.180005920
mov rdx, qword [rdi + 0x10]
test rdx, rdx
je 0x1800b1d84
cmp word [rdx], 0
jne 0x1800b1d6a
mov r8, rbx
jmp 0x1800b1d7b
or r8, 0xffffffffffffffff
nop
inc r8
cmp word [rdx + r8*2], 0
jne 0x1800b1d70
lea rcx, [rbp - 9]
call fcn.180005920
mov eax, dword [rdi + 4]
mov dword [rbp + 0x1b], eax
lea rdx, [rbp - 0x29]
mov rcx, r13
call fcn.1800b90f0
mov rcx, r14
mov rbx, qword [rbp - 0x49]
call rbx
nop
lea rcx, [rbp - 0x29]
call fcn.1800b1e40
inc esi
cmp esi, dword [rbp - 0x31]
mov r14, qword [rsp + 0x48]
jb 0x1800b1c40
mov r12, qword [rsp + 0x40]
mov rcx, rdi
call fcn.18013a400
mov rcx, r12
call fcn.18013a400
mov rcx, r14
call rbx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.180139310
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