Function at 0x140060220
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x140162170]
xor rax, rsp
mov qword [rbp + 0x3f], rax
xor esi, esi
mov r14d, esi
cmp qword [0x140168f68], rsi
jne 0x140060419
lea rdx, [0x1401427d0]
mov ecx, 0x110
call fcn.1400f09ec
mov rdi, rax
mov qword [rbp - 1], rax
test rax, rax
je 0x1400602f0
mov qword [rax], rsi
mov dword [rax + 8], esi
mov byte [rax + 0xc], 1
lea rbx, [rax + 0x10]
mov qword [rbp + 7], rbx
mov dword [rbx], 0xffffffff
lea rcx, [rbx + 8]
lea edx, [rsi + 2]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
nop
lea rcx, [rbx + 0x58]
call qword [sym.imp.MSVCP140.dll__Cnd_init_in_situ]
nop
lea rcx, [rbx + 0xa0]
call qword [sym.imp.MSVCP140.dll__Cnd_init_in_situ]
nop
mov qword [rbx + 0xe8], rsi
mov qword [rbx + 0xf0], rsi
lea ecx, [rsi + 0x20]
call fcn.14005ee70
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rbx + 0xe8], rax
mov word [rbx + 0xf8], 1
jmp 0x1400602f3
mov rdi, rsi
mov qword [0x140168f68], rdi
test rdi, rdi
jne 0x140060309
mov eax, 0x5e0002
jmp 0x14006065b
cmp qword [rdi], 0
je 0x14006031a
mov r14d, 0x1f0004
jmp 0x14006051c
lea rdx, [0x1401427d0]
mov ecx, 0x38
call fcn.1400f0d4c
mov qword [rbp + 7], rax
test rax, rax
je 0x140060365
mov qword [rax], 1
lea rbx, [rax + 8]
lea rax, [0x14006a110]
mov qword [rsp + 0x20], rax
lea r9, [0x14006a0e0]
mov edx, 0x30
lea r8d, [rdx - 0x2f]
mov rcx, rbx
call fcn.1400f0d54
jmp 0x140060368
mov rbx, rsi
mov qword [rdi], rbx
test rbx, rbx
jne 0x14006037b
mov r14d, 0x270002
jmp 0x140060515
mov byte [rdi + 0xc], 0
lea rcx, [rdi + 0x18]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x140060396
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
mov word [rdi + 0x108], 0
lea rcx, [rdi + 0x18]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov r14, rsi
lea r12, [0x14006a1a0]
mov rbx, qword [rdi]
add rbx, r14
cmp qword [rbx + 8], 0
jne 0x1400604c5
mov qword [rbx + 0x18], r12
mov qword [rbx + 0x10], rdi
mov dword [rbp - 1], 0xffffffff
lea rax, [rbp - 1]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
mov r9, rbx
lea r8, [0x14006a170]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx + 8], rax
test rax, rax
je 0x1400604b5
mov byte [rbx + 0x28], 0
add r14, 0x30
cmp r14, 0x30
jl 0x1400603b3
mov dword [rdi + 8], 1
mov r14d, esi
lea rax, [0x1401621d0]
mov qword [0x140168c58], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x19], xmm0
mov qword [rbp - 9], rsi
mov qword [rbp + 0x17], rsi
movdqa xmm0, xmmword [0x14014a930]
movdqu xmmword [rbp + 0x27], xmm0
mov byte [rbp + 0x17], 0
lea rdx, [rbp + 0xf]
mov ecx, 0x100
call fcn.14005fff0
test al, al
je 0x14006046d
lea r8, [rbp + 0xf]
xor edx, edx
lea rcx, [rbp - 0x19]
call fcn.140062250
mov rsi, qword [rbp - 9]
lea rdx, [rbp + 0xf]
mov ecx, 0x400
call fcn.14005fff0
mov rbx, qword [rbp - 0x11]
test al, al
je 0x14006054d
cmp rbx, rsi
je 0x140060535
mov eax, dword [rbp + 0xf]
mov dword [rbx], eax
lea rcx, [rbx + 8]
lea rdx, [rbp + 0x17]
call fcn.140061f10
mov eax, dword [rbp + 0x37]
mov dword [rbx + 0x28], eax
add rbx, 0x30
mov qword [rbp - 0x11], rbx
jmp 0x14006054d
mov qword [rbx + 0x18], rsi
mov qword [rbx + 0x10], rsi
mov r14d, 0x39001d
jmp 0x1400604cb
mov r14d, 0x2f0004
mov byte [rdi + 0xc], 1
lea rcx, [rdi + 0x10]
call fcn.14006a560
mov rcx, qword [rdi]
test rcx, rcx
je 0x140060508
cmp qword [rcx - 8], 0
je 0x1400604fa
mov rax, qword [rcx]
mov edx, 3
mov rax, qword [rax]
call qword [0x14013fad8]
jmp 0x140060508
mov edx, 8
add rcx, 0xfffffffffffffff8
call fcn.1400f0d44
mov qword [rdi], rsi
test r14w, r14w
je 0x140060419
mov rdi, qword [0x140168f68]
test rdi, rdi
je 0x140060529
mov rcx, rdi
call fcn.140060690
mov qword [0x140168f68], rsi
jmp 0x140060658
lea r8, [rbp + 0xf]
mov rdx, rbx
lea rcx, [rbp - 0x19]
call fcn.140062250
mov rsi, qword [rbp - 9]
mov rbx, qword [rbp - 0x11]
lea rdx, [rbp + 0xf]
mov ecx, 0x200
call fcn.14005fff0
test al, al
je 0x14006059e
cmp rbx, rsi
je 0x140060586
mov eax, dword [rbp + 0xf]
mov dword [rbx], eax
lea rcx, [rbx + 8]
lea rdx, [rbp + 0x17]
call fcn.140061f10
mov eax, dword [rbp + 0x37]
mov dword [rbx + 0x28], eax
add rbx, 0x30
mov qword [rbp - 0x11], rbx
jmp 0x14006059e
lea r8, [rbp + 0xf]
mov rdx, rbx
lea rcx, [rbp - 0x19]
call fcn.140062250
mov rsi, qword [rbp - 9]
mov rbx, qword [rbp - 0x11]
lea rcx, [rbp + 0x17]
call fcn.14005d600
mov r15, qword [rbp - 0x19]
mov rdi, r15
cmp r15, rbx
je 0x1400605dd
mov eax, dword [rdi]
mov dword [rbp + 0xf], eax
lea rdx, [rdi + 8]
lea rcx, [rbp + 0x17]
call fcn.140061f10
mov eax, dword [rdi + 0x28]
mov dword [rbp + 0x37], eax
lea rcx, [rbp + 0xf]
call fcn.1400d8580
add rdi, 0x30
cmp rdi, rbx
jne 0x1400605b3
test r15, r15
je 0x140060658
mov rdi, r15
cmp r15, rbx
je 0x140060602
nop
lea rcx, [rdi + 8]
call fcn.14005d600
add rdi, 0x30
cmp rdi, rbx
jne 0x1400605f0
sub rsi, r15
movabs rax, 0x2aaaaaaaaaaaaaab
imul rsi
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 4
mov rax, r15
cmp rdx, 0x1000
jb 0x140060650
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140060650
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.1400f0480
mov eax, r14d
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.1400f0460
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret