Function at 0x14011af50
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x60
mov rax, qword [0x14022b078]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp dword [rcx + 0x28c], 0
mov rdi, rcx
je 0x14011af7e
call fcn.140119b10
test eax, eax
js 0x14011b1b3
mov rax, qword [0x1403828c8]
mov qword [rsp + 0x78], rbx
mov ebx, 1
mov qword [rsp + 0x80], rbp
xor ebp, ebp
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x58], r14
mov r14, qword [0x1403828c0]
mov qword [rsp + 0x50], r15
lea r15d, [rbx + 3]
cmp r14, rax
jae 0x14011b052
nop
test ebx, ebx
js 0x14011b052
mov rsi, qword [r14]
test rsi, rsi
je 0x14011b045
mov r9, qword [rsi + 0x10]
mov qword [rsp + 0x30], rbp
test r9, r9
jne 0x14011afe2
mov ebx, ebp
jmp 0x14011b045
mov rcx, qword [rsi + 0x18]
lea r8, [rsp + 0x30]
lea rdx, [0x1401d9158]
mov rax, r9
call qword [case.0x14001c280.0]
mov ebx, eax
test eax, eax
js 0x14011b027
mov rax, qword [rsi + 0x20]
mov r9d, 5
mov rdx, qword [rsp + 0x30]
add rax, 8
mov rcx, qword [rsi]
mov r8d, r15d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoRegisterClassObject]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14011b03e
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14001c280.0]
mov rax, qword [0x1403828c8]
add r14, 8
cmp r14, rax
jb 0x14011afc0
mov r14, qword [rsp + 0x58]
test ebx, ebx
js 0x14011b197
jne 0x14011b193
cmp byte [rdi + 0x60], bpl
je 0x14011b142
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 0x14011b133
lea rax, [rsp + 0x38]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea r8, [0x14011a210]
xor edx, edx
mov dword [rsp + 0x20], ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
jne 0x14011b0c4
mov rcx, qword [rdi + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x50], rbp
test rsi, rsi
je 0x14011b133
cmp dword [rdi + 0x28c], ebp
je 0x14011b104
mov eax, 2
lock cmpxchg dword [rdi + 0x274], r15d
jne 0x14011b104
lea rdx, str.Service_started_resumed
mov rcx, rdi
call fcn.14011a110
mov rcx, qword [rdi + 0x268]
lea rdx, [rdi + 0x270]
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
mov ebx, eax
test eax, eax
jns 0x14011b128
mov rcx, qword [rdi + 0x50]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [rdi + 0x58]
mov rcx, rsi
add edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14011b185
mov rcx, rdi
mov ebx, 0x80004005
call fcn.14011b610
jmp 0x14011b197
cmp dword [rdi + 0x28c], ebp
je 0x14011b17d
mov eax, 2
lock cmpxchg dword [rdi + 0x274], r15d
jne 0x14011b17d
lea rdx, str.Service_started_resumed
mov rcx, rdi
call fcn.14011a110
mov rcx, qword [rdi + 0x268]
lea rdx, [rdi + 0x270]
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
mov ebx, eax
test ebx, ebx
jns 0x14011b197
mov rcx, rdi
call fcn.14011b610
jmp 0x14011b197
mov byte [rdi + 0x60], bpl
mov rsi, qword [rsp + 0x88]
mov eax, ebx
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
mov r15, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14013f550
add rsp, 0x60
pop rdi
ret