Function at 0x140011db0
Capabilities:
Query service status

Disassembly:
push rbx
push rdi
sub rsp, 0x2f8
mov rax, qword [0x140030f90]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
movsxd rbx, ecx
xor edi, edi
mov qword [rsp + 0x30], rdx
cmp ebx, 1
jge 0x140011de8
lea ecx, [rdi + 1]
call fcn.140009fb0
jmp 0x140012064
mov ecx, 1
mov qword [rsp + 0x2f0], r13
call fcn.14000ee10
mov r13, rax
test rax, rax
jne 0x140011e1e
call fcn.140017f4c
mov edx, 0x400001fb
lea rcx, [rax + 0x60]
call fcn.1400026b0
lea eax, [r13 + 1]
jmp 0x14001205c
mov qword [rsp + 0x310], rbp
mov qword [rsp + 0x2e8], r14
mov qword [rsp + 0x2e0], r15
call fcn.14000a810
mov rbp, rdi
mov r14, rbx
mov r15, rax
mov qword [rsp + 0x38], rax
test ebx, ebx
jle 0x14001202a
mov r15, qword [rsp + 0x30]
mov qword [rsp + 0x320], rsi
mov qword [rsp + 0x328], r12
nop word [rax + rax]
mov rdx, qword [r15 + rbp*8]
lea r9, [rsp + 0xd0]
mov r8d, 4
mov rcx, r13
mov dword [rsp + 0x20], 0x100
call fcn.14000ee50
mov rsi, rax
test rax, rax
jne 0x140011ea1
inc edi
jmp 0x140012009
lea rax, [rsp + 0x30]
lea r8, [rsp + 0xa0]
mov r9d, 0x24
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov r12d, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
jne 0x140011f0e
mov ecx, r12d
call fcn.140002430
mov rbx, rax
call fcn.140017f4c
lea r8, [rsp + 0xd0]
lea rdx, str._s:__s_n
lea rcx, [rax + 0x60]
mov r9, rbx
call fcn.140018cf0
inc edi
jmp 0x140012009
xor edx, edx
lea rcx, [rsp + 0x40]
lea r8d, [rdx + 0x58]
call fcn.140018830
mov r8d, dword [rsp + 0xbc]
mov dword [rsp + 0x54], r8d
test r8d, r8d
je 0x140012009
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x140011f87
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140002430
mov rbx, rax
call fcn.140017f4c
mov r9d, dword [rsp + 0x54]
lea r8, [rsp + 0xd0]
lea rdx, str._s:__lu:__s_n
lea rcx, [rax + 0x60]
mov qword [rsp + 0x20], rbx
call fcn.140018cf0
jmp 0x140012009
lea rdx, [rsp + 0x80]
mov rcx, rax
call fcn.14000aa00
test eax, eax
jne 0x140012009
lea rcx, [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
call fcn.140010290
mov rsi, rax
test rax, rax
jne 0x140011fba
inc edi
jmp 0x140012009
lea rbx, [rax + 2]
lea rax, [rsp + 0xd0]
lea r9, [0x140026d5c]
or r8, 0xffffffffffffffff
mov edx, 0x100
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.140018170
mov r9d, dword [rsp + 0x54]
lea r8, [rsp + 0x40]
lea rdx, [0x14000b050]
mov rcx, rsi
mov qword [rsp + 0x40], rbx
call fcn.14000b2d0
mov rcx, rsi
call fcn.1400102f0
inc rbp
cmp rbp, r14
jl 0x140011e70
mov r15, qword [rsp + 0x38]
mov r12, qword [rsp + 0x328]
mov rsi, qword [rsp + 0x320]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r14, qword [rsp + 0x2e8]
mov rbp, qword [rsp + 0x310]
cmp r15, 0xffffffffffffffff
je 0x140012052
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15, qword [rsp + 0x2e0]
mov eax, edi
mov r13, qword [rsp + 0x2f0]
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140018800
add rsp, 0x2f8
pop rdi
pop rbx
ret