Function at 0x140068430
Capabilities:
Create thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
movsxd rax, dword [rdx]
mov qword [rdx + 8], rcx
mov rsi, rcx
mov rbx, rdx
test eax, eax
jle 0x140068660
cmp r8d, 2
je 0x1400686f0
lea r12, [rax + rax*4]
xor edi, edi
pxor xmm6, xmm6
shl r12, 4
mov rbp, qword [rbx + 0x18]
add rbp, rdi
mov rax, qword [rbp + 0x48]
test rax, rax
je 0x140068550
mov edx, dword [rax + 0x20]
test edx, edx
je 0x140068630
mov r14, qword [rax]
mov qword [r14], 0
mov eax, dword [0x1401b01c0]
test eax, eax
je 0x1400686c8
mov rcx, qword [0x1401f5360]
test rcx, rcx
je 0x1400684b9
call qword [0x1401b0240]
mov ecx, 0x28
call fcn.14000bed0
mov r13, rax
test r13, r13
je 0x1400686df
cmp byte [0x1401b01c4], 0
je 0x140068680
mov rax, qword [0x1401b0350]
test rax, rax
je 0x1400684f7
mov ecx, 0xc8
call rax
test eax, eax
jne 0x140068680
lea rax, [fcn.140068a30]
mov qword [r13 + 0x18], rbp
mov r9, r13
xor edx, edx
mov qword [r13 + 0x10], rax
lea rax, [r13 + 8]
lea r8, [0x140007360]
xor ecx, ecx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov qword [r13], rax
test rax, rax
je 0x140068728
cmp qword [r13 + 0x10], 0
je 0x140068692
mov qword [r14], r13
nop word cs:[rax + rax]
add rdi, 0x50
cmp r12, rdi
jne 0x140068470
mov edx, dword [rbx]
lea ebp, [rdx - 1]
test ebp, ebp
jle 0x140068660
movsxd r12, ebp
lea rdi, [rsp + 0x3c]
shl r12, 2
jmp 0x140068602
mov r13d, ebp
sub r13d, eax
add r13d, r13d
lea r14d, [r13 + 1]
movsxd rax, r13d
mov rdx, qword [rbx + 0x18]
lea rax, [rax + rax*4]
shl rax, 4
add rax, rdx
cmp qword [rax + 0x18], 0
je 0x1400685ef
movsxd rcx, r14d
lea rcx, [rcx + rcx*4]
shl rcx, 4
add rdx, rcx
cmp qword [rdx + 0x18], 0
je 0x140068670
mov r9d, dword [rax + 0x14]
mov r8, qword [rax + 0x28]
mov dword [rsp + 0x3c], 0
mov eax, dword [rdx + 0x14]
mov rcx, qword [rbx + 8]
mov dword [rsp + 0x28], eax
mov rax, qword [rdx + 0x28]
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [rcx + 0x40]
test eax, eax
cmovle r14d, r13d
mov rax, qword [rbx + 0x10]
mov dword [rax + r12], r14d
sub r12, 4
sub ebp, 1
je 0x140068660
mov edx, dword [rbx]
mov eax, edx
shr eax, 0x1f
add eax, edx
sar eax, 1
cmp eax, ebp
jle 0x140068580
mov rax, qword [rbx + 0x10]
lea edx, [rbp + rbp]
mov r13d, dword [rax + rdx*4]
mov r14d, dword [rax + rdx*4 + 4]
jmp 0x14006858d
xor edx, edx
mov rcx, rbp
call fcn.140068310
test eax, eax
je 0x140068550
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rax, qword [rsi + 0x18]
movzx eax, byte [rax + 0x1f]
jmp 0x140068642
mov r14d, r13d
jmp 0x1400685ef
mov qword [r13 + 0x20], 0
movups xmmword [r13], xmm6
movups xmmword [r13 + 0x10], xmm6
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, 1
mov rcx, rbp
mov dword [r13 + 8], eax
call fcn.140068310
mov rdx, qword [rbp + 0x48]
cdqe
mov rdx, qword [rdx]
mov dword [rdx + 8], 1
mov qword [r13 + 0x20], rax
jmp 0x140068543
mov ecx, 0x28
call qword [0x1401b01e0]
mov r13, rax
test r13, r13
jne 0x1400684cf
mov eax, 7
jmp 0x140068642
lea rdi, [rax + rax*4]
shl rdi, 4
sub rdi, 0x50
jmp 0x14006870e
sub rdi, 0x50
cmp rdi, 0xffffffffffffffb0
je 0x14006855d
mov rcx, qword [rbx + 0x18]
add rcx, rdi
call fcn.140067990
test eax, eax
je 0x140068700
jmp 0x140068642
pxor xmm0, xmm0
mov qword [r13 + 0x20], 0
movups xmmword [r13], xmm0
movups xmmword [r13 + 0x10], xmm0
jmp 0x140068692