Function at 0x1400015e0
Capabilities:
Create thread

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x8b0
mov rax, qword [0x14009c020]
xor rax, rsp
mov qword [rsp + 0x8a0], rax
mov ebp, r8d
mov rdi, rcx
xor r14d, r14d
cmp qword [rcx + 8], r14
je 0x140001618
lea ebx, [r14 + 0x15]
jmp 0x14000181c
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x90], r14
mov qword [rsp + 0x98], 7
mov word [rsp + 0x80], r14w
lea rax, [rcx + 0x10]
cmp qword [rcx + 0x28], 8
jb 0x14000164c
mov rax, qword [rcx + 0x10]
mov qword [rcx + 0x20], r14
mov word [rax], r14w
mov qword [rsp + 0x30], r14
lea r8, str.rt__ccsUTF_8
lea rcx, [rsp + 0x30]
call fcn.140054178
mov ebx, eax
test eax, eax
jne 0x14000181c
mov rcx, qword [rsp + 0x30]
call fcn.1400541d8
test eax, eax
jne 0x1400016da
mov r8, qword [rsp + 0x30]
mov edx, 0x400
lea rcx, [rsp + 0xa0]
call fcn.1400543cc
test rax, rax
je 0x1400016da
lea rax, [rsp + 0xa0]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400016b0
lea rdx, [rsp + 0xa0]
lea rcx, [rdi + 0x10]
call fcn.140002150
mov rcx, qword [rsp + 0x30]
call fcn.1400541d8
test eax, eax
je 0x140001682
mov rcx, qword [rsp + 0x30]
call fcn.140054458
mov ebx, r14d
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], r14d
mov r9, rdi
lea r8, [0x140001850]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi + 8], rax
test rax, rax
jne 0x14000171b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x14000181c
mov edx, ebp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140001753
lea rdx, [rsp + 0x30]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x14000174a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x14000181c
mov ebx, dword [rsp + 0x30]
jmp 0x14000181c
cmp eax, 0x102
jne 0x14000181c
lea rcx, str.____script_WAIT_TIMEOUT_n
call fcn.140002250
mov ebx, 0x5b4
cmp qword [rdi + 0x30], 0
je 0x14000180c
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x14000179b
mov edx, eax
lea rcx, str.____CoInitializeEx_failed_0x_x_n
call fcn.140002250
jmp 0x14000181c
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
mov eax, 0x7d00
mov word [rsp + 0x40], ax
mov rcx, qword [rdi + 0x30]
mov rax, qword [rcx]
xor r9d, r9d
lea r8, [rsp + 0x40]
mov edx, 0xfffffffd
call qword [rax + 0x70]
test eax, eax
jns 0x1400017e5
mov edx, eax
lea rcx, str.____InterruptScriptThread_failed_0x_x_n
call fcn.140002250
xor r8d, r8d
lea rdx, [0x1400015c0]
mov ecx, dword [rdi]
call qword [sym.imp.USER32.dll_EnumThreadWindows]
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x140001806
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov edx, 0xffffffff
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14000182f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], r14
mov eax, ebx
mov rcx, qword [rsp + 0x8a0]
xor rcx, rsp
call fcn.140048410
add rsp, 0x8b0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret