Function at 0x1401ab3b0
Capabilities:
Enumerate services

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x2d8
mov rax, qword [0x1408fa960]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
mov byte [rsp + 0x30], 1
mov rax, qword [rsp + 0x2f0]
cmp qword [rax], 0
jne 0x1401ab408
mov rcx, qword [rsp + 0x2f0]
call fcn.1401acf10
movzx eax, al
test eax, eax
jne 0x1401ab408
xor al, al
jmp 0x1401ab9ba
mov rcx, qword [rsp + 0x2f8]
call fcn.140016520
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x2f0]
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
mov r8d, 0x80000000
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x1401ab4f9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x2f0]
mov dword [rcx + 0x90], eax
mov rax, qword [rsp + 0x2f0]
mov edx, dword [rax + 0x90]
lea rcx, [rsp + 0x1f8]
call fcn.1400f1870
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
lea r8, [0x140321b64]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x158]
call fcn.140162a30
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x2f0]
add rax, 0x30
mov rdx, qword [rsp + 0x80]
mov rcx, rax
call fcn.14001ef40
nop
lea rcx, [rsp + 0x158]
call fcn.140015480
nop
lea rcx, [rsp + 0x1f8]
call fcn.140015480
xor al, al
jmp 0x1401ab9ba
mov qword [rsp + 0x48], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, qword [rsp + 0x48]
mov edx, 3
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
test eax, eax
je 0x1401ab549
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
jmp 0x1401ab9ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x1401ab61f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x2f0]
mov dword [rcx + 0x90], eax
mov rax, qword [rsp + 0x2f0]
mov edx, dword [rax + 0x90]
lea rcx, [rsp + 0x198]
call fcn.1400f1870
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
lea r8, reloc.msi.dll_MsiEnumClientsA
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x178]
call fcn.140162a30
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x2f0]
add rax, 0x30
mov rdx, qword [rsp + 0xa0]
mov rcx, rax
call fcn.14001ef40
nop
lea rcx, [rsp + 0x178]
call fcn.140015480
nop
lea rcx, [rsp + 0x198]
call fcn.140015480
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x1401ab9ba
mov eax, dword [rsp + 0x40]
mov qword [rsp + 0xa8], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov qword [rsp + 0xb0], rax
mov r8, qword [rsp + 0xa8]
mov edx, 8
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1401ab72a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x2f0]
mov dword [rcx + 0x90], eax
mov rax, qword [rsp + 0x2f0]
mov edx, dword [rax + 0x90]
lea rcx, [rsp + 0x1d8]
call fcn.1400f1870
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xc0], rax
lea r8, [0x140321d24]
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0x1b8]
call fcn.140162a30
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0x2f0]
add rax, 0x30
mov rdx, qword [rsp + 0xd0]
mov rcx, rax
call fcn.14001ef40
nop
lea rcx, [rsp + 0x1b8]
call fcn.140015480
nop
lea rcx, [rsp + 0x1d8]
call fcn.140015480
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x1401ab9ba
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8, qword [rsp + 0x48]
mov edx, 3
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
test eax, eax
jne 0x1401ab83b
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x48]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x2f0]
mov dword [rcx + 0x90], eax
mov rax, qword [rsp + 0x2f0]
mov edx, dword [rax + 0x90]
lea rcx, [rsp + 0x218]
call fcn.1400f1870
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xe0], rax
lea r8, [0x140321db4]
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x278]
call fcn.140162a30
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0x2f0]
add rax, 0x30
mov rdx, qword [rsp + 0xf0]
mov rcx, rax
call fcn.14001ef40
nop
lea rcx, [rsp + 0x278]
call fcn.140015480
nop
lea rcx, [rsp + 0x218]
call fcn.140015480
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x1401ab9ba
mov dword [rsp + 0x34], 0
jmp 0x1401ab84f
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x1401ab994
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x34], eax
jae 0x1401ab994
mov eax, dword [rsp + 0x34]
imul rax, rax, 0x30
lea rcx, [rsp + 0x128]
mov rdx, qword [rsp + 0x48]
mov rdi, rcx
lea rsi, [rdx + rax]
mov ecx, reloc.msi.dll_MsiGetDatabaseState
rep movsb byte [rdi], byte [rsi]
mov rdx, qword [rsp + 0x128]
lea rcx, [rsp + 0x238]
call fcn.14002b570
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x100], rax
lea r8, [rsp + 0x13c]
mov rdx, qword [rsp + 0x100]
lea rcx, [rsp + 0x298]
call fcn.1401b1320
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x110], rax
mov rdx, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x300]
call fcn.1401b1de0
nop
lea rcx, [rsp + 0x298]
call fcn.140049c10
nop
lea rcx, [rsp + 0x238]
call fcn.140015480
movzx eax, byte [rsp + 0x30]
mov dword [rsp + 0x54], eax
mov rdx, qword [rsp + 0x128]
lea rcx, [rsp + 0x258]
call fcn.14002b570
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x120], rax
mov r8, qword [rsp + 0x300]
mov rdx, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x2f0]
call fcn.1401ab3b0
movzx eax, al
mov ecx, dword [rsp + 0x54]
and ecx, eax
mov eax, ecx
mov byte [rsp + 0x30], al
lea rcx, [rsp + 0x258]
call fcn.140015480
jmp 0x1401ab845
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x48]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movzx eax, byte [rsp + 0x30]
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.140222a60
add rsp, 0x2d8
pop rdi
pop rsi
ret