Function at 0x1400195c0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x900
xor edi, edi
mov ebp, edx
mov esi, edi
mov rbx, rcx
mov r12d, 0x80004005
cmp byte [rcx + 0x74], sil
jne 0x14001988e
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x928], r15
call fcn.140010c90
lea r15d, [rdi - 1]
mov r8, qword [rax]
mov rdx, qword [rax + 8]
mov qword [rax], rdi
mov qword [rax + 8], rdi
mov rsi, qword [rbx + 8]
mov qword [rbx], r8
mov qword [rbx + 8], rdx
test rsi, rsi
je 0x14001965b
mov eax, r15d
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x14001965b
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax]
call qword [0x1400355d8]
mov eax, r15d
lock xadd dword [rsi + 0xc], eax
cmp eax, 1
jne 0x14001965b
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 8]
call qword [0x1400355d8]
mov rsi, qword [rsp + 0x38]
test rsi, rsi
je 0x14001969e
mov eax, r15d
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x14001969e
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax]
call qword [0x1400355d8]
mov eax, r15d
lock xadd dword [rsi + 0xc], eax
cmp eax, 1
jne 0x14001969e
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 8]
call qword [0x1400355d8]
mov rcx, qword [rbx]
mov qword [rsp + 0x920], r14
test rcx, rcx
jne 0x1400196b6
mov esi, r12d
jmp 0x14001982d
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], edi
call fcn.140010e20
mov esi, eax
test eax, eax
js 0x140019713
movsd xmm0, qword [rsp + 0x4c]
mov esi, edi
cmp dword [rsp + 0x4c], edi
mov eax, dword [rsp + 0x54]
movsd qword [rbx + 0x20], xmm0
sete sil
mov dword [rbx + 0x28], eax
test esi, esi
js 0x14001982b
cmp dword [rbx + 0x20], edi
je 0x14001972a
mov dword [rbx + 0x80], 1
mov esi, edi
lea r14, [rbx + 0x30]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [r14], rax
test rax, rax
je 0x1400196ae
inc esi
add r14, 8
cmp esi, 6
jl 0x140019730
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x60], rax
test rax, rax
jne 0x140019778
mov esi, r12d
jmp 0x14001982d
mov rax, qword [rbx + 0x38]
mov dword [rsp + 0x270], edi
mov dword [rsp + 0x278], reloc.OLEAUT32.dll_SafeArrayGetDim
test rax, rax
jne 0x140019798
mov esi, r12d
jmp 0x1400197e9
mov rcx, qword [rbx + 0x58]
test rcx, rcx
jne 0x1400197a6
mov esi, r12d
jmp 0x1400197e9
mov qword [rsp + 0x284], rcx
lea rdx, [rsp + 0x270]
mov rcx, qword [rbx]
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 esi, eax
test eax, eax
jns 0x1400198ae
mov rcx, qword [rbx]
mov dword [rsp + 0x4a0], 4
mov dword [rsp + 0x4a8], 4
test rcx, rcx
je 0x140019829
mov dword [rsp + 0x28], reloc.OLEAUT32.dll_SafeArrayAccessData
lea rdx, [rsp + 0x4a0]
mov dword [rsp + 0x20], edi
xor r9d, r9d
mov r8d, 0x22f
call fcn.140010e20
test esi, esi
je 0x140019876
mov r14, qword [rbx + 8]
mov qword [rbx], rdi
mov qword [rbx + 8], rdi
test r14, r14
je 0x140019876
mov eax, r15d
lock xadd dword [r14 + 8], eax
cmp eax, 1
jne 0x140019876
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax]
call qword [0x1400355d8]
lock xadd dword [r14 + 0xc], r15d
cmp r15d, 1
jne 0x140019876
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 8]
call qword [0x1400355d8]
mov r15, qword [rsp + 0x928]
mov r14, qword [rsp + 0x920]
test esi, esi
jne 0x140019991
lea rax, [rbx + 0x30]
cmp qword [rax], 0
je 0x140019937
inc rdi
add rax, 8
cmp rdi, 6
jl 0x140019892
jmp 0x14001993a
mov qword [rsp + 0x28], rdi
lea r8, [0x14001aaf0]
mov r9, rbx
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x68], rax
test rax, rax
jne 0x1400198dc
mov esi, r12d
jmp 0x14001982d
call fcn.140007cc0
mov qword [rbx + 0x18], rax
test rax, rax
jne 0x14001992e
mov rcx, qword [rbx]
mov dword [rsp + 0x6d0], 4
mov dword [rsp + 0x6d8], 4
test rcx, rcx
je 0x140019829
mov dword [rsp + 0x28], reloc.OLEAUT32.dll_SafeArrayAccessData
lea rdx, [rsp + 0x6d0]
mov dword [rsp + 0x20], edi
xor r9d, r9d
mov r8d, 0x22f
jmp 0x140019824
mov byte [rbx + 0x74], 1
jmp 0x140019829
mov esi, r12d
test ebp, ebp
je 0x140019970
sub ebp, 1
je 0x140019964
sub ebp, 1
je 0x14001995e
sub ebp, 1
je 0x140019958
cmp ebp, 1
jne 0x14001997a
mov rcx, qword [rbx + 0x50]
jmp 0x140019974
mov rcx, qword [rbx + 0x48]
jmp 0x140019974
mov rcx, qword [rbx + 0x40]
jmp 0x140019974
cmp byte [rbx + 0x75], 0
je 0x14001997a
mov rcx, qword [rbx + 0x38]
jmp 0x140019974
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 0x60]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [rbx + 0x77], 0
cmove esi, r12d
lea r11, [rsp + 0x900]
mov eax, esi
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret