Function at 0x140019d60
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rbx
push rdi
push r14
sub rsp, 0x900
cmp byte [rcx + 0x74], 0
mov r14, rdx
mov rdi, rcx
jne 0x14001a0d5
mov qword [rax + 8], rbp
lea rcx, [rsp + 0x30]
mov qword [rax + 0x18], r15
call fcn.140010c90
xor r15d, r15d
mov r8, qword [rax]
mov r9, qword [rax + 8]
lea ebp, [r15 - 1]
mov qword [rax], r15
mov qword [rax + 8], r15
mov rbx, qword [rdi + 8]
mov qword [rdi], r8
mov qword [rdi + 8], r9
test rbx, rbx
je 0x140019dec
mov eax, ebp
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140019dec
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [0x1400355d8]
mov eax, ebp
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140019dec
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x1400355d8]
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x140019e2d
mov eax, ebp
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140019e2d
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [0x1400355d8]
mov eax, ebp
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140019e2d
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x1400355d8]
mov rcx, qword [rdi]
mov qword [rsp + 0x928], rsi
test rcx, rcx
jne 0x140019e47
mov ebx, 0x80004005
jmp 0x140019fd5
xor eax, eax
mov dword [rsp + 0x28], reloc.OLEAUT32.dll_SafeArrayAccessData
mov r8d, 0x22f
mov qword [rsp + 0x4c], rax
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x40], 1
lea r9d, [rax + 1]
mov dword [rsp + 0x48], SafeArrayGetLBound
mov dword [rsp + 0x20], r15d
call fcn.140010e20
mov ebx, eax
test eax, eax
js 0x140019ea5
movsd xmm0, qword [rsp + 0x4c]
mov ebx, r15d
cmp dword [rsp + 0x4c], ebx
mov eax, dword [rsp + 0x54]
movsd qword [rdi + 0x20], xmm0
sete bl
mov dword [rdi + 0x28], eax
test ebx, ebx
js 0x140019fd3
cmp dword [rdi + 0x20], r15d
je 0x140019ebd
mov dword [rdi + 0x80], 1
mov ebx, r15d
lea rsi, [rdi + 0x30]
nop dword [rax]
nop dword [rax + rax]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], rax
test rax, rax
je 0x140019e3d
inc ebx
add rsi, 8
cmp ebx, 6
jl 0x140019ed0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x60], rax
test rax, rax
jne 0x140019f1a
mov ebx, 0x80004005
jmp 0x140019fd5
mov rax, qword [rdi + 0x38]
mov dword [rsp + 0x270], r15d
mov dword [rsp + 0x278], reloc.OLEAUT32.dll_SafeArrayGetDim
test rax, rax
jne 0x140019f3d
mov ebx, 0x80004005
jmp 0x140019f90
mov rcx, qword [rdi + 0x58]
test rcx, rcx
jne 0x140019f4d
mov ebx, 0x80004005
jmp 0x140019f90
mov qword [rsp + 0x284], rcx
lea rdx, [rsp + 0x270]
mov rcx, qword [rdi]
xor r9d, r9d
mov dword [rsp + 0x28], reloc.OLEAUT32.dll_SafeArrayAccessData
mov r8d, 0x22f
mov qword [rsp + 0x27c], rax
mov dword [rsp + 0x20], 1
call fcn.140010e20
mov ebx, eax
test eax, eax
jns 0x14001a048
mov rcx, qword [rdi]
mov dword [rsp + 0x4a0], 4
mov dword [rsp + 0x4a8], 4
test rcx, rcx
je 0x140019fd1
mov dword [rsp + 0x28], reloc.OLEAUT32.dll_SafeArrayAccessData
lea rdx, [rsp + 0x4a0]
mov dword [rsp + 0x20], r15d
xor r9d, r9d
mov r8d, 0x22f
call fcn.140010e20
test ebx, ebx
je 0x14001a01a
mov rsi, qword [rdi + 8]
mov qword [rdi], r15
mov qword [rdi + 8], r15
test rsi, rsi
je 0x14001a01a
mov eax, ebp
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x14001a01a
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax]
call qword [0x1400355d8]
lock xadd dword [rsi + 0xc], ebp
cmp ebp, 1
jne 0x14001a01a
mov rdx, qword [rsi]
mov rcx, rsi
mov rax, qword [rdx + 8]
call qword [0x1400355d8]
mov r15, qword [rsp + 0x930]
mov rsi, qword [rsp + 0x928]
mov rbp, qword [rsp + 0x920]
test ebx, ebx
jns 0x14001a0d5
mov eax, ebx
add rsp, 0x900
pop r14
pop rdi
pop rbx
ret
mov qword [rsp + 0x28], r15
lea r8, [0x14001aaf0]
mov r9, rdi
mov dword [rsp + 0x20], r15d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi + 0x68], rax
test rax, rax
jne 0x14001a079
mov ebx, 0x80004005
jmp 0x140019fd5
call fcn.140007cc0
mov qword [rdi + 0x18], rax
test rax, rax
jne 0x14001a0cc
mov rcx, qword [rdi]
mov dword [rsp + 0x6d0], 4
mov dword [rsp + 0x6d8], 4
test rcx, rcx
je 0x140019fd1
mov dword [rsp + 0x28], reloc.OLEAUT32.dll_SafeArrayAccessData
lea rdx, [rsp + 0x6d0]
mov dword [rsp + 0x20], r15d
xor r9d, r9d
mov r8d, 0x22f
jmp 0x140019fcc
mov byte [rdi + 0x74], 1
jmp 0x140019fd1
mov rcx, qword [rdi + 0x10]
test rcx, rcx
jne 0x14001a0ef
mov eax, 0x80070057
add rsp, 0x900
pop r14
pop rdi
pop rbx
ret
mov rdx, r14
add rsp, 0x900
pop r14
pop rdi
pop rbx
jmp fcn.1400126f0