Function at 0x140009ea0
Capabilities:
Query service status

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
push rbp
mov rbp, rsp
sub rsp, 0x448
mov rbx, rcx
xor ecx, ecx
xor edx, edx
mov r8d, 1
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rsi, rsi
je 0x14000a077
mov rcx, rsi
lea rdx, [0x14001e060]
mov r8d, 5
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r12, rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [rbp - 4], 0
mov rcx, r12
xor edx, edx
xor r8d, r8d
lea r9, [rbp - 4]
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x140009f1f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000a06e
mov r8d, dword [rbp - 4]
mov eax, r8d
add rax, 0xf
and rax, 0xfffffffffffffff0
call fcn.14000bbc0
sub rsp, rax
lea rax, [rsp + 0x30]
mov rsi, rax
mov rcx, r12
mov rdx, rsi
lea r9, [rbp - 4]
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x14000a06e
lea rax, [rbp - 4]
mov qword [rsp + 0x20], rax
mov rcx, r12
xor edx, edx
xor r8, r8
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x140009f83
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000a06e
mov edi, dword [rbp - 4]
mov ecx, edi
call fcn.14000b700
mov r14, rax
lea rax, [rbp - 4]
mov qword [rsp + 0x20], rax
mov rcx, r12
xor edx, edx
mov r8, r14
mov r9d, edi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x14000a07e
lea rdi, [rbp - 0x20c]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rdi, [rbp - 0x414]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
cmp dword [rsi + 4], 4
je 0x14000a088
mov eax, dword [r14 + 4]
cmp eax, 1
je 0x14000a131
cmp eax, 4
je 0x14000a22d
cmp eax, 7
jne 0x14000a2d1
lea rcx, [rbp - 0x20c]
mov edx, 0x104
lea r8, str.Current_state:_Paused
call fcn.14000b010
mov rcx, rbx
mov edx, 0xfb7
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
call qword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x14000a2d1
mov rcx, rbx
mov edx, 0xfb7
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
lea rdx, [0x1400181a0]
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, rbx
mov edx, 0xfb7
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_EnableWindow]
jmp 0x14000a2d1
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x14000a613
mov rcx, r14
call fcn.14000bb50
jmp 0x14000a06e
lea rcx, [rbp - 0x20c]
mov edx, 0x104
lea r8, str.Current_state:_Disabled
call fcn.14000b010
mov rcx, rbx
mov edx, 0xfb7
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
call qword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x14000a0f2
mov rcx, rbx
mov edx, 0xfb7
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
lea rdx, [0x1400181a0]
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, rbx
mov edx, 0xfb7
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_EnableWindow]
mov rcx, rbx
mov edx, 0xfb9
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
lea rdx, str.Enable
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, rbx
mov edx, 0xfb9
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
jmp 0x14000a2d1
lea rcx, [rbp - 0x20c]
mov edx, 0x104
lea r8, str.Current_state:_Stopped
call fcn.14000b010
mov rcx, rbx
mov edx, 0xfb7
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
lea rdx, str.Start
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, rbx
mov edx, 0xfb7
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
mov rcx, rbx
mov edx, 0xfb8
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
call qword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x14000a1d5
mov rcx, rbx
mov edx, 0xfb8
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
lea rdx, [0x14001813a]
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, rbx
mov edx, 0xfb8
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_EnableWindow]
mov rcx, rbx
mov edx, 0xfb9
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
lea rdx, str.Disable
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, rbx
mov edx, 0xfb9
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
mov rcx, rbx
mov edx, 0xfb6
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_EnableWindow]
jmp 0x14000a2d1
lea rcx, [rbp - 0x20c]
mov edx, 0x104
lea r8, str.Current_state:_Running
call fcn.14000b010
mov rcx, rbx
mov edx, 0xfb7
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
lea rdx, str.Stop
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, rbx
mov edx, 0xfb7
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
mov rcx, rbx
mov edx, 0xfb9
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
call qword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x14000a2d1
mov rcx, rbx
mov edx, 0xfb9
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
lea rdx, [0x1400180d4]
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, rbx
mov edx, 0xfb9
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_EnableWindow]
mov rcx, rbx
mov edx, 0xfb1
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
lea rdx, [rbp - 0x20c]
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov esi, dword [r14 + 0x1c]
test esi, esi
jne 0x14000a311
lea rcx, [rbp - 0x20c]
mov edx, 0x104
lea r8, str.Process_Id:_None
call fcn.14000b010
jmp 0x14000a36a
mov ecx, esi
lea rdx, [rbp - 0x414]
mov r8d, 0xa
call fcn.14000af40
lea rcx, [rbp - 0x20c]
mov edx, 0x104
lea r8, str.Process_Id:__ls
mov r9, rax
call fcn.14000b010
mov rcx, rbx
mov edx, 0xfb6
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
test eax, eax
je 0x14000a36a
mov eax, dword [r14 + 0x1c]
mov dword [0x14001e280], eax
mov rcx, rbx
mov edx, 0xfb2
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
lea rdx, [rbp - 0x20c]
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov esi, dword [r14 + 8]
test esi, esi
jne 0x14000a3c8
lea rcx, [rbp - 0x20c]
mov edx, 0x104
lea r8, str.Controls_accepted:_None
call fcn.14000b010
mov rcx, rbx
mov edx, 0xfb3
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
lea rdx, [rbp - 0x20c]
call qword [sym.imp.USER32.dll_SetWindowTextW]
jmp 0x14000a3d6
mov r8d, dword [r14 + 4]
mov rcx, rbx
mov edx, esi
call fcn.1400033e0
mov esi, dword [r14 + 0xc]
cmp esi, 0x1f
je 0x14000a454
jg 0x14000a40b
test esi, esi
je 0x14000a43a
cmp esi, 1
jne 0x14000a488
lea rcx, [rbp - 0x20c]
mov edx, 0x104
lea r8, str.Win32_exit_code:_INVALID_FUNCTION
call fcn.14000b010
jmp 0x14000a4b7
cmp esi, 0x42a
je 0x14000a46e
jl 0x14000a488
cmp esi, 0x435
jne 0x14000a488
lea rcx, [rbp - 0x20c]
mov edx, 0x104
lea r8, str.Win32_exit_code:_SERVICE_NEVER_STARTED
call fcn.14000b010
jmp 0x14000a4b7
lea rcx, [rbp - 0x20c]
mov edx, 0x104
lea r8, str.Win32_exit_code:_NO_ERROR
call fcn.14000b010
jmp 0x14000a4b7
lea rcx, [rbp - 0x20c]
mov edx, 0x104
lea r8, str.Win32_exit_code:_GEN_FAILURE
call fcn.14000b010
jmp 0x14000a4b7
lea rcx, [rbp - 0x20c]
mov edx, 0x104
lea r8, str.Win32_exit_code:_SERVICE_SPECIFIC_ERROR
call fcn.14000b010
jmp 0x14000a4b7
mov ecx, esi
lea rdx, [rbp - 0x414]
mov r8d, 0xa
call fcn.14000af40
lea rcx, [rbp - 0x20c]
mov edx, 0x104
lea r8, str.Win32_exit_code:__ls
mov r9, rax
call fcn.14000b010
mov rcx, rbx
mov edx, 0xfb4
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
lea rdx, [rbp - 0x20c]
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov esi, dword [r14 + 0x10]
test esi, esi
je 0x14000a507
cmp esi, 0x42a
je 0x14000a521
cmp esi, 0x6ba
jne 0x14000a53b
lea rcx, [rbp - 0x20c]
mov edx, 0x104
lea r8, str.Specific_exit_code:_RPC_S_SERVER_UNAVAILABLE
call fcn.14000b010
jmp 0x14000a56a
lea rcx, [rbp - 0x20c]
mov edx, 0x104
lea r8, str.Specific_exit_code:_NO_ERROR
call fcn.14000b010
jmp 0x14000a56a
lea rcx, [rbp - 0x20c]
mov edx, 0x104
lea r8, str.Specific_exit_code:_SERVICE_SPECIFIC_ERROR
call fcn.14000b010
jmp 0x14000a56a
mov ecx, esi
lea rdx, [rbp - 0x414]
mov r8d, 0xa
call fcn.14000af40
lea rcx, [rbp - 0x20c]
mov edx, 0x104
lea r8, str.Specific_exit_code:__ls
mov r9, rax
call fcn.14000b010
mov rcx, rbx
mov edx, 0xfb5
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
lea rdx, [rbp - 0x20c]
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [r14 + 0x20]
test eax, eax
je 0x14000a5af
cmp eax, 1
jne 0x14000a5e8
lea rcx, [rbp - 0x20c]
mov edx, 0x104
lea r8, str.PARENT_PROCESS_IS_SYSTEM_PROCESS
call fcn.14000b010
jmp 0x14000a5e8
cmp dword [r14 + 0x1c], 0
je 0x14000a5d0
lea rcx, [rbp - 0x20c]
mov edx, 0x104
lea r8, str.PARENT_PROCESS_IS_RUNNING
call fcn.14000b010
jmp 0x14000a5e8
lea rcx, [rbp - 0x20c]
mov edx, 0x104
lea r8, str.PARENT_PROCESS_IS_NOT_RUNNING
call fcn.14000b010
mov rcx, rbx
mov edx, 0xfba
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
lea rdx, [rbp - 0x20c]
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, r14
call fcn.14000bb50
mov eax, 1
mov rsp, rbp
pop rbp
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret