Function at 0x140012f90
Capabilities:
Query service status

Disassembly:
push rbx
push rdi
sub rsp, 0x2f8
mov rax, qword [0x14003ebd8]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
xor edi, edi
movsxd rbx, ecx
mov qword [rsp + 0x30], rdx
lea ecx, [rdi + 1]
cmp ebx, ecx
jge 0x140012fc7
call fcn.14000a1c0
jmp 0x14001325b
mov qword [rsp + 0x2e0], r15
call fcn.140011340
mov r15, rax
test rax, rax
jne 0x140012ffa
lea ecx, [rax + 2]
call fcn.14001c1d0
mov rcx, rax
mov edx, 0x400001fb
call fcn.140002950
lea eax, [r15 + 1]
jmp 0x140013253
mov qword [rsp + 0x328], r12
mov qword [rsp + 0x2f0], r13
call fcn.14000a920
mov qword [rsp + 0x38], rax
mov r13, rax
mov r12, rbx
test ebx, ebx
jle 0x140013229
mov r13, qword [rsp + 0x30]
mov qword [rsp + 0x310], rbp
mov rbp, rdi
mov qword [rsp + 0x320], rsi
mov qword [rsp + 0x2e8], r14
mov rdx, qword [r13 + rbp*8]
lea r9, [rsp + 0xd0]
mov r8d, 4
mov dword [rsp + 0x20], 0x100
mov rcx, r15
call fcn.140010fa0
mov rsi, rax
test rax, rax
jne 0x140013074
inc edi
jmp 0x140013200
lea rax, [rsp + 0x30]
mov r9d, 0x24
lea r8, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov r14d, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
jne 0x1400130e5
mov ecx, r14d
call fcn.140002510
mov ecx, 2
mov rbx, rax
call fcn.14001c1d0
mov rcx, rax
lea r8, [rsp + 0xd0]
mov r9, rbx
lea rdx, str._s:__s_n
call fcn.140007920
inc edi
jmp 0x140013200
mov r8d, dword [rsp + 0xbc]
xorps xmm0, xmm0
xor eax, eax
mov qword [rsp + 0x90], rax
movups xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x54], r8d
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
test r8d, r8d
je 0x140013200
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x14001317b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140002510
mov ecx, 2
mov rbx, rax
call fcn.14001c1d0
mov r9d, dword [rsp + 0x54]
lea r8, [rsp + 0xd0]
mov rcx, rax
mov qword [rsp + 0x20], rbx
lea rdx, str._s:__lu:__s_n
call fcn.140007920
jmp 0x140013200
lea rdx, [rsp + 0x80]
mov rcx, rax
call fcn.14000aa70
test eax, eax
jne 0x140013200
lea rcx, [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
call fcn.14000ede0
mov rsi, rax
test rax, rax
jne 0x1400131ae
inc edi
jmp 0x140013200
lea rbx, [rax + 2]
mov edx, 0x100
lea rax, [rsp + 0xd0]
mov rcx, rbx
lea r9, [0x14002ecd8]
mov qword [rsp + 0x20], rax
mov r8, 0xffffffffffffffff
call fcn.140001d80
mov r9d, dword [rsp + 0x54]
lea r8, [rsp + 0x40]
lea rdx, [0x14000b0a0]
mov qword [rsp + 0x40], rbx
mov rcx, rsi
call fcn.14000b2a0
mov rcx, rsi
call fcn.14000f310
inc rbp
cmp rbp, r12
jl 0x140013042
mov r13, qword [rsp + 0x38]
mov r14, qword [rsp + 0x2e8]
mov rsi, qword [rsp + 0x320]
mov rbp, qword [rsp + 0x310]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r12, qword [rsp + 0x328]
cmp r13, 0xffffffffffffffff
je 0x140013249
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r13, qword [rsp + 0x2f0]
mov eax, edi
mov r15, qword [rsp + 0x2e0]
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.1400180d0
add rsp, 0x2f8
pop rdi
pop rbx
ret