Function at 0x18013e4a0
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov dword [rax + 0x18], r8d
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x108]
sub rsp, 0x1c8
movaps xmmword [rax - 0x58], xmm6
movaps xmmword [rax - 0x68], xmm7
movaps xmmword [rax - 0x78], xmm8
movaps xmmword [rax - 0x88], xmm9
movaps xmmword [rax - 0x98], xmm10
xor edi, edi
mov dword [rsp + 0x30], edi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
mov r13d, edi
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x70], rdi
movdqu xmmword [rbp - 0x80], xmm0
mov r12d, edi
mov qword [rbp - 0x70], rdi
movdqu xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], rdi
movdqu xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], rdi
xorps xmm9, xmm9
xorps xmm10, xmm10
call fcn.18009f8f0
test al, al
je 0x18013e57c
movsxd rcx, dword [0x1803450b8]
add rcx, qword [0x180350aa8]
call fcn.180133d60
movaps xmm9, xmm0
movsxd rcx, dword [0x1803450bc]
add rcx, qword [0x180350aa8]
call fcn.180133d60
movaps xmm10, xmm0
movsxd rcx, dword [0x1803450b8]
mov rax, qword [0x180350aa8]
add rax, 4
add rcx, rax
call fcn.180133d60
mov r8d, 1
movzx edx, r8b
lea rcx, [rbp - 0x50]
call fcn.180136460
nop
mov r10, qword [rbp + 0x110]
mov rcx, qword [r10]
mov rax, qword [r10 + 8]
cmp rcx, rax
je 0x18013f206
mov rdx, qword [rbp + 0x130]
mov r11d, dword [rdx]
mov dword [rsp + 0x40], r11d
movabs rsi, 0xd37a6f4de9bd37a7
test r11d, r11d
jle 0x18013e827
mov r10d, dword [rdx + 4]
mov dword [rsp + 0x38], r10d
test r10d, r10d
jle 0x18013e820
mov r9d, dword [rbp + 0x138]
test r9d, r9d
jle 0x18013e820
mov r8d, edi
mov dword [rsp + 0x50], edi
sub rax, rcx
sar rax, 2
test rax, rax
je 0x18013ea47
mov r15, rdi
movss xmm8, dword [0x180307b18]
movss xmm7, dword [0x180307dc8]
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rbp - 0x78]
mov rdx, qword [rbp - 0x50]
nop dword [rax]
nop word [rax + rax]
xor r14d, r14d
mov rax, qword [rbp - 0x48]
sub rax, rdx
sar rax, 3
imul rax, rsi
test rax, rax
je 0x18013e7f1
xor esi, esi
nop dword [rax]
cmp dword [rdx + rsi + 0x78], 1
jne 0x18013e79d
mov ecx, dword [rdx + rsi + 0x1c]
test ecx, ecx
jle 0x18013e79d
mov rax, qword [rbp + 0x110]
mov rax, qword [rax]
mov r8d, dword [r15 + rax]
test r8d, r8d
jle 0x18013e79d
cmp ecx, r8d
jne 0x18013e79d
mov eax, dword [rbp + 0x128]
cmp dword [rdx + rsi + 0x20], eax
jl 0x18013e79d
movss xmm3, dword [rdx + rsi + 0x14]
movaps xmm1, xmm3
subss xmm1, xmm10
mulss xmm1, xmm1
movss xmm2, dword [rdx + rsi + 0x10]
movaps xmm0, xmm2
subss xmm0, xmm9
mulss xmm0, xmm0
addss xmm0, xmm1
xorps xmm4, xmm4
cvtsi2ss xmm4, r14d
mulss xmm4, xmm8
xorps xmm6, xmm6
sqrtss xmm6, xmm0
addss xmm6, xmm4
movss dword [rsp + 0x78], xmm6
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [rbp + 0x118]
mulss xmm0, xmm7
comiss xmm6, xmm0
jae 0x18013e79d
xorps xmm0, xmm0
cvtsi2ss xmm0, r10d
mulss xmm0, xmm7
subss xmm3, xmm0
mulss xmm3, xmm3
xorps xmm0, xmm0
cvtsi2ss xmm0, r11d
mulss xmm0, xmm7
subss xmm2, xmm0
mulss xmm2, xmm2
addss xmm2, xmm3
xorps xmm1, xmm1
sqrtss xmm1, xmm2
addss xmm1, xmm4
xorps xmm0, xmm0
cvtsi2ss xmm0, r9d
mulss xmm0, xmm7
comiss xmm1, xmm0
jae 0x18013e79d
cmp rdi, r13
je 0x18013e751
movss dword [rdi], xmm6
add rdi, 4
mov qword [rsp + 0x68], rdi
jmp 0x18013e76d
lea r8, [rsp + 0x78]
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.18000c750
mov r13, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x68]
cmp rbx, r12
je 0x18013e780
movss dword [rbx], xmm6
add rbx, 4
mov qword [rbp - 0x78], rbx
jmp 0x18013e799
lea r8, [rsp + 0x78]
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.18000c750
mov r12, qword [rbp - 0x70]
mov rbx, qword [rbp - 0x78]
mov rdx, qword [rbp - 0x50]
inc r14d
add rsi, 0xb8
mov rcx, qword [rbp - 0x48]
sub rcx, rdx
sar rcx, 3
movabs rax, 0xd37a6f4de9bd37a7
imul rcx, rax
movsxd rax, r14d
cmp rax, rcx
mov r9d, dword [rbp + 0x138]
mov r10d, dword [rsp + 0x38]
mov r11d, dword [rsp + 0x40]
jb 0x18013e650
mov qword [rsp + 0x78], r13
mov r8d, dword [rsp + 0x50]
movabs rsi, 0xd37a6f4de9bd37a7
inc r8d
mov dword [rsp + 0x50], r8d
add r15, 4
mov rax, qword [rbp + 0x110]
mov rcx, qword [rax + 8]
sub rcx, qword [rax]
sar rcx, 2
movsxd rax, r8d
cmp rax, rcx
jb 0x18013e630
jmp 0x18013ea50
mov r10, qword [rbp + 0x110]
mov r9d, edi
mov dword [rsp + 0x40], edi
sub rax, rcx
sar rax, 2
test rax, rax
je 0x18013ea47
mov r8, rdi
mov qword [rsp + 0x38], rdi
movss xmm7, dword [0x180307b18]
movss xmm8, dword [0x180307dc8]
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rbp - 0x78]
mov rdx, qword [rbp - 0x50]
nop dword [rax]
nop dword [rax + rax]
xor r14d, r14d
mov rax, qword [rbp - 0x48]
sub rax, rdx
sar rax, 3
imul rax, rsi
test rax, rax
je 0x18013ea1d
xor r15d, r15d
xor esi, esi
movabs rcx, 0xd37a6f4de9bd37a7
nop word [rax + rax]
cmp dword [rdx + rsi + 0x78], 1
jne 0x18013e9dd
mov ecx, dword [rdx + rsi + 0x1c]
test ecx, ecx
jle 0x18013e9d3
mov rax, qword [r10]
mov r8d, dword [r8 + rax]
test r8d, r8d
jle 0x18013e9ce
cmp ecx, r8d
jne 0x18013e9ce
mov eax, dword [rbp + 0x128]
cmp dword [rdx + rsi + 0x20], eax
jl 0x18013e9ce
movss xmm1, dword [rdx + rsi + 0x14]
subss xmm1, xmm10
mulss xmm1, xmm1
movss xmm0, dword [rdx + rsi + 0x10]
subss xmm0, xmm9
mulss xmm0, xmm0
addss xmm0, xmm1
xorps xmm6, xmm6
sqrtss xmm6, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, r14d
mulss xmm0, xmm7
addss xmm6, xmm0
movss dword [rsp + 0x50], xmm6
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [rbp + 0x118]
mulss xmm0, xmm8
comiss xmm6, xmm0
jae 0x18013e9ce
cmp rdi, r13
je 0x18013e94c
movss dword [rdi], xmm6
add rdi, 4
mov qword [rsp + 0x68], rdi
jmp 0x18013e968
lea r8, [rsp + 0x50]
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.18000c750
mov r13, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x68]
cmp rbx, r12
je 0x18013e97b
movss dword [rbx], xmm6
add rbx, 4
mov qword [rbp - 0x78], rbx
jmp 0x18013e994
lea r8, [rsp + 0x50]
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.18000c750
mov r12, qword [rbp - 0x70]
mov rbx, qword [rbp - 0x78]
imul r8, r15, 0xb8
add r8, qword [rbp - 0x50]
mov rax, qword [rbp + 0x28]
cmp rax, qword [rbp + 0x30]
je 0x18013e9be
mov rdx, r8
mov rcx, rax
call fcn.18004f6f0
add qword [rbp + 0x28], 0xb8
jmp 0x18013e9ca
mov rdx, rax
lea rcx, [rbp + 0x20]
call fcn.18005e320
mov rdx, qword [rbp - 0x50]
mov r8, qword [rsp + 0x38]
movabs rcx, 0xd37a6f4de9bd37a7
inc r14d
add rsi, 0xb8
movsxd r15, r14d
mov rax, qword [rbp - 0x48]
sub rax, rdx
sar rax, 3
imul rax, rcx
cmp r15, rax
mov r10, qword [rbp + 0x110]
jb 0x18013e8a0
mov qword [rsp + 0x78], r13
mov r9d, dword [rsp + 0x40]
movabs rsi, 0xd37a6f4de9bd37a7
inc r9d
mov dword [rsp + 0x40], r9d
add r8, 4
mov qword [rsp + 0x38], r8
mov rcx, qword [r10 + 8]
sub rcx, qword [r10]
sar rcx, 2
movsxd rax, r9d
cmp rax, rcx
jb 0x18013e870
jmp 0x18013ea50
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rbp - 0x78]
mov r15, qword [rbp - 0x80]
mov rsi, qword [rsp + 0x60]
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x20], rax
je 0x18013eb29
mov r14, rdi
sub r14, rsi
sar r14, 2
mov qword [rsp + 0x40], r14
xor r9d, r9d
mov r8, r14
mov rdx, rdi
mov rcx, rsi
call fcn.180144370
xor edi, edi
test r14, r14
je 0x18013eb2b
sub rbx, r15
sar rbx, 2
mov r14, rsi
mov rcx, qword [rbp - 0x60]
mov r13d, edi
mov rdx, qword [rsp + 0x40]
mov esi, edi
test rbx, rbx
je 0x18013eb0e
mov rax, rdi
mov rdi, r15
movss xmm0, dword [rdi]
ucomiss xmm0, dword [r14]
jne 0x18013eaf9
imul r8, rax, 0xb8
add r8, qword [rbp + 0x20]
cmp rcx, qword [rbp - 0x58]
je 0x18013eae9
mov rdx, r8
call fcn.18004f6f0
mov rcx, qword [rbp - 0x60]
add rcx, 0xb8
mov qword [rbp - 0x60], rcx
jmp 0x18013eaf9
mov rdx, rcx
lea rcx, [rbp - 0x68]
call fcn.18005e320
mov rcx, qword [rbp - 0x60]
inc esi
add rdi, 4
movsxd rax, esi
cmp rax, rbx
jb 0x18013eab5
mov rdx, qword [rsp + 0x40]
xor edi, edi
inc r13d
add r14, 4
movsxd rax, r13d
cmp rax, rdx
jb 0x18013eaa8
mov r13, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x60]
jmp 0x18013eb2f
xor edi, edi
mov rcx, qword [rbp - 0x60]
mov rax, qword [rbp - 0x68]
cmp rax, rcx
je 0x18013f20a
cmp dword [rbp + 0x140], 3
jne 0x18013ec23
lea rcx, [rbp - 0x50]
call fcn.18005b010
nop
lea rcx, [rbp - 0x68]
call fcn.18005b010
nop
lea rcx, [rbp + 0x20]
call fcn.18005b010
nop
test r15, r15
je 0x18013ebb4
sub r12, r15
sar r12, 2
lea rdx, [r12*4]
mov rax, r15
cmp rdx, 0x1000
jb 0x18013eba0
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18013f26e
mov rcx, r15
call fcn.180284a64
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rdi
test rsi, rsi
je 0x18013ec03
sub r13, rsi
sar r13, 2
lea rdx, [r13*4]
mov rax, rsi
cmp rdx, 0x1000
jb 0x18013ebed
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18013f45e
mov rcx, rsi
call fcn.180284a64
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rdi
mov rcx, qword [rbp + 0x110]
call fcn.18000b810
nop
mov rcx, qword [rbp + 0x148]
call fcn.18005c100
mov al, 1
jmp 0x18013f496
mov ebx, edi
mov dword [rsp + 0x40], ebx
sub rcx, rax
sar rcx, 3
movabs rax, 0xd37a6f4de9bd37a7
imul rcx, rax
test rcx, rcx
je 0x18013f20a
mov rsi, rdi
lea r14, [0x180350f20]
movabs r12, 0x431bde82d7b634db
mov r13, qword [rbp + 0x148]
mov ecx, 0x64
call fcn.1800da930
cmp eax, 0x60
mov ecx, 0x12c
jg 0x18013ec7b
mov ecx, 0x32
call fcn.1800da930
lea ecx, [rax + 0x5a]
call qword [sym.imp.KERNEL32.dll_Sleep]
movsxd rdx, dword [0x1803451d8]
mov rax, qword [rbp - 0x68]
add rdx, qword [rax + rsi + 8]
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x20], rdi
mov r9d, 4
lea r8, [rsp + 0x50]
mov rcx, qword [0x180350c48]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x18013ecd2
mov rax, qword gs:[0x30]
cmp dword [rax + 0x1250], 0
mov ecx, edi
jne 0x18013ecd6
mov ecx, dword [rsp + 0x50]
mov rax, qword [rbp - 0x68]
cmp dword [rax + rsi + 0x84], ecx
je 0x18013f1cb
mov qword [rsp + 0x50], r14
lea rcx, [rsp + 0x50]
call fcn.1800dbdd0
mov ecx, eax
imul rax, rcx, 0xfa0
cmp eax, 0xcdf
ja 0x18013ed20
lea rcx, [rsp + 0x50]
call fcn.1800dbdd0
mov ecx, eax
imul rax, rcx, 0xfa0
cmp eax, 0xce0
jb 0x18013ed06
shr rax, 0x20
lea r15d, [rax + 1]
lea rcx, [rbp + 0x58]
call fcn.1800098f0
mov rcx, rax
mov rax, r12
imul qword [rcx]
mov r14, rdx
sar r14, 0x12
mov rax, r14
shr rax, 0x3f
add r14, rax
mov byte [0x180350ca8], 0
mov rbx, qword [rbp - 0x68]
mov ecx, 0x30
call fcn.1802846b0
mov rdi, rax
mov qword [rbp + 0x60], rax
mov rcx, qword [rbx + rsi]
mov qword [rax], rcx
mov eax, dword [rbp + 0x140]
mov dword [rdi + 8], eax
lea rcx, [rdi + 0x10]
mov qword [rbp + 0x68], rcx
mov rdx, r13
call fcn.18005b700
nop
mov qword [rsp + 0x78], rdi
mov r12d, dword [rsp + 0x30]
or r12d, 0x10
mov dword [rsp + 0x30], r12d
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov r9, rdi
lea r8, [0x180144830]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp + 0x10], rax
test rax, rax
je 0x18013f406
xor edi, edi
mov qword [rsp + 0x78], rdi
and r12d, 0xffffffef
mov dword [rsp + 0x30], r12d
mov rbx, qword [rbp - 0x68]
lea ecx, [rdi + 0x20]
call fcn.1802846b0
mov rcx, qword [rbx + rsi + 8]
mov qword [rax], rcx
mov rcx, qword [rbx + rsi]
mov qword [rax + 8], rcx
mov ecx, dword [rbx + rsi + 0x84]
mov dword [rax + 0x10], ecx
mov qword [rbp + 0x38], rax
or r12d, 8
mov dword [rsp + 0x30], r12d
lea rcx, [rbp + 8]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x180144730]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp], rax
test rax, rax
je 0x18013f3f7
mov qword [rbp + 0x38], rdi
and r12d, 0xfffffff7
mov dword [rsp + 0x30], r12d
mov rbx, qword [rbp - 0x68]
lea ecx, [rdi + 0x20]
call fcn.1802846b0
mov rcx, qword [rbx + rsi + 8]
mov qword [rax], rcx
mov ecx, dword [rbp + 0x120]
mov dword [rax + 8], ecx
mov rcx, qword [rbx + rsi]
mov qword [rax + 0x10], rcx
mov qword [rbp + 0x40], rax
or r12d, 4
mov dword [rsp + 0x30], r12d
lea rcx, [rbp - 8]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x180144770]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x10], rax
test rax, rax
je 0x18013f3e8
mov qword [rbp + 0x40], rdi
and r12d, 0xfffffffb
mov dword [rsp + 0x30], r12d
mov rbx, qword [rbp - 0x68]
lea ecx, [rdi + 0x10]
call fcn.1802846b0
mov rcx, qword [rbx + rsi + 8]
mov qword [rax], rcx
mov qword [rbp + 0x48], rax
or r12d, 2
mov dword [rsp + 0x30], r12d
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x1801447b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x20], rax
test rax, rax
je 0x18013f3d9
mov qword [rbp + 0x48], rdi
and r12d, 0xfffffffd
mov dword [rsp + 0x30], r12d
lea ecx, [rdi + 0x18]
call fcn.1802846b0
mov qword [rax], r15
mov qword [rax + 8], r14
mov qword [rbp + 0x50], rax
or r12d, 1
mov dword [rsp + 0x30], r12d
lea rcx, [rbp - 0x28]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x1801447f0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x30], rax
test rax, rax
je 0x18013f3ca
mov qword [rbp + 0x50], rdi
and r12d, 0xfffffffe
mov dword [rsp + 0x30], r12d
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [rsp + 0x38]
mov dword [0x180350db8], eax
mov eax, dword [rsp + 0x3c]
mov dword [0x180350dbc], eax
cmp dword [rbp + 0x18], edi
je 0x18013efc5
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbp + 0x18], eax
je 0x18013f281
movaps xmm0, xmmword [rbp + 0x10]
movdqa xmmword [rsp + 0x50], xmm0
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
jne 0x18013f275
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x10], xmm0
jmp 0x18013efe8
lea rdx, str.thread_error1
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.18000b990
lea rdx, [0x18000bb70]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
cmp dword [rbp + 8], 0
je 0x18013f026
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbp + 8], eax
je 0x18013f281
movaps xmm0, xmmword [rbp]
movdqa xmmword [rsp + 0x50], xmm0
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
jne 0x18013f275
xorps xmm0, xmm0
movdqa xmmword [rbp], xmm0
jmp 0x18013f049
lea rdx, str.thread_error2
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.18000b990
lea rdx, [0x18000bb70]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
cmp dword [rbp - 8], 0
je 0x18013f087
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbp - 8], eax
je 0x18013f281
movaps xmm0, xmmword [rbp - 0x10]
movdqa xmmword [rsp + 0x50], xmm0
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
jne 0x18013f275
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x10], xmm0
jmp 0x18013f0aa
lea rdx, str.thread_error3
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.18000b990
lea rdx, [0x18000bb70]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
cmp dword [rbp - 0x18], 0
je 0x18013f0e8
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbp - 0x18], eax
je 0x18013f281
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rsp + 0x50], xmm0
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
jne 0x18013f275
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x20], xmm0
jmp 0x18013f10b
lea rdx, str.thread_error4
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.18000b990
lea rdx, [0x18000bb70]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
cmp dword [rbp - 0x28], 0
je 0x18013f149
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbp - 0x28], eax
je 0x18013f281
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rsp + 0x50], xmm0
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
jne 0x18013f275
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x30], xmm0
jmp 0x18013f16c
lea rdx, str.thread_error5
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.18000b990
lea rdx, [0x18000bb70]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
cmp byte [0x180350cb0], 0
jne 0x18013f28d
mov byte [0x180350ca8], 0
cmp dword [rbp - 0x28], 0
jne 0x18013f3c3
cmp dword [rbp - 0x18], 0
jne 0x18013f3bc
cmp dword [rbp - 8], 0
jne 0x18013f3b5
cmp dword [rbp + 8], 0
jne 0x18013f3ae
cmp dword [rbp + 0x18], 0
jne 0x18013f3a7
mov rax, qword [rbp - 0x68]
mov ebx, dword [rsp + 0x40]
lea r14, [0x180350f20]
movabs r12, 0x431bde82d7b634db
inc ebx
mov dword [rsp + 0x40], ebx
add rsi, 0xb8
mov rcx, qword [rbp - 0x60]
sub rcx, rax
sar rcx, 3
movabs rax, 0xd37a6f4de9bd37a7
imul rcx, rax
movsxd rax, ebx
cmp rax, rcx
jb 0x18013ec62
mov r13, qword [rsp + 0x70]
mov r12, qword [rbp - 0x70]
mov r15, qword [rbp - 0x80]
mov rbx, qword [rsp + 0x60]
lea rcx, [rbp - 0x50]
call fcn.18005b010
nop
lea rcx, [rbp - 0x68]
call fcn.18005b010
nop
lea rcx, [rbp + 0x20]
call fcn.18005b010
nop
test r15, r15
je 0x18013f429
sub r12, r15
sar r12, 2
lea rdx, [r12*4]
mov rax, r15
cmp rdx, 0x1000
jb 0x18013f415
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18013f415
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov ecx, 2
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
cmp dword [rbp - 0x28], 0
jne 0x18013f3c3
cmp dword [rbp - 0x18], 0
jne 0x18013f3bc
cmp dword [rbp - 8], 0
jne 0x18013f3b5
cmp dword [rbp + 8], 0
jne 0x18013f3ae
cmp dword [rbp + 0x18], 0
jne 0x18013f3a7
lea rcx, [rbp - 0x50]
call fcn.18005b010
nop
lea rcx, [rbp - 0x68]
call fcn.18005b010
nop
lea rcx, [rbp + 0x20]
call fcn.18005b010
nop
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x18013f332
mov rax, qword [rbp - 0x70]
sub rax, rcx
sar rax, 2
lea rdx, [rax*4]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18013f321
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18013f321
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180284a64
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rdi
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x18013f38b
mov rax, qword [rsp + 0x70]
sub rax, rcx
sar rax, 2
lea rdx, [rax*4]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18013f378
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18013f378
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180284a64
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rdi
mov rcx, qword [rbp + 0x110]
call fcn.18000b810
nop
mov rcx, r13
call fcn.18005c100
mov al, 1
jmp 0x18013f496
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov dword [rbp - 0x28], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 0x18], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 8], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp + 8], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp + 0x18], ebx
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov rcx, r15
call fcn.180284a64
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rdi
test rbx, rbx
je 0x18013f47b
sub r13, rbx
sar r13, 2
lea rdx, [r13*4]
mov rax, rbx
cmp rdx, 0x1000
jb 0x18013f465
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18013f465
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.180284a64
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rdi
mov rcx, qword [rbp + 0x110]
call fcn.18000b810
nop
mov rcx, qword [rbp + 0x148]
call fcn.18005c100
xor al, al
lea r11, [rsp + 0x1c8]
movaps xmm6, xmmword [r11 - 0x18]
movaps xmm7, xmmword [r11 - 0x28]
movaps xmm8, xmmword [r11 - 0x38]
movaps xmm9, xmmword [r11 - 0x48]
movaps xmm10, xmmword [r11 - 0x58]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret