Function at 0x180041a50
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0xc0
mov rax, qword [0x180178b40]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov qword [rbp - 0x49], r9
mov r12, r8
mov r13, rdx
mov qword [rbp - 0x51], rcx
mov r14, qword [rbp + 0x7f]
xor r15d, r15d
call sub.MSVCP140.dll__Thrd_hardware_concurrency
mov esi, eax
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x11], xmm1
mov qword [rbp - 1], r15
movdqu xmmword [rbp + 7], xmm1
mov qword [rbp + 0x17], r15
mov edx, eax
lea rcx, [rbp + 7]
call fcn.1800402f0
nop
mov rax, r12
sub rax, r13
xor edx, edx
div rsi
mov rdi, rax
mov ebx, r15d
test esi, esi
je 0x180041bb9
lea r15d, [rsi - 1]
nop dword [rax]
mov ecx, ebx
imul rcx, rdi
add rcx, r13
cmp ebx, r15d
mov rax, r12
je 0x180041af5
lea rax, [rcx + rdi]
lea rdx, [rbp + 7]
mov qword [rbp - 0x41], rdx
mov rdx, qword [rbp - 0x51]
mov qword [rbp - 0x39], rdx
mov qword [rbp - 0x31], rcx
mov qword [rbp - 0x29], rax
mov rax, qword [rbp - 0x49]
mov qword [rbp - 0x21], rax
mov dword [rbp - 0x19], ebx
mov ecx, 0x30
call fcn.1800e5708
test rax, rax
je 0x180041b3e
movups xmm0, xmmword [rbp - 0x41]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rbp - 0x31]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rbp - 0x21]
movups xmmword [rax + 0x20], xmm0
mov qword [rbp + 0x1f], rax
lea rcx, [rbp - 0x59]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x180040960]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x61], rax
test rax, rax
je 0x180041d83
mov rdx, qword [rbp - 9]
cmp rdx, qword [rbp - 1]
je 0x180041b94
xorps xmm0, xmm0
movaps xmm1, xmmword [rbp - 0x61]
movdqa xmmword [rbp - 0x61], xmm0
movups xmmword [rdx], xmm1
add qword [rbp - 9], 0x10
jmp 0x180041ba2
lea r8, [rbp - 0x61]
lea rcx, [rbp - 0x11]
call fcn.1800404d0
nop
cmp dword [rbp - 0x59], 0
jne 0x180041cc8
inc ebx
cmp ebx, esi
jb 0x180041ae0
xor r15d, r15d
mov rbx, qword [rbp - 0x11]
mov rdi, qword [rbp - 9]
cmp rbx, rdi
je 0x180041c0b
cmp dword [rbx + 8], 0
je 0x180041d78
call sub.MSVCP140.dll__Thrd_id
cmp dword [rbx + 8], eax
je 0x180041da0
movups xmm0, xmmword [rbx]
movaps xmmword [rbp - 0x61], xmm0
xor edx, edx
lea rcx, [rbp - 0x61]
call sub.MSVCP140.dll__Thrd_join
test eax, eax
jne 0x180041d95
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
add rbx, 0x10
cmp rbx, rdi
jne 0x180041bc6
mov rbx, qword [rbp - 0x11]
mov rsi, qword [rbp + 0xf]
mov rdi, qword [rbp + 7]
cmp rdi, rsi
je 0x180041c4f
nop dword [rax + rax]
mov r8, qword [rdi]
mov r9, qword [rdi + 8]
sub r9, r8
sar r9, 3
mov rdx, qword [r14 + 8]
mov rcx, r14
call fcn.1800406f0
add rdi, 0x18
cmp rdi, rsi
jne 0x180041c20
mov rbx, qword [rbp - 0x11]
mov rsi, qword [rbp + 0xf]
mov rdi, qword [rbp + 7]
mov rax, qword [r14 + 8]
cmp qword [r14], rax
setne r14b
test rdi, rdi
je 0x180041ce7
lea r8, [rbp + 7]
mov rdx, rsi
mov rcx, rdi
call fcn.180040410
mov rcx, qword [rbp + 0x17]
mov r8, qword [rbp + 7]
sub rcx, r8
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rdx, [rdx + rdx*2]
shl rdx, 3
mov rax, r8
cmp rdx, 0x1000
jb 0x180041ccf
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180041ccf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov rcx, r8
call fcn.1800e5744
xorps xmm0, xmm0
movdqu xmmword [rbp + 7], xmm0
mov qword [rbp + 0x17], r15
mov rbx, qword [rbp - 0x11]
test rbx, rbx
je 0x180041d47
mov rax, rbx
cmp rbx, qword [rbp - 9]
je 0x180041d05
cmp dword [rax + 8], 0
jne 0x180041d38
add rax, 0x10
cmp rax, qword [rbp - 9]
jne 0x180041cf5
mov rdx, qword [rbp - 1]
sub rdx, rbx
and rdx, 0xfffffffffffffff0
mov rax, rbx
cmp rdx, 0x1000
jb 0x180041d3f
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180041d3f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov rcx, rbx
call fcn.1800e5744
movzx eax, r14b
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1800e5bd0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ecx, 1
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov dword [rbp - 0x59], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov ecx, 2
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
mov ecx, 5
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3