Function at 0x140045e04
Capabilities:
Enumerate services

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0xe0
mov qword [rax - 0x60], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14007bd60]
xor rax, rsp
mov qword [rsp + 0xd8], rax
mov r15d, edx
mov r13, rcx
mov qword [rsp + 0x70], rcx
mov dword [rsp + 0x40], edx
xor edi, edi
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x3c], edi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rdi
lea rdx, str.OService::TryStopDependents___Enumerating_dependent_services
lea ecx, [rdi + 2]
call fcn.14004546c
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rdi + 1]
mov rcx, qword [r13 + 8]
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x14004606b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x34], eax
cmp eax, 0xea
je 0x140045ec5
lea r8, [rsp + 0x34]
lea rdx, str.OService::TryStopDependents___Warning:_failed_to_enumerate_dependent_services_:_errCode___d
mov ecx, 2
call fcn.1400456d4
jmp 0x14004606b
mov edx, dword [rsp + 0x38]
lea rcx, [rsp + 0x50]
call fcn.14000a590
mov r12, qword [rsp + 0x50]
mov qword [rsp + 0x48], r12
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x38]
mov r8, r12
mov edx, 1
mov rcx, qword [r13 + 8]
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x140045f18
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x34], eax
jmp 0x140045eaa
mov esi, edi
mov dword [rsp + 0x34], esi
cmp esi, dword [rsp + 0x3c]
jae 0x14004606b
mov byte [rsp + 0x30], dil
mov r8b, 1
mov edx, 0x20000002
lea rcx, [rsp + 0x78]
call fcn.1400458c0
nop
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, r15d
cmp eax, 0x7fffffff
jae 0x140045f76
lea r8, [rsp + 0x3c]
lea rdx, str.OService::TryStopDependents___Warning:_timed_out_before_stopping_all_dependent_services
mov ecx, 2
call fcn.14004567c
nop
lea rcx, [rsp + 0x78]
call fcn.140045a30
jmp 0x14004606b
mov eax, esi
lea rbx, [rax + rax*2]
shl rbx, 4
add rbx, r12
mov r8, rbx
lea rdx, str.OService::TryStopDependents___Stopping_dependent_service__S
mov ecx, 2
call fcn.1400454c4
mov rdx, qword [rbx]
mov qword [rsp + 0xd0], 7
mov qword [rsp + 0xc8], rdi
mov word [rsp + 0xb8], di
cmp word [rdx], di
jne 0x140045fc0
mov r8, rdi
jmp 0x140045fce
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], di
jne 0x140045fc4
lea rcx, [rsp + 0xb8]
call fcn.1400054c8
mov r8d, 0x3c
lea rdx, [rsp + 0xb8]
lea rcx, [rsp + 0x78]
call fcn.140045ae0
test al, al
sete bl
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0xb8]
call fcn.140004f90
test bl, bl
je 0x14004601a
lea rcx, [rsp + 0x78]
call fcn.140045a30
jmp 0x140046064
mov r8d, r15d
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x78]
call fcn.140045cbc
nop
jmp 0x140046044
cmp byte [rsp + 0x30], dil
je 0x14004605a
lea rcx, [r13 + 0x10]
lea rdx, [rsp + 0x78]
call fcn.1400462dc
nop
lea rcx, [rsp + 0x78]
call fcn.140045a30
inc esi
jmp 0x140045f1a
lea rcx, [rsp + 0x50]
call fcn.14000a0b0
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.1400387b0
mov rbx, qword [rsp + 0x120]
add rsp, 0xe0
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret