Function at 0x14008ffd0
Capabilities:
Enumerate services

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x178
mov rax, qword [0x1408fa960]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov byte [rsp + 0x51], 0
mov rax, qword [rsp + 0x180]
cmp qword [rax], 0
jne 0x140090021
mov rcx, qword [rsp + 0x180]
call fcn.1401b04b0
movzx eax, al
test eax, eax
jne 0x140090021
xor al, al
jmp 0x1400902b2
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x64], 0
mov dword [rsp + 0x68], 0
mov qword [rsp + 0x48], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 3
mov r8d, reloc.msi.dll_MsiGetDatabaseState
xor edx, edx
mov rax, qword [rsp + 0x180]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
mov dword [rsp + 0x70], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x6c], eax
mov byte [rsp + 0x50], 0
cmp dword [rsp + 0x6c], 0xea
jne 0x14009029b
movzx eax, byte [rsp + 0x50]
test eax, eax
jne 0x14009029b
cmp qword [rsp + 0x58], 0
je 0x1400900e2
mov rcx, qword [rsp + 0x58]
call fcn.140229904
mov qword [rsp + 0x58], 0
mov eax, dword [rsp + 0x60]
mov ecx, eax
call fcn.14022aeb8
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x48], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 3
mov r8d, reloc.msi.dll_MsiGetDatabaseState
xor edx, edx
mov rax, qword [rsp + 0x180]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
mov dword [rsp + 0x70], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x6c], eax
cmp dword [rsp + 0x70], 0
je 0x14009028a
mov byte [rsp + 0x51], 1
mov dword [rsp + 0x54], 0
jmp 0x14009017c
mov eax, dword [rsp + 0x54]
inc eax
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x64]
cmp dword [rsp + 0x54], eax
jae 0x14009028a
lea rcx, [rsp + 0xa0]
call fcn.14008ee90
nop
mov eax, dword [rsp + 0x54]
imul rax, rax, 0x38
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rcx + rax]
lea rcx, [rsp + 0xa0]
call fcn.140015550
mov eax, dword [rsp + 0x54]
imul rax, rax, 0x38
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rcx + rax + 8]
lea rcx, [rsp + 0xc0]
call fcn.140015550
mov eax, dword [rsp + 0x54]
imul rax, rax, 0x38
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx + rax + 0x10]
mov dword [rsp + 0xe0], eax
mov eax, dword [rsp + 0x54]
imul rax, rax, 0x38
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx + rax + 0x14]
mov dword [rsp + 0xe4], eax
mov eax, dword [rsp + 0x54]
imul rax, rax, 0x38
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx + rax + 0x18]
mov dword [rsp + 0xe8], eax
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0xf0]
call fcn.14008dd20
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x80], rax
mov r8, qword [rsp + 0x80]
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x188]
call fcn.14008dca0
nop
lea rcx, [rsp + 0xf0]
call fcn.14008f1b0
nop
lea rcx, [rsp + 0xa0]
call fcn.140018370
jmp 0x140090172
cmp dword [rsp + 0x60], 0
jne 0x140090296
mov byte [rsp + 0x50], 1
jmp 0x1400900ac
cmp qword [rsp + 0x58], 0
je 0x1400902ad
mov rcx, qword [rsp + 0x58]
call fcn.140229904
movzx eax, byte [rsp + 0x51]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140222a60
add rsp, 0x178
ret