Function at 0x140036530
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x4b8
mov rax, qword [0x1400dd078]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
mov byte [rsp + 0x20], 0
mov r8d, 4
lea rdx, [0x1400c6690]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14003662c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
mov edx, 1
lea rcx, [rsp + 0x110]
call fcn.14003aba0
nop
lea rdx, [0x1400c6670]
lea rcx, [rsp + 0x110]
call fcn.14001d2a0
mov qword [rsp + 0x40], rax
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
call fcn.140005ba0
lea rdx, [rsp + 0x400]
lea rcx, [rsp + 0x110]
call fcn.14003aac0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0xc8]
call fcn.14002d0f0
lea rdx, [0x1400da9c8]
lea rcx, [rsp + 0xc8]
call fcn.140065380
nop
lea rcx, [rsp + 0x400]
call fcn.140019710
lea rcx, [rsp + 0x110]
call fcn.14002d320
jmp 0x14003690a
mov rcx, qword [rsp + 0x4c8]
call fcn.1400196d0
mov r8d, 4
mov rdx, rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x14003678e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0x424
je 0x140036789
mov edx, 1
lea rcx, [rsp + 0x200]
call fcn.14003aba0
nop
lea rdx, [0x1400c6728]
lea rcx, [rsp + 0x200]
call fcn.14001d2a0
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x4c8]
call fcn.1400196d0
mov rdx, rax
lea rcx, [rsp + 0x420]
call fcn.1400426d0
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
call fcn.140017ba0
lea rdx, [0x1400c6740]
mov rcx, rax
call fcn.14001d2a0
mov qword [rsp + 0x78], rax
mov edx, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x78]
call fcn.140005ba0
nop
lea rcx, [rsp + 0x420]
call fcn.140019710
lea rdx, [rsp + 0x440]
lea rcx, [rsp + 0x200]
call fcn.14003aac0
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0xe0]
call fcn.14002d0f0
lea rdx, [0x1400da9c8]
lea rcx, [rsp + 0xe0]
call fcn.140065380
nop
lea rcx, [rsp + 0x440]
call fcn.140019710
lea rcx, [rsp + 0x200]
call fcn.14002d320
nop
jmp 0x1400368ff
lea rdx, [rsp + 0x3e0]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1400368e5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x2c], eax
mov edx, 1
lea rcx, [rsp + 0x2f0]
call fcn.14003aba0
nop
lea rdx, str.QueryServiceStatus_failed_for
lea rcx, [rsp + 0x2f0]
call fcn.14001d2a0
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0x4c8]
call fcn.1400196d0
mov rdx, rax
lea rcx, [rsp + 0x460]
call fcn.1400426d0
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xa0], rax
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xa8]
call fcn.140017ba0
lea rdx, [0x1400c6718]
mov rcx, rax
call fcn.14001d2a0
mov qword [rsp + 0xb0], rax
mov edx, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0xb0]
call fcn.140005ba0
nop
lea rcx, [rsp + 0x460]
call fcn.140019710
lea rdx, [rsp + 0x480]
lea rcx, [rsp + 0x2f0]
call fcn.14003aac0
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xc0], rax
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0xf8]
call fcn.14002d0f0
lea rdx, [0x1400da9c8]
lea rcx, [rsp + 0xf8]
call fcn.140065380
nop
lea rcx, [rsp + 0x480]
call fcn.140019710
lea rcx, [rsp + 0x2f0]
call fcn.14002d320
jmp 0x1400368f4
cmp dword [rsp + 0x3e4], 4
jne 0x1400368f4
mov byte [rsp + 0x20], 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.1400620b0
add rsp, 0x4b8
ret