Function at 0x140018810
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x6d0
mov rdi, rcx
lea rcx, [rsp + 0x30]
call fcn.140011210
xor r14d, r14d
mov rdx, qword [rax]
mov r8, qword [rax + 8]
lea ebp, [r14 - 1]
mov qword [rax], r14
mov qword [rax + 8], r14
mov rbx, qword [rdi + 8]
mov qword [rdi], rdx
mov qword [rdi + 8], r8
test rbx, rbx
je 0x140018891
mov eax, ebp
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140018891
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [0x140036608]
mov eax, ebp
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140018891
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x140036608]
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x1400188d2
mov eax, ebp
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400188d2
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [0x140036608]
mov eax, ebp
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400188d2
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x140036608]
mov rcx, qword [rdi]
mov qword [rsp + 0x6e0], rsi
test rcx, rcx
jne 0x1400188ec
mov ebx, 0x80004005
jmp 0x140018b15
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], r14d
call fcn.1400113c0
mov ebx, eax
test eax, eax
js 0x140018b15
movsd xmm0, qword [rsp + 0x4c]
mov ebx, r14d
cmp dword [rsp + 0x4c], ebx
mov eax, dword [rsp + 0x54]
sete bl
movsd qword [rdi + 0x20], xmm0
mov dword [rdi + 0x28], eax
test ebx, ebx
js 0x140018b13
cmp dword [rdi + 0x20], r14d
je 0x140018966
mov dword [rdi + 0x80], 1
mov ebx, r14d
lea rsi, [rdi + 0x30]
nop dword [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 0x1400188e2
inc ebx
add rsi, 8
cmp ebx, 6
jl 0x140018970
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 0x1400189ba
mov ebx, 0x80004005
jmp 0x140018b15
mov esi, r14d
nop dword [rax]
mov rax, qword [rdi + 0x38]
mov dword [rsp + 0x270], r14d
mov dword [rsp + 0x278], reloc.OLEAUT32.dll_SafeArrayGetDim
test rax, rax
jne 0x1400189e3
mov ebx, 0x80004005
jmp 0x140018a2e
mov rcx, qword [rdi + 0x58]
test rcx, rcx
jne 0x1400189f3
mov ebx, 0x80004005
jmp 0x140018a2e
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.1400113c0
mov ebx, eax
test ebx, ebx
jns 0x140018a8e
mov rcx, qword [rdi]
mov dword [rsp + 0x270], 4
mov dword [rsp + 0x278], 4
test rcx, rcx
je 0x140018a73
mov dword [rsp + 0x28], reloc.OLEAUT32.dll_SafeArrayAccessData
lea rdx, [rsp + 0x270]
xor r9d, r9d
mov dword [rsp + 0x20], r14d
mov r8d, 0x22f
call fcn.1400113c0
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0xa
jl 0x1400189c0
jmp 0x140018b15
mov qword [rsp + 0x28], r14
lea r8, [0x14001acb0]
mov r9, rdi
mov dword [rsp + 0x20], r14d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi + 0x68], rax
test rax, rax
jne 0x140018abc
mov ebx, 0x80004005
jmp 0x140018b15
call fcn.140008090
mov qword [rdi + 0x18], rax
test rax, rax
jne 0x140018b0d
mov rcx, qword [rdi]
mov dword [rsp + 0x4a0], 4
mov dword [rsp + 0x4a8], 4
test rcx, rcx
je 0x140018b11
mov dword [rsp + 0x28], reloc.OLEAUT32.dll_SafeArrayAccessData
lea rdx, [rsp + 0x4a0]
xor r9d, r9d
mov dword [rsp + 0x20], r14d
mov r8d, 0x22f
call fcn.1400113c0
jmp 0x140018b11
mov byte [rdi + 0x74], 1
test ebx, ebx
je 0x140018b5a
mov rsi, qword [rdi + 8]
mov qword [rdi], r14
mov qword [rdi + 8], r14
test rsi, rsi
je 0x140018b5a
mov eax, ebp
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x140018b5a
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax]
call qword [0x140036608]
lock xadd dword [rsi + 0xc], ebp
cmp ebp, 1
jne 0x140018b5a
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 8]
call qword [0x140036608]
mov rsi, qword [rsp + 0x6e0]
lea r11, [rsp + 0x6d0]
mov rbp, qword [r11 + 0x20]
mov eax, ebx
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret