Function at 0x140066e80
Capabilities:
Create thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
movzx ebp, byte [rcx + 0x5b]
sub ebp, 1
mov byte [rcx + 0x58], 1
mov r12, rcx
test ebp, ebp
jle 0x1400671b1
movzx ecx, byte [rcx + 0x5a]
mov r8d, ebp
xor edi, edi
add ecx, 1
lea eax, [rcx + rdi]
cdq
idiv ebp
movsxd rbx, edx
lea rax, [rbx + rbx*2]
lea rax, [rbx + rax*4]
lea rax, [r12 + rax*8]
mov r9d, dword [rax + 0x68]
mov r13, qword [rax + 0x60]
test r9d, r9d
je 0x140066f58
test r13, r13
je 0x140066fa5
cmp qword [r13 + 0x10], 0
je 0x140066f78
mov r14, qword [r13]
nop
mov r8d, 1
mov edx, 0xffffffff
mov rcx, r14
call qword [0x1401afd88]
mov esi, eax
cmp eax, 0xc0
je 0x140066ef0
mov rcx, qword [r13]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x140066f78
mov rcx, r13
call fcn.140007bf0
lea rax, [rbx + rbx*2]
mov edx, 1
lea rax, [rbx + rax*4]
lea rax, [r12 + rax*8]
mov dword [rax + 0x68], 0
mov qword [rax + 0x60], 0
mov eax, edx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
test r13, r13
je 0x1400671c2
add edi, 1
cmp ebp, edi
jne 0x140066eb0
mov edi, r8d
jmp 0x140066fa5
mov rcx, r13
mov rsi, qword [r13 + 0x20]
call fcn.140007bf0
lea rax, [rbx + rbx*2]
lea rax, [rbx + rax*4]
mov edx, esi
lea rax, [r12 + rax*8]
mov dword [rax + 0x68], 0
mov qword [rax + 0x60], 0
test esi, esi
jne 0x140066f43
lea rax, [rbx + rbx*2]
lea rax, [rbx + rax*4]
lea rsi, [r12 + rax*8 + 0x60]
cmp ebp, edi
je 0x1400670e4
lea rdx, [r12 + 0x60]
mov rax, rsi
movdqu xmm1, xmmword [r12 + 0x38]
mov rcx, qword [rsi + 0x28]
sub rax, rdx
movabs rdx, 0x4ec4ec4ec4ec4ec5
sar rax, 3
imul rax, rdx
mov byte [r12 + 0x5a], al
movups xmmword [rsi + 0x20], xmm1
mov rax, qword [r12 + 0x48]
mov qword [rsi + 0x30], rax
mov qword [r12 + 0x38], 0
mov dword [r12 + 0x48], 0
test rcx, rcx
je 0x14006714a
mov qword [r12 + 0x40], rcx
call qword [0x1401b01f8]
mov dword [r12 + 0x54], eax
mov qword [rsi], 0
mov eax, dword [0x1401b01c0]
test eax, eax
jne 0x1400670c0
mov ecx, 0x28
call qword [0x1401b01e0]
mov rbx, rax
test rbx, rbx
je 0x14006719c
cmp byte [0x1401b01c4], 0
je 0x140067110
mov rax, qword [0x1401b0350]
test rax, rax
je 0x140067073
mov ecx, 0xc8
call rax
test eax, eax
jne 0x140067110
lea rax, [0x140027350]
mov qword [rbx + 0x18], rsi
mov r9, rbx
xor edx, edx
mov qword [rbx + 0x10], rax
lea rax, [rbx + 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 [rbx], rax
test rax, rax
je 0x140067110
cmp qword [rbx + 0x10], 0
je 0x140067123
mov qword [rsi], rbx
xor edx, edx
jmp 0x140066f43
mov rcx, qword [0x1401f5360]
test rcx, rcx
je 0x1400670d2
call qword [0x1401b0240]
mov ecx, 0x28
call fcn.14000bed0
mov rbx, rax
jmp 0x140067042
movsxd rbp, ebp
lea rdx, [r12 + 0x38]
lea rax, [rbp + rbp*2]
lea rax, [rbp + rax*4]
lea rcx, [r12 + rax*8 + 0x60]
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp fcn.140026fc0
mov qword [rbx + 0x20], 0
pxor xmm0, xmm0
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsi + 0x20]
mov rcx, rsi
mov dword [rbx + 8], eax
call fcn.140026fc0
mov dword [rsi + 8], 1
cdqe
mov qword [rbx + 0x20], rax
jmp 0x1400670b6
cmp qword [r12 + 0x40], 0
je 0x14006701f
movsxd rbx, dword [r12 + 0x54]
lea rax, [rbx - 1]
mov rcx, rbx
cmp rax, 0x7ffffefe
ja 0x1400671a6
mov edx, dword [0x1401b01c0]
test edx, edx
je 0x1400671ba
mov rcx, qword [0x1401f5360]
test rcx, rcx
je 0x140067186
call qword [0x1401b0240]
mov rcx, rbx
call fcn.14000bed0
mov qword [r12 + 0x40], rax
test rax, rax
jne 0x14006701f
mov edx, 7
jmp 0x140066f43
mov qword [r12 + 0x40], 0
jmp 0x14006719c
xor edi, edi
xor esi, esi
jmp 0x140066fb2
call qword [0x1401b01e0]
jmp 0x14006718e
mov r8d, edi
jmp 0x140066f6c