Function at 0x10004e850
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 + 0x1c8], 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.100043a48
mov rdx, r14
mov rcx, qword [rsp + 0x270]
call fcn.1000606b4
lea rdx, [0x100011b90]
lea rcx, [rsp + 0x90]
call fcn.100020428
nop
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x270]
call fcn.100060d14
nop
mov rbx, qword [rax]
lea ebp, [r12 + 1]
cmp rbx, r12
je 0x10004e8ec
lock add dword [rbx + 8], ebp
mov qword [rsp + 0x28], rbx
or r13, 0xffffffffffffffff
mov rcx, qword [rsp + 0x80]
cmp rcx, r12
je 0x10004e923
mov eax, r13d
lock xadd dword [rcx + 8], eax
add eax, r13d
jne 0x10004e91b
cmp rcx, r12
je 0x10004e91b
mov rax, qword [rcx]
mov edx, ebp
call qword [rax]
mov qword [rsp + 0x80], r12
lea rcx, [rsp + 0x90]
call fcn.10002006c
cmp rbx, r12
jne 0x10004e9f1
lea rcx, [rsp + 0xd0]
call fcn.100020360
nop
mov r8, qword [r14]
lea rdx, [0x100011bb0]
lea rcx, [rsp + 0xd0]
call fcn.100020218
lea rdx, [rsp + 0x140]
mov qword [rsp + 0x30], rdx
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x140]
call fcn.100020390
mov rdi, rax
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0xf8]
call fcn.100020360
nop
mov dword [rsp + 0x100], r12d
mov rdx, rdi
lea rcx, [rsp + 0xf8]
call fcn.10001f050
nop
mov rcx, rdi
call fcn.10002006c
nop
lea rdx, [rsp + 0xf8]
lea rcx, [rsp + 0x168]
call fcn.100020390
nop
mov eax, dword [rsp + 0x100]
mov dword [rsp + 0x170], eax
lea rdx, [0x10007fbb8]
lea rcx, [rsp + 0x168]
call sub.msvcrt.dll__CxxThrowException
nop
lea rdx, [rsp + 0xb8]
mov rcx, rbx
call fcn.100061738
nop
mov rdi, qword [rax]
cmp rdi, r12
je 0x10004ea0e
lock add dword [rdi + 8], ebp
mov qword [rsp + 0x278], rdi
mov rcx, qword [rsp + 0xb8]
cmp rcx, r12
je 0x10004ea44
mov eax, r13d
lock xadd dword [rcx + 8], eax
add eax, r13d
jne 0x10004ea3c
cmp rcx, r12
je 0x10004ea3c
mov rax, qword [rcx]
mov edx, ebp
call qword [rax]
mov qword [rsp + 0xb8], r12
cmp rdi, r12
jne 0x10004eb05
lea rcx, [rsp + 0xc8]
call fcn.100020360
nop
mov r8, qword [r14]
lea rdx, [0x100011c20]
lea rcx, [rsp + 0xc8]
call fcn.100020218
lea rdx, [rsp + 0x138]
mov qword [rsp + 0x30], rdx
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x138]
call fcn.100020390
mov rdi, rax
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x118]
call fcn.100020360
nop
mov dword [rsp + 0x120], r12d
mov rdx, rdi
lea rcx, [rsp + 0x118]
call fcn.10001f050
nop
mov rcx, rdi
call fcn.10002006c
nop
lea rdx, [rsp + 0x118]
lea rcx, [rsp + 0x198]
call fcn.100020390
nop
mov eax, dword [rsp + 0x120]
mov dword [rsp + 0x1a0], eax
lea rdx, [0x10007fbb8]
lea rcx, [rsp + 0x198]
call sub.msvcrt.dll__CxxThrowException
nop
xor r8d, r8d
lea rdx, [rsp + 0x150]
mov rcx, rdi
call fcn.1000626a0
nop
mov r8, rax
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x270]
call fcn.100060d14
nop
mov rsi, qword [rax]
cmp rsi, r12
je 0x10004eb3b
lock add dword [rsi + 8], ebp
mov qword [rsp + 0x28], rsi
mov eax, r13d
lock xadd dword [rbx + 8], eax
add eax, r13d
jne 0x10004eb58
mov rax, qword [rbx]
mov edx, ebp
mov rcx, rbx
call qword [rax]
nop
mov rcx, qword [rsp + 0x68]
cmp rcx, r12
je 0x10004eb80
mov eax, r13d
lock xadd dword [rcx + 8], eax
add eax, r13d
jne 0x10004eb7b
cmp rcx, r12
je 0x10004eb7b
mov rax, qword [rcx]
mov edx, ebp
call qword [rax]
mov qword [rsp + 0x68], r12
lea rcx, [rsp + 0x150]
call fcn.10002006c
cmp rsi, r12
jne 0x10004ec73
lea rcx, [rsp + 0x98]
call fcn.100020360
nop
mov r8, rbp
lea rdx, [rsp + 0x160]
mov rcx, rdi
call fcn.1000624b8
nop
mov r9, qword [r14]
mov r8, qword [rax]
lea rdx, [0x100011cb0]
lea rcx, [rsp + 0x98]
call fcn.100020218
nop
lea rcx, [rsp + 0x160]
call fcn.10002006c
lea rdx, [rsp + 0x148]
mov qword [rsp + 0x30], rdx
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x148]
call fcn.100020390
mov rdi, rax
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0xe8]
call fcn.100020360
nop
mov dword [rsp + 0xf0], r12d
mov rdx, rdi
lea rcx, [rsp + 0xe8]
call fcn.10001f050
nop
mov rcx, rdi
call fcn.10002006c
nop
lea rdx, [rsp + 0xe8]
lea rcx, [rsp + 0x1b8]
call fcn.100020390
nop
mov eax, dword [rsp + 0xf0]
mov dword [rsp + 0x1c0], eax
lea rdx, [0x10007fbb8]
lea rcx, [rsp + 0x1b8]
call sub.msvcrt.dll__CxxThrowException
nop
lea rdx, [rsp + 0x78]
mov rcx, rsi
call fcn.100061738
nop
mov rbx, qword [rax]
cmp rbx, r12
je 0x10004ec8d
lock add dword [rbx + 8], ebp
mov qword [rsp + 0x278], rbx
mov eax, r13d
lock xadd dword [rdi + 8], eax
add eax, r13d
jne 0x10004ecad
mov rax, qword [rdi]
mov edx, ebp
mov rcx, rdi
call qword [rax]
nop
mov rcx, qword [rsp + 0x78]
cmp rcx, r12
je 0x10004ecd5
mov eax, r13d
lock xadd dword [rcx + 8], eax
add eax, r13d
jne 0x10004ecd0
cmp rcx, r12
je 0x10004ecd0
mov rax, qword [rcx]
mov edx, ebp
call qword [rax]
mov qword [rsp + 0x78], r12
cmp rbx, r12
jne 0x10004ed96
lea rcx, [rsp + 0xa0]
call fcn.100020360
nop
mov r8, qword [r14]
lea rdx, [0x100011d10]
lea rcx, [rsp + 0xa0]
call fcn.100020218
lea rdx, [rsp + 0x158]
mov qword [rsp + 0x30], rdx
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x158]
call fcn.100020390
mov rdi, rax
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x108]
call fcn.100020360
nop
mov dword [rsp + 0x110], r12d
mov rdx, rdi
lea rcx, [rsp + 0x108]
call fcn.10001f050
nop
mov rcx, rdi
call fcn.10002006c
nop
lea rdx, [rsp + 0x108]
lea rcx, [rsp + 0x178]
call fcn.100020390
nop
mov eax, dword [rsp + 0x110]
mov dword [rsp + 0x180], eax
lea rdx, [0x10007fbb8]
lea rcx, [rsp + 0x178]
call sub.msvcrt.dll__CxxThrowException
nop
lea rcx, [rsp + 0x20]
call fcn.100020360
nop
mov r8, rbp
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.1000624b8
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.10001f050
nop
lea rcx, [rsp + 0x48]
call fcn.10002006c
mov rdx, qword [rsp + 0x20]
cmp dword [rdx - 0x10], r12d
jne 0x10004ee8b
lea rcx, [rsp + 0x88]
call fcn.100020360
nop
mov r8, qword [r14]
lea rdx, [0x1000123b0]
lea rcx, [rsp + 0x88]
call fcn.100020218
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x30], rdx
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x38]
call fcn.100020390
mov rdi, rax
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x128]
call fcn.100020360
nop
mov dword [rsp + 0x130], r12d
mov rdx, rdi
lea rcx, [rsp + 0x128]
call fcn.10001f050
nop
mov rcx, rdi
call fcn.10002006c
nop
lea rdx, [rsp + 0x128]
lea rcx, [rsp + 0x188]
call fcn.100020390
nop
mov eax, dword [rsp + 0x130]
mov dword [rsp + 0x190], eax
lea rdx, [0x10007fbb8]
lea rcx, [rsp + 0x188]
call sub.msvcrt.dll__CxxThrowException
nop
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x270]
call fcn.100060eb0
nop
mov rbp, qword [rax]
cmp rbp, r12
je 0x10004eeb3
lock add dword [rbp + 8], 1
mov qword [rsp + 0x28], rbp
mov eax, r13d
lock xadd dword [rsi + 8], eax
add eax, r13d
jne 0x10004eed3
mov rax, qword [rsi]
mov edx, 1
mov rcx, rsi
call qword [rax]
nop
mov rcx, qword [rsp + 0xb0]
cmp rcx, r12
je 0x10004ef04
mov eax, r13d
lock xadd dword [rcx + 8], eax
add eax, r13d
jne 0x10004eefc
cmp rcx, r12
je 0x10004eefc
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rsp + 0xb0], r12
cmp rbp, r12
jne 0x10004efb6
lea rcx, [rsp + 0x50]
call fcn.100020360
nop
mov r8, qword [r14]
lea rdx, [0x100012420]
lea rcx, [rsp + 0x50]
call fcn.100020218
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x38], rdx
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.100020390
mov rdi, rax
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0xd8]
call fcn.100020360
nop
mov dword [rsp + 0xe0], r12d
mov rdx, rdi
lea rcx, [rsp + 0xd8]
call fcn.10001f050
nop
mov rcx, rdi
call fcn.10002006c
nop
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0x1a8]
call fcn.100020390
nop
mov eax, dword [rsp + 0xe0]
mov dword [rsp + 0x1b0], eax
lea rdx, [0x10007fbb8]
lea rcx, [rsp + 0x1a8]
call sub.msvcrt.dll__CxxThrowException
nop
lea rdx, [rbp + 0x18]
lea rcx, [rsp + 0x20]
call fcn.10001f050
xor eax, eax
mov rcx, r13
lea rdx, [0x100012490]
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.10001fec8
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0xc0]
mov rcx, qword [rsp + 0x270]
call fcn.100060d14
nop
mov rsi, qword [rax]
cmp rsi, r12
je 0x10004f013
lock add dword [rsi + 8], edi
mov qword [rsp + 0x28], rsi
mov eax, r13d
lock xadd dword [rbp + 8], eax
add eax, r13d
jne 0x10004f031
mov rax, qword [rbp]
mov edx, edi
mov rcx, rbp
call qword [rax]
nop
mov rcx, qword [rsp + 0xc0]
cmp rcx, r12
je 0x10004f05f
mov eax, r13d
lock xadd dword [rcx + 8], eax
add eax, r13d
jne 0x10004f057
cmp rcx, r12
je 0x10004f057
mov rax, qword [rcx]
mov edx, edi
call qword [rax]
mov qword [rsp + 0xc0], r12
cmp rsi, r12
jne 0x10004f0cc
lea rcx, [rsp + 0x20]
call fcn.10002006c
nop
mov eax, r13d
lock xadd dword [rbx + 8], eax
add eax, r13d
jne 0x10004f086
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 0x10004f0bf
mov ecx, r13d
lock xadd dword [rax + 8], ecx
add ecx, r13d
jne 0x10004f0b7
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.10002006c
jmp 0x10004f417
lea rdx, [0x1000124b8]
lea rcx, [rsp + 0x58]
call fcn.100020428
nop
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0xa8]
mov rcx, rsi
call fcn.100061938
nop
mov rdi, qword [rax]
cmp rdi, r12
je 0x10004f107
mov ebp, 1
lock add dword [rdi + 8], ebp
jmp 0x10004f10c
mov ebp, 1
mov qword [rsp + 0x278], rdi
mov eax, r13d
lock xadd dword [rbx + 8], eax
add eax, r13d
jne 0x10004f12c
mov rax, qword [rbx]
mov edx, ebp
mov rcx, rbx
call qword [rax]
nop
mov rcx, qword [rsp + 0xa8]
cmp rcx, r12
je 0x10004f15a
mov eax, r13d
lock xadd dword [rcx + 8], eax
add eax, r13d
jne 0x10004f152
cmp rcx, r12
je 0x10004f152
mov rax, qword [rcx]
mov edx, ebp
call qword [rax]
mov qword [rsp + 0xa8], r12
lea rcx, [rsp + 0x58]
call fcn.10002006c
cmp rdi, r12
jne 0x10004f1ce
lea rcx, [rsp + 0x20]
call fcn.10002006c
nop
mov eax, r13d
lock xadd dword [rsi + 8], eax
add eax, r13d
jne 0x10004f18b
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 0x10004f1c1
mov ecx, r13d
lock xadd dword [rax + 8], ecx
add ecx, r13d
jne 0x10004f1b9
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.10002006c
jmp 0x10004f417
lea rcx, [rsp + 0x1d0]
call fcn.1000193b8
nop
mov rdi, qword [rsp + 0x278]
mov r8, rbp
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.1000624b8
nop
mov rdx, qword [rsp + 0x70]
cmp dword [rdx - 0x10], r12d
je 0x10004f20d
lea rcx, [rsp + 0x1d0]
call fcn.10001f8e0
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.1000623ac
nop
mov rbx, qword [rax]
cmp rdi, r12
je 0x10004f267
mov rcx, rdi
cmp rbx, r12
je 0x10004f22f
lock add dword [rbx + 8], ebp
mov rdi, rbx
mov qword [rsp + 0x278], rbx
cmp rcx, r12
je 0x10004f27b
mov eax, r13d
lock xadd dword [rcx + 8], eax
add eax, r13d
jne 0x10004f25d
mov rax, qword [rcx]
mov edx, ebp
call qword [rax]
mov rdi, qword [rsp + 0x278]
jmp 0x10004f27b
mov rdi, qword [rsp + 0x278]
jmp 0x10004f27b
cmp rbx, r12
je 0x10004f270
lock add dword [rbx + 8], ebp
mov rdi, rbx
mov qword [rsp + 0x278], rbx
mov rcx, qword [rsp + 0x60]
cmp rcx, r12
je 0x10004f2ab
mov eax, r13d
lock xadd dword [rcx + 8], eax
add eax, r13d
jne 0x10004f29e
cmp rcx, r12
je 0x10004f29e
mov rax, qword [rcx]
mov edx, ebp
call qword [rax]
mov qword [rsp + 0x60], r12
mov rdi, qword [rsp + 0x278]
lea rcx, [rsp + 0x70]
call fcn.10002006c
cmp rbx, r12
jne 0x10004f1e4
xor edx, edx
xor ecx, ecx
mov r8d, 0xe0000000
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r13, rax
cmp rax, r12
je 0x10004f3b5
mov ebx, r12d
mov rdi, qword [rsp + 0x1d0]
cmp rdi, r12
je 0x10004f38a
mov eax, r12d
cmp rdi, r12
setne al
cmp eax, r12d
je 0x10004f39c
mov rdx, rdi
mov rdi, qword [rdi]
add rdx, 0x10
lea rcx, [rsp + 0x40]
call fcn.100020390
nop
mov ebp, 1
mov r8d, 0x80000000
mov rdx, qword [rsp + 0x40]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r12, rax
test rax, rax
jne 0x10004f347
lea rcx, [rsp + 0x40]
call fcn.10002006c
cmp rdi, r12
jne 0x10004f2ee
jmp 0x10004f38a
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 0x10004f371
mov dword [r15], 1
jmp 0x10004f37d
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
lea rcx, [rsp + 0x40]
call fcn.10002006c
xor r12d, r12d
add ebx, 1
cmp ebp, r12d
jne 0x10004f3a7
cmp ebx, 0xd
jae 0x10004f3a7
jmp 0x10004f2dd
mov ecx, 0x80004005
call fcn.1000201f8
int3
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebp, 1
lea rcx, [rsp + 0x1d0]
call fcn.10001f994
nop
lea rcx, [rsp + 0x20]
call fcn.10002006c
nop
lock add dword [rsi + 8], 0xffffffff
jne 0x10004f3df
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 0x10004f40f
lock add dword [rax + 8], 0xffffffff
jne 0x10004f407
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.10002006c
mov rbx, qword [rsp + 0x268]
add rsp, 0x220
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret