Function at 0x140075b40
Capabilities:
Enumerate services

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp - 0x21], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0x27], rax
xor r8d, r8d
lea rdx, str.CBaseFuncSub::FS_CheckStatusSpoolerDepend
lea rcx, [rbp - 0x39]
call fcn.1400075a0
nop
xor edx, edx
xor ecx, ecx
mov r8d, 0x800f003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r14, rax
test rax, rax
je 0x140075ecf
mov r8d, 0xf01ff
lea rdx, str.SPOOLER
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r13, rax
xor r12d, r12d
test rax, rax
je 0x140075e53
mov dword [rbp - 0x49], r12d
lea rax, [rbp - 0x45]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x49]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, [rbp - 0x29]
mov edx, r9d
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x140075c6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x140075c6e
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str._t_t_tEnumDependentServices_0_
lea rcx, [rbp - 0x39]
call fcn.140029dc0
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [0x1403b95bc], 0x28
mov r9d, 0x80010028
lea r8, str.return___08x
lea edx, [r12 + 2]
lea rcx, [rbp - 0x39]
call fcn.140007780
nop
lea rcx, [rbp - 0x39]
call fcn.140007730
mov eax, 0x80010028
jmp 0x140075f66
mov eax, dword [rbp - 0x45]
mov dword [rsp + 0x20], eax
mov r9d, dword [rbp - 0x49]
lea r8, str._t_t_tEnumDependentServices__d__d_
mov edx, 7
lea rcx, [rbp - 0x39]
call fcn.140007780
mov edx, dword [rbp - 0x49]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r15, rax
mov rcx, r13
test rax, rax
jne 0x140075cee
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [0x1403b95bc], 2
mov r9d, 0x80010002
lea r8, str.return___08x
lea edx, [r15 + 2]
lea rcx, [rbp - 0x39]
call fcn.140007780
nop
lea rcx, [rbp - 0x39]
call fcn.140007730
mov eax, 0x80010002
jmp 0x140075f66
lea rax, [rbp - 0x45]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x49]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp - 0x49]
mov r8, r15
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x140075d8d
mov eax, dword [rbp - 0x49]
mov dword [rsp + 0x20], eax
lea r9, str._t_t_tEnumDependentServices2__d_
lea r8, str.ApiName:__s__ReturnCode:__d
mov edx, 6
lea rcx, [rbp - 0x39]
call fcn.140007780
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [0x1403b95bc], 0x28
mov r9d, 0x80010028
lea r8, str.return___08x
mov edx, 2
lea rcx, [rbp - 0x39]
call fcn.140007780
nop
lea rcx, [rbp - 0x39]
call fcn.140007730
mov eax, 0x80010028
jmp 0x140075f66
mov esi, r12d
cmp dword [rbp - 0x45], r12d
jbe 0x140075e3f
mov rbx, r15
nop dword [rax]
mov edi, dword [rbx + 0x14]
mov rax, qword [rbx]
mov qword [rsp + 0x20], rax
mov r9, qword [rbx + 8]
lea r8, str._t_t_tSERVICE_s__s_
mov edx, 7
lea rcx, [rbp - 0x39]
call fcn.140007780
cmp edi, 4
je 0x140075dd3
cmp edi, 2
je 0x140075dd3
cmp edi, 5
jne 0x140075e30
mov r9d, r12d
lea r8, str.SPOOLERDEP_d
mov edx, 0x20
lea rcx, [rbp - 0x19]
call fcn.140246778
mov dword [rsp + 0x28], edi
mov rax, qword [rbx]
mov qword [rsp + 0x20], rax
mov r9d, r12d
lea r8, str._t_t_tSaved_Service__d_.__s___Status:__d
mov edx, 7
lea rcx, [rbp - 0x39]
call fcn.140007780
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov r9, qword [rax]
mov r8, qword [rbx]
lea rdx, [rbp - 0x19]
mov rcx, rax
call qword [r9 + 0x20]
inc r12d
inc esi
add rbx, 0x30
cmp esi, dword [rbp - 0x45]
jb 0x140075da0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140075ec4
mov qword [rbp - 0x41], r12
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
lea rax, [rbp - 0x41]
mov qword [rsp + 0x20], rax
mov r9d, 0x409
mov r8d, ebx
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x140075eb5
mov rax, qword [rbp - 0x41]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
lea r9, str._t_t_tOpenService
lea r8, str.ApiName:__s__ErrorCode:__d_:__s
mov edx, 6
lea rcx, [rbp - 0x39]
call fcn.140007780
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x140075ec4
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140075f43
xor r12d, r12d
mov qword [rbp - 0x41], r12
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
lea rax, [rbp - 0x41]
mov qword [rsp + 0x20], rax
mov r9d, 0x409
mov r8d, ebx
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x140075f34
mov rax, qword [rbp - 0x41]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
lea r9, str._t_t_tOpenSCManager
lea r8, str.ApiName:__s__ErrorCode:__d_:__s
lea edx, [r12 + 6]
lea rcx, [rbp - 0x39]
call fcn.140007780
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x140075f43
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor r9d, r9d
lea r8, str.return___08x
lea edx, [r9 + 2]
lea rcx, [rbp - 0x39]
call fcn.140007780
nop
lea rcx, [rbp - 0x39]
call fcn.140007730
xor eax, eax
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140245660
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret