Function at 0x140066180
Capabilities:
Create thread
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x400]
sub rsp, 0x500
mov rax, qword [0x1400fae80]
xor rax, rsp
mov qword [rbp + 0x3f0], rax
mov edi, ecx
mov rsi, rdx
lea rcx, [rsp + 0x78]
xor r14d, r14d
xor edx, edx
mov r8d, 0x118
mov qword [rsp + 0x70], r14
call fcn.14006c5d0
lea rcx, [rbp + 0x98]
xor edx, edx
mov r8d, 0x248
mov qword [rbp + 0x90], r14
call fcn.14006c5d0
xor eax, eax
mov r15d, 1
xorps xmm0, xmm0
xor r9d, r9d
xor r8d, r8d
mov edx, r15d
xor ecx, ecx
movdqu xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x44], r14d
mov dword [rsp + 0x40], r14d
lea ebx, [rax + 0x64]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
lea r8, [rsp + 0x70]
mov rdx, rsi
mov ecx, edi
mov qword [0x140113648], rax
call fcn.140066ad0
test eax, eax
jne 0x14006647f
mov eax, dword [rsp + 0x78]
lea r8, [rsp + 0x58]
mov rdx, rsi
mov ecx, edi
mov dword [0x140112fcc], eax
call fcn.1400672e0
test eax, eax
jne 0x14006647f
lea rax, [rbp + 0x90]
mov dword [rsp + 0x30], 0x20008
lea rdx, str..pipe14579667_532A_42C2_9200_FD0544E09B90
mov qword [rsp + 0x28], rax
lea rax, [0x140064900]
lea rcx, [rbp + 0x90]
xor r9d, r9d
mov r8d, r15d
mov qword [rsp + 0x20], rax
call fcn.1400019ba
test eax, eax
je 0x14006647f
lea rcx, [rbp + 0x90]
call fcn.140001762
test eax, eax
jne 0x1400662fd
nop dword [rax]
mov eax, ebx
dec ebx
test eax, eax
jle 0x1400662e3
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rbp + 0x90]
call fcn.140001762
test eax, eax
je 0x1400662c0
test ebx, ebx
jg 0x1400662fd
lea rdx, str.Unable_to_connect_IPC._n
mov ecx, 3
call fcn.140001410
jmp 0x14006647f
mov rcx, qword [0x140113648]
test rcx, rcx
je 0x140066314
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x1400fd588]
test eax, eax
jne 0x140066358
cmp byte [rbp - 0x74], r14b
je 0x140066358
lea rdx, [rbp - 0x74]
lea rcx, [rbp + 0x90]
call fcn.140066f70
lea rdx, [rbp - 0x74]
lea rcx, [rbp + 0x90]
call fcn.14000167c
mov eax, dword [0x1400fd588]
cmp dword [rbp - 0x7c], r14d
cmovne eax, r15d
mov dword [0x1400fd588], eax
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140066422
test eax, eax
jne 0x140066422
movabs rbx, 0x100000601
nop dword [rax + rax]
lea r8, [rbp + 0x2e0]
lea rdx, str.____n_s
mov r9d, 0x101
call fcn.140075328
cmp eax, r15d
jne 0x140066422
lea rcx, [rbp + 0x2e0]
mov edx, 0x101
call fcn.14006c9b0
lea ecx, [rax + 1]
cmp ecx, 4
jb 0x1400663e9
lea rdx, [0x1400c7274]
lea rcx, [rbp + 0x2e0]
mov r8d, 3
call fcn.14006e458
test eax, eax
jne 0x1400663e9
movzx eax, byte [rbp + 0x2e3]
cmp al, 0x20
ja 0x1400663e9
bt rbx, rax
jb 0x14006640f
lea rdx, [rbp + 0x2e0]
lea rcx, [rbp + 0x90]
call fcn.140066f70
lea rdx, [rbp + 0x2e0]
lea rcx, [rbp + 0x90]
call fcn.14000167c
cmp dword [0x1400fd588], r14d
jne 0x140066422
mov rcx, qword [rsp + 0x70]
jmp 0x140066380
lea r9, [rbp + 0x90]
lea r8, [0x140064a20]
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x14006645f
lea rdx, str.Unable_to_create_IPC_thread._n
lea ecx, [rax + 3]
call fcn.140001410
jmp 0x14006647f
mov rax, qword [rsp + 0x58]
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea ecx, [r8 + 2]
or r9d, 0xffffffff
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400664cf
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x1400664c4
cmp dword [rsp + 0x40], 0x103
jne 0x1400664bf
mov rcx, qword [rsp + 0x58]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [rsp + 0x40], r14d
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400664df
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x48], r14
je 0x14006651d
mov dword [0x1400fd588], r15d
call fcn.1400670a0
mov rcx, qword [rsp + 0x48]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x44]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140113648]
test rcx, rcx
je 0x14006652f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp + 0x90]
call fcn.1400019a6
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14006654a
call fcn.14006f694
mov ebx, dword [rsp + 0x44]
test ebx, ebx
cmove ebx, dword [rsp + 0x40]
cmp ebx, 0x3ea
jne 0x140066562
call fcn.140001a28
mov eax, ebx
mov rcx, qword [rbp + 0x3f0]
xor rcx, rsp
call fcn.14006cfe0
lea r11, [rsp + 0x500]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret