Function at 0x1401ae1f0
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 0x1401ae248
mov rcx, qword [rsp + 0x2f0]
call fcn.1401b04b0
movzx eax, al
test eax, eax
jne 0x1401ae248
xor al, al
jmp 0x1401ae7fa
mov rcx, qword [rsp + 0x2f8]
call fcn.14000c690
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_OpenServiceW]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x1401ae339
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.1400f1950
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
lea r8, reloc.msi.dll_MsiEnumClientsA
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x158]
call fcn.140024fb0
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.14001efa0
nop
lea rcx, [rsp + 0x158]
call fcn.14000a800
nop
lea rcx, [rsp + 0x1f8]
call fcn.14000a800
xor al, al
jmp 0x1401ae7fa
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_EnumDependentServicesW]
test eax, eax
je 0x1401ae389
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
jmp 0x1401ae7fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x1401ae45f
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.1400f1950
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.140024fb0
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.14001efa0
nop
lea rcx, [rsp + 0x178]
call fcn.14000a800
nop
lea rcx, [rsp + 0x198]
call fcn.14000a800
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x1401ae7fa
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 0x1401ae56a
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.1400f1950
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xc0], rax
lea r8, reloc.msi.dll_MsiEnumClientsA
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0x1b8]
call fcn.140024fb0
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.14001efa0
nop
lea rcx, [rsp + 0x1b8]
call fcn.14000a800
nop
lea rcx, [rsp + 0x1d8]
call fcn.14000a800
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x1401ae7fa
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_EnumDependentServicesW]
test eax, eax
jne 0x1401ae67b
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.1400f1950
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xe0], rax
lea r8, reloc.msi.dll_MsiEnumClientsA
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x278]
call fcn.140024fb0
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.14001efa0
nop
lea rcx, [rsp + 0x278]
call fcn.14000a800
nop
lea rcx, [rsp + 0x218]
call fcn.14000a800
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x1401ae7fa
mov dword [rsp + 0x34], 0
jmp 0x1401ae68f
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x1401ae7d4
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x34], eax
jae 0x1401ae7d4
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.1400179b0
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.1401b1370
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.1401b1e10
nop
lea rcx, [rsp + 0x298]
call fcn.140049bf0
nop
lea rcx, [rsp + 0x238]
call fcn.14000a800
movzx eax, byte [rsp + 0x30]
mov dword [rsp + 0x54], eax
mov rdx, qword [rsp + 0x128]
lea rcx, [rsp + 0x258]
call fcn.1400179b0
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.1401ae1f0
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.14000a800
jmp 0x1401ae685
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