Function at 0x14002d570
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rdi, rcx
xor ebp, ebp
lea ebx, [rbp + 1]
cmp dword [rcx + 0x28c], ebp
je 0x14002d5c3
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x38], ebp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea edx, [rbp - 1]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
js 0x14002d7c1
mov r14, qword [0x1400f71d0]
mov r15d, 4
mov rax, qword [0x1400f71d8]
cmp r14, rax
jae 0x14002d682
test ebx, ebx
js 0x14002d7bf
mov rsi, qword [r14]
test rsi, rsi
je 0x14002d675
mov qword [rsp + 0x90], rbp
mov r9, qword [rsi + 0x10]
test r9, r9
jne 0x14002d609
mov ebx, ebp
jmp 0x14002d675
lea r8, [rsp + 0x90]
lea rdx, [0x1400c1310]
mov rcx, qword [rsi + 0x18]
mov rax, r9
call qword [case.0x14005a798.0]
mov ebx, eax
test eax, eax
js 0x14002d654
mov rax, qword [rsi + 0x20]
add rax, 8
mov qword [rsp + 0x20], rax
mov r9d, 5
mov r8d, r15d
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsi]
call qword [sym.imp.ole32.dll_CoRegisterClassObject]
mov ebx, eax
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x14002d66e
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14005a798.0]
mov rax, qword [0x1400f71d8]
add r14, 8
cmp r14, rax
jb 0x14002d5e0
test ebx, ebx
js 0x14002d7bf
jne 0x14002d7bb
cmp byte [rdi + 0x60], bpl
je 0x14002d76a
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x50], rax
test rax, rax
je 0x14002d6ee
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebp
mov r9, rdi
lea r8, [0x14002cc80]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
jne 0x14002d700
mov rcx, qword [rdi + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x50], rbp
mov ebx, 0x80004005
mov rcx, rdi
call fcn.14002e360
jmp 0x14002d7bf
cmp dword [rdi + 0x28c], ebp
je 0x14002d73b
mov eax, 2
lock cmpxchg dword [rdi + 0x274], r15d
jne 0x14002d73b
lea rdx, str.Service_started_resumed
mov rcx, rdi
call fcn.14002c950
lea rdx, [rdi + 0x270]
mov rcx, qword [rdi + 0x268]
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
mov ebx, eax
test eax, eax
jns 0x14002d75f
mov rcx, qword [rdi + 0x50]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [rdi + 0x58]
add edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14002d7ad
cmp dword [rdi + 0x28c], ebp
je 0x14002d7a5
mov eax, 2
lock cmpxchg dword [rdi + 0x274], r15d
jne 0x14002d7a5
lea rdx, str.Service_started_resumed
mov rcx, rdi
call fcn.14002c950
lea rdx, [rdi + 0x270]
mov rcx, qword [rdi + 0x268]
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
mov ebx, eax
test ebx, ebx
jns 0x14002d7bf
mov rcx, rdi
call fcn.14002e360
jmp 0x14002d7bf
mov byte [rdi + 0x60], bpl
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret