Function at 0x100054f10
Capabilities:
Query service status

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x220
mov qword [rsp + 0x1c0], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov r15, rdx
mov r14, rcx
xor r12d, r12d
mov qword [rax + 0x18], r12
mov qword [rsp + 0x28], r12
mov qword [rax + 0x20], r12
lea rcx, [rax + 0x18]
call fcn.10003d0bc
mov rdx, r14
mov rcx, qword [rsp + 0x270]
call fcn.100042e3c
lea rdx, [0x10000dca8]
lea rcx, [rsp + 0x48]
call fcn.10001e134
nop
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x270]
call fcn.1000432d4
nop
mov rbx, qword [rax]
lea ebp, [r12 + 1]
cmp rbx, r12
je 0x100054fa6
lock add dword [rbx + 8], ebp
mov qword [rsp + 0x28], rbx
or r13, 0xffffffffffffffff
mov rcx, qword [rsp + 0x90]
cmp rcx, r12
je 0x100054fdd
mov eax, r13d
lock xadd dword [rcx + 8], eax
add eax, r13d
jne 0x100054fd5
cmp rcx, r12
je 0x100054fd5
mov rax, qword [rcx]
mov edx, ebp
call qword [rax]
mov qword [rsp + 0x90], r12
lea rcx, [rsp + 0x48]
call fcn.10001f3ec
cmp rbx, r12
jne 0x10005509e
lea rcx, [rsp + 0xb0]
call fcn.10001e06c
nop
mov r8, qword [r14]
lea rdx, [0x100013c20]
lea rcx, [rsp + 0xb0]
call fcn.10001ef50
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x138]
call fcn.10001e09c
mov rdi, rax
mov qword [rsp + 0xa0], rax
lea rcx, [rsp + 0xc8]
call fcn.10001e06c
nop
mov dword [rsp + 0xd0], r12d
mov rdx, rdi
lea rcx, [rsp + 0xc8]
call fcn.10001e1c8
nop
mov rcx, rdi
call fcn.10001f3ec
nop
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x160]
call fcn.10001e09c
nop
mov eax, dword [rsp + 0xd0]
mov dword [rsp + 0x168], eax
lea rdx, [0x10007e228]
lea rcx, [rsp + 0x160]
call sub.msvcrt.dll__CxxThrowException
nop
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.100043a04
nop
mov rdi, qword [rax]
cmp rdi, r12
je 0x1000550b8
lock add dword [rdi + 8], ebp
mov qword [rsp + 0x278], rdi
mov rcx, qword [rsp + 0x58]
cmp rcx, r12
je 0x1000550e8
mov eax, r13d
lock xadd dword [rcx + 8], eax
add eax, r13d
jne 0x1000550e3
cmp rcx, r12
je 0x1000550e3
mov rax, qword [rcx]
mov edx, ebp
call qword [rax]
mov qword [rsp + 0x58], r12
cmp rdi, r12
jne 0x10005519f
lea rcx, [rsp + 0xa8]
call fcn.10001e06c
nop
mov r8, qword [r14]
lea rdx, [0x100013c90]
lea rcx, [rsp + 0xa8]
call fcn.10001ef50
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x148]
call fcn.10001e09c
mov rdi, rax
mov qword [rsp + 0x138], rax
lea rcx, [rsp + 0x108]
call fcn.10001e06c
nop
mov dword [rsp + 0x110], r12d
mov rdx, rdi
lea rcx, [rsp + 0x108]
call fcn.10001e1c8
nop
mov rcx, rdi
call fcn.10001f3ec
nop
lea rdx, [rsp + 0x108]
lea rcx, [rsp + 0x180]
call fcn.10001e09c
nop
mov eax, dword [rsp + 0x110]
mov dword [rsp + 0x188], eax
lea rdx, [0x10007e228]
lea rcx, [rsp + 0x180]
call sub.msvcrt.dll__CxxThrowException
nop
xor r8d, r8d
lea rdx, [rsp + 0x150]
mov rcx, rdi
call fcn.1000445a8
nop
mov r8, rax
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x270]
call fcn.1000432d4
nop
mov rsi, qword [rax]
cmp rsi, r12
je 0x1000551d5
lock add dword [rsi + 8], ebp
mov qword [rsp + 0x28], rsi
mov eax, r13d
lock xadd dword [rbx + 8], eax
add eax, r13d
jne 0x1000551f2
mov rax, qword [rbx]
mov edx, ebp
mov rcx, rbx
call qword [rax]
nop
mov rcx, qword [rsp + 0x68]
cmp rcx, r12
je 0x10005521a
mov eax, r13d
lock xadd dword [rcx + 8], eax
add eax, r13d
jne 0x100055215
cmp rcx, r12
je 0x100055215
mov rax, qword [rcx]
mov edx, ebp
call qword [rax]
mov qword [rsp + 0x68], r12
lea rcx, [rsp + 0x150]
call fcn.10001f3ec
cmp rsi, r12
jne 0x100055303
lea rcx, [rsp + 0xc0]
call fcn.10001e06c
nop
mov r8, rbp
lea rdx, [rsp + 0x128]
mov rcx, rdi
call fcn.1000443f8
nop
mov r9, qword [r14]
mov r8, qword [rax]
lea rdx, [0x100013d20]
lea rcx, [rsp + 0xc0]
call fcn.10001ef50
nop
lea rcx, [rsp + 0x128]
call fcn.10001f3ec
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x158]
call fcn.10001e09c
mov rdi, rax
mov qword [rsp + 0x148], rax
lea rcx, [rsp + 0xd8]
call fcn.10001e06c
nop
mov dword [rsp + 0xe0], r12d
mov rdx, rdi
lea rcx, [rsp + 0xd8]
call fcn.10001e1c8
nop
mov rcx, rdi
call fcn.10001f3ec
nop
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0x190]
call fcn.10001e09c
nop
mov eax, dword [rsp + 0xe0]
mov dword [rsp + 0x198], eax
lea rdx, [0x10007e228]
lea rcx, [rsp + 0x190]
call sub.msvcrt.dll__CxxThrowException
nop
lea rdx, [rsp + 0x78]
mov rcx, rsi
call fcn.100043a04
nop
mov rbx, qword [rax]
cmp rbx, r12
je 0x10005531d
lock add dword [rbx + 8], ebp
mov qword [rsp + 0x278], rbx
mov eax, r13d
lock xadd dword [rdi + 8], eax
add eax, r13d
jne 0x10005533d
mov rax, qword [rdi]
mov edx, ebp
mov rcx, rdi
call qword [rax]
nop
mov rcx, qword [rsp + 0x78]
cmp rcx, r12
je 0x100055365
mov eax, r13d
lock xadd dword [rcx + 8], eax
add eax, r13d
jne 0x100055360
cmp rcx, r12
je 0x100055360
mov rax, qword [rcx]
mov edx, ebp
call qword [rax]
mov qword [rsp + 0x78], r12
cmp rbx, r12
jne 0x10005541c
lea rcx, [rsp + 0xb8]
call fcn.10001e06c
nop
mov r8, qword [r14]
lea rdx, [0x100013d80]
lea rcx, [rsp + 0xb8]
call fcn.10001ef50
lea rdx, [rsp + 0xb8]
lea rcx, [rsp + 0x130]
call fcn.10001e09c
mov rdi, rax
mov qword [rsp + 0x158], rax
lea rcx, [rsp + 0xf8]
call fcn.10001e06c
nop
mov dword [rsp + 0x100], r12d
mov rdx, rdi
lea rcx, [rsp + 0xf8]
call fcn.10001e1c8
nop
mov rcx, rdi
call fcn.10001f3ec
nop
lea rdx, [rsp + 0xf8]
lea rcx, [rsp + 0x170]
call fcn.10001e09c
nop
mov eax, dword [rsp + 0x100]
mov dword [rsp + 0x178], eax
lea rdx, [0x10007e228]
lea rcx, [rsp + 0x170]
call sub.msvcrt.dll__CxxThrowException
nop
lea rcx, [rsp + 0x20]
call fcn.10001e06c
nop
mov r8, rbp
lea rdx, [rsp + 0xa0]
mov rcx, rbx
call fcn.1000443f8
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.10001e1c8
nop
lea rcx, [rsp + 0xa0]
call fcn.10001f3ec
mov rdx, qword [rsp + 0x20]
cmp dword [rdx - 0x10], r12d
jne 0x100055513
lea rcx, [rsp + 0x88]
call fcn.10001e06c
nop
mov r8, qword [r14]
lea rdx, [0x100014420]
lea rcx, [rsp + 0x88]
call fcn.10001ef50
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x140]
call fcn.10001e09c
mov rdi, rax
mov qword [rsp + 0x130], rax
lea rcx, [rsp + 0x118]
call fcn.10001e06c
nop
mov dword [rsp + 0x120], r12d
mov rdx, rdi
lea rcx, [rsp + 0x118]
call fcn.10001e1c8
nop
mov rcx, rdi
call fcn.10001f3ec
nop
lea rdx, [rsp + 0x118]
lea rcx, [rsp + 0x1b0]
call fcn.10001e09c
nop
mov eax, dword [rsp + 0x120]
mov dword [rsp + 0x1b8], eax
lea rdx, [0x10007e228]
lea rcx, [rsp + 0x1b0]
call sub.msvcrt.dll__CxxThrowException
nop
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x270]
call fcn.1000433ec
nop
mov rbp, qword [rax]
cmp rbp, r12
je 0x100055538
lock add dword [rbp + 8], 1
mov qword [rsp + 0x28], rbp
mov eax, r13d
lock xadd dword [rsi + 8], eax
add eax, r13d
jne 0x100055558
mov rax, qword [rsi]
mov edx, 1
mov rcx, rsi
call qword [rax]
nop
mov rcx, qword [rsp + 0x38]
cmp rcx, r12
je 0x100055583
mov eax, r13d
lock xadd dword [rcx + 8], eax
add eax, r13d
jne 0x10005557e
cmp rcx, r12
je 0x10005557e
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rsp + 0x38], r12
cmp rbp, r12
jne 0x10005563a
lea rcx, [rsp + 0x98]
call fcn.10001e06c
nop
mov r8, qword [r14]
lea rdx, [0x100014490]
lea rcx, [rsp + 0x98]
call fcn.10001ef50
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x1c8]
call fcn.10001e09c
mov rdi, rax
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0xe8]
call fcn.10001e06c
nop
mov dword [rsp + 0xf0], r12d
mov rdx, rdi
lea rcx, [rsp + 0xe8]
call fcn.10001e1c8
nop
mov rcx, rdi
call fcn.10001f3ec
nop
lea rdx, [rsp + 0xe8]
lea rcx, [rsp + 0x1a0]
call fcn.10001e09c
nop
mov eax, dword [rsp + 0xf0]
mov dword [rsp + 0x1a8], eax
lea rdx, [0x10007e228]
lea rcx, [rsp + 0x1a0]
call sub.msvcrt.dll__CxxThrowException
nop
lea rdx, [rbp + 0x18]
lea rcx, [rsp + 0x20]
call fcn.10001e1c8
xor eax, eax
mov rcx, r13
lea rdx, [0x100014500]
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea edi, [rax + 1]
sub rcx, rdi
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.10001ed3c
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x270]
call fcn.1000432d4
nop
mov rsi, qword [rax]
cmp rsi, r12
je 0x100055694
lock add dword [rsi + 8], edi
mov qword [rsp + 0x28], rsi
mov eax, r13d
lock xadd dword [rbp + 8], eax
add eax, r13d
jne 0x1000556b2
mov rax, qword [rbp]
mov edx, edi
mov rcx, rbp
call qword [rax]
nop
mov rcx, qword [rsp + 0x40]
cmp rcx, r12
je 0x1000556da
mov eax, r13d
lock xadd dword [rcx + 8], eax
add eax, r13d
jne 0x1000556d5
cmp rcx, r12
je 0x1000556d5
mov rax, qword [rcx]
mov edx, edi
call qword [rax]
mov qword [rsp + 0x40], r12
cmp rsi, r12
jne 0x100055747
lea rcx, [rsp + 0x20]
call fcn.10001f3ec
nop
mov eax, r13d
lock xadd dword [rbx + 8], eax
add eax, r13d
jne 0x100055701
mov rax, qword [rbx]
mov edx, edi
mov rcx, rbx
call qword [rax]
mov qword [rsp + 0x278], r12
mov rax, qword [rsp + 0x270]
cmp rax, r12
je 0x10005573a
mov ecx, r13d
lock xadd dword [rax + 8], ecx
add ecx, r13d
jne 0x100055732
mov rcx, qword [rsp + 0x270]
mov rax, qword [rcx]
mov edx, edi
call qword [rax]
mov qword [rsp + 0x270], r12
mov rcx, r14
call fcn.10001f3ec
jmp 0x100055a91
lea rdx, [0x100014528]
lea rcx, [rsp + 0x60]
call fcn.10001e134
nop
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.100043b54
nop
mov rdi, qword [rax]
cmp rdi, r12
je 0x10005577f
mov ebp, 1
lock add dword [rdi + 8], ebp
jmp 0x100055784
mov ebp, 1
mov qword [rsp + 0x278], rdi
mov eax, r13d
lock xadd dword [rbx + 8], eax
add eax, r13d
jne 0x1000557a4
mov rax, qword [rbx]
mov edx, ebp
mov rcx, rbx
call qword [rax]
nop
mov rcx, qword [rsp + 0x50]
cmp rcx, r12
je 0x1000557cc
mov eax, r13d
lock xadd dword [rcx + 8], eax
add eax, r13d
jne 0x1000557c7
cmp rcx, r12
je 0x1000557c7
mov rax, qword [rcx]
mov edx, ebp
call qword [rax]
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x60]
call fcn.10001f3ec
cmp rdi, r12
jne 0x100055840
lea rcx, [rsp + 0x20]
call fcn.10001f3ec
nop
mov eax, r13d
lock xadd dword [rsi + 8], eax
add eax, r13d
jne 0x1000557fd
mov rax, qword [rsi]
mov edx, ebp
mov rcx, rsi
call qword [rax]
mov qword [rsp + 0x28], r12
mov rax, qword [rsp + 0x270]
cmp rax, r12
je 0x100055833
mov ecx, r13d
lock xadd dword [rax + 8], ecx
add ecx, r13d
jne 0x10005582b
mov rcx, qword [rsp + 0x270]
mov rax, qword [rcx]
mov edx, ebp
call qword [rax]
mov qword [rsp + 0x270], r12
mov rcx, r14
call fcn.10001f3ec
jmp 0x100055a91
lea rcx, [rsp + 0x1d0]
call fcn.100018ee8
nop
mov rdi, qword [rsp + 0x278]
mov r8, rbp
lea rdx, [rsp + 0x80]
mov rcx, rdi
call fcn.1000443f8
nop
mov rdx, qword [rsp + 0x80]
cmp dword [rdx - 0x10], r12d
je 0x100055885
lea rcx, [rsp + 0x1d0]
call fcn.10001ee9c
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.100044334
nop
mov rbx, qword [rax]
cmp rdi, r12
je 0x1000558df
mov rcx, rdi
cmp rbx, r12
je 0x1000558a7
lock add dword [rbx + 8], ebp
mov rdi, rbx
mov qword [rsp + 0x278], rbx
cmp rcx, r12
je 0x1000558f3
mov eax, r13d
lock xadd dword [rcx + 8], eax
add eax, r13d
jne 0x1000558d5
mov rax, qword [rcx]
mov edx, ebp
call qword [rax]
mov rdi, qword [rsp + 0x278]
jmp 0x1000558f3
mov rdi, qword [rsp + 0x278]
jmp 0x1000558f3
cmp rbx, r12
je 0x1000558e8
lock add dword [rbx + 8], ebp
mov rdi, rbx
mov qword [rsp + 0x278], rbx
mov rcx, qword [rsp + 0x70]
cmp rcx, r12
je 0x100055923
mov eax, r13d
lock xadd dword [rcx + 8], eax
add eax, r13d
jne 0x100055916
cmp rcx, r12
je 0x100055916
mov rax, qword [rcx]
mov edx, ebp
call qword [rax]
mov qword [rsp + 0x70], r12
mov rdi, qword [rsp + 0x278]
lea rcx, [rsp + 0x80]
call fcn.10001f3ec
cmp rbx, r12
jne 0x100055856
xor edx, edx
xor ecx, ecx
mov r8d, 0xe0000000
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r13, rax
cmp rax, r12
je 0x100055a2f
mov ebx, r12d
mov rdi, qword [rsp + 0x1d0]
cmp rdi, r12
je 0x100055a05
mov eax, r12d
cmp rdi, r12
setne al
cmp eax, r12d
je 0x100055a16
mov rdx, rdi
mov rdi, qword [rdi]
add rdx, 0x10
lea rcx, [rsp + 0x30]
call fcn.10001e09c
nop
mov ebp, 1
mov r8d, 0x80000000
mov rdx, qword [rsp + 0x30]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r12, rax
test rax, rax
jne 0x1000559c2
lea rcx, [rsp + 0x30]
call fcn.10001f3ec
cmp rdi, r12
jne 0x100055969
jmp 0x100055a05
xor ebp, ebp
lea rdx, [rsp + 0x200]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp ebx, 0xc
jne 0x1000559ec
mov dword [r15], 1
jmp 0x1000559f8
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
lea rcx, [rsp + 0x30]
call fcn.10001f3ec
xor r12d, r12d
inc ebx
cmp ebp, r12d
jne 0x100055a21
cmp ebx, 0xd
jae 0x100055a21
jmp 0x100055958
mov ecx, 0x80004005
call fcn.10001f28c
int3
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebp, 1
lea rcx, [rsp + 0x1d0]
call fcn.10001a784
nop
lea rcx, [rsp + 0x20]
call fcn.10001f3ec
nop
lock add dword [rsi + 8], 0xffffffff
jne 0x100055a59
mov rax, qword [rsi]
mov edx, ebp
mov rcx, rsi
call qword [rax]
mov qword [rsp + 0x28], r12
mov rax, qword [rsp + 0x270]
cmp rax, r12
je 0x100055a89
lock add dword [rax + 8], 0xffffffff
jne 0x100055a81
mov rcx, qword [rsp + 0x270]
mov rax, qword [rcx]
mov edx, ebp
call qword [rax]
mov qword [rsp + 0x270], r12
mov rcx, r14
call fcn.10001f3ec
mov rbx, qword [rsp + 0x268]
add rsp, 0x220
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret