Function at 0x1400bb610
Capabilities:
Create thread
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x280]
sub rsp, 0x380
mov rax, qword [0x140135880]
xor rax, rsp
mov qword [rbp + 0x270], rax
mov rsi, rcx
xor r13d, r13d
movzx r12d, word [rcx + 0x278]
sub r12w, 1
mov word [rsp + 0x30], r12w
mov ebx, r13d
mov dword [rsp + 0x38], ebx
movzx r14d, r12w
mov dword [rsp + 0x40], r14d
je 0x1400bb7d8
nop word [rax + rax]
mov ecx, 0x18
call fcn.1400ff5ac
mov rdi, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x1400bb79a
mov rcx, rax
call fcn.14008b870
nop
lea rcx, [rdi + 8]
mov dl, 1
call fcn.14008ada0
nop
mov ecx, 0xb0
call fcn.1400ff5ac
mov qword [rbp - 0x30], rax
test rax, rax
je 0x1400bb6d8
xor r9d, r9d
lea r8d, [r9 - 1]
mov rdx, rdi
mov rcx, rax
call fcn.14008cb30
mov r13, rax
mov qword [rbp - 0x28], r13
mov r12, qword [rdi]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x58], xmm0
xor edx, edx
lea rcx, [rbp - 0x58]
call fcn.140084b30
mov rax, qword [r13 + 0x18]
cmp qword [r12 + 0x28], rax
jne 0x1400bbfd4
mov qword [rbp - 0x20], r12
mov rcx, r12
call qword [sym.imp.kernel32.dll_EnterCriticalSection]
mov byte [rbp - 0x18], 1
mov rbx, qword [r12 + 0x30]
test rbx, rbx
je 0x1400bb76c
mov r14, qword [rbp - 0x50]
mov r15, qword [rbp - 0x58]
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x1400bb73b
test r14, r14
je 0x1400bb73b
cmp rax, r14
je 0x1400bbfbe
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400bb75e
test r15, r15
je 0x1400bb75e
lea rdx, [r15 + 8]
add rcx, 8
call sub.VCRUNTIME140.dll___std_type_info_compare
test eax, eax
je 0x1400bbfbe
mov rbx, qword [rbx + 0x20]
test rbx, rbx
jne 0x1400bb724
mov r14d, dword [rsp + 0x40]
movups xmm0, xmmword [rbp - 0x58]
movups xmmword [r13 + 8], xmm0
mov rax, qword [r12 + 0x30]
mov qword [r13 + 0x20], rax
mov qword [r12 + 0x30], r13
mov rcx, r12
call qword [sym.imp.kernel32.dll_LeaveCriticalSection]
nop
mov qword [rdi + 0x10], r13
mov ebx, dword [rsp + 0x38]
xor r13d, r13d
jmp 0x1400bb79d
mov rdi, r13
mov qword [rsp + 0x50], rdi
mov rdx, qword [rsi + 8]
cmp rdx, qword [rsi + 0x10]
je 0x1400bb7b6
mov qword [rdx], rdi
add qword [rsi + 8], 8
jmp 0x1400bb7c3
lea r8, [rsp + 0x50]
mov rcx, rsi
call fcn.14007b180
inc ebx
mov dword [rsp + 0x38], ebx
cmp ebx, r14d
jl 0x1400bb680
movzx r12d, word [rsp + 0x30]
movzx edi, r12w
mov r14, qword [rsi + 0x50]
mov rdx, qword [rsi + 0x48]
mov rcx, r14
sub rcx, rdx
sar rcx, 6
cmp rdi, rcx
jae 0x1400bb82a
shl rdi, 6
add rdi, rdx
mov rbx, rdi
cmp rdi, r14
je 0x1400bb824
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x1400bb81b
mov rax, qword [rcx]
cmp rcx, rbx
setne dl
call qword [rax + 0x20]
mov qword [rbx + 0x38], r13
add rbx, 0x40
cmp rbx, r14
jne 0x1400bb802
mov qword [rsi + 0x50], rdi
jmp 0x1400bb872
jbe 0x1400bb872
mov rax, qword [rsi + 0x58]
sub rax, rdx
sar rax, 6
cmp rdi, rax
jbe 0x1400bb84f
lea r8, [rsp + 0x30]
mov rdx, rdi
lea rcx, [rsi + 0x48]
call fcn.14007e900
jmp 0x1400bb872
sub rdi, rcx
je 0x1400bb86e
nop dword [rax]
nop dword [rax + rax]
mov qword [r14 + 0x38], r13
add r14, 0x40
sub rdi, 1
jne 0x1400bb860
mov qword [rsi + 0x50], r14
movzx ebx, r12w
mov r14, qword [rsi + 0x38]
mov rdx, qword [rsi + 0x30]
mov rcx, r14
sub rcx, rdx
sar rcx, 3
cmp rbx, rcx
jae 0x1400bb893
lea rax, [rdx + rbx*8]
jmp 0x1400bb8d4
jbe 0x1400bb8d8
mov rax, qword [rsi + 0x40]
sub rax, rdx
sar rax, 3
cmp rbx, rax
jbe 0x1400bb8b8
lea r8, [rsp + 0x30]
mov rdx, rbx
lea rcx, [rsi + 0x30]
call fcn.14007e7a0
jmp 0x1400bb8d8
sub rbx, rcx
lea rbx, [rbx*8]
mov r8, rbx
xor edx, edx
mov rcx, r14
call sub.VCRUNTIME140.dll_memset
lea rax, [r14 + rbx]
mov qword [rsi + 0x38], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r13
mov dword [rsp + 0x34], r13d
movzx edi, r13w
cmp r13w, r12w
jae 0x1400bba1d
nop dword [rax]
mov qword [rbp - 0x70], rsi
mov word [rbp - 0x68], di
lea rax, [rsp + 0x34]
mov qword [rbp - 0x60], rax
movups xmm0, xmmword [rbp - 0x70]
movups xmmword [rbp + 8], xmm0
movsd xmm1, qword [rbp - 0x60]
movsd qword [rbp + 0x18], xmm1
mov ecx, 0x120
call fcn.1400ff5ac
mov qword [rbp - 0x30], rax
test rax, rax
je 0x1400bb947
lea rdx, [rbp + 8]
mov rcx, rax
call fcn.140076f40
mov rbx, rax
jmp 0x1400bb94a
mov rbx, r13
mov qword [rbp - 0x70], rbx
mov byte [rbp - 0x68], 0
mov byte [rbp - 0x60], 0
test rbx, rbx
je 0x1400bbfea
mov qword [rbp - 0x80], rbx
mov byte [rbp - 0x78], 1
lock inc dword [rbx + 8]
mov eax, 0xffffffff
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400bb99e
mov rcx, qword [rbx + 0xc8]
test rcx, rcx
je 0x1400bb990
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax]
jmp 0x1400bb99e
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, qword [rsp + 0x70]
je 0x1400bb9c3
mov rcx, r13
mov qword [rbp - 0x80], rcx
mov qword [rdx], rbx
mov byte [rdx + 8], 1
add rdx, 0x10
mov qword [rsp + 0x68], rdx
jmp 0x1400bb9d5
lea r8, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.14007b720
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x1400bba10
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400bba10
mov rcx, qword [rbp - 0x80]
mov r8, qword [rcx + 0xc8]
test r8, r8
je 0x1400bba06
mov rax, qword [r8]
mov rdx, rcx
mov rcx, r8
call qword [rax]
jmp 0x1400bba10
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
inc di
cmp di, r12w
jb 0x1400bb900
lea r15, [0x1401355e8]
cmp qword [rsi + 0x320], 0
je 0x1400bbb46
mov rax, qword [rsi + 0x2e0]
test rax, rax
jle 0x1400bbb46
imul rax, rax, 0xf4240
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x78]
lea rcx, [rsi + 0x1f8]
call fcn.1400ace20
mov qword [rsp + 0x40], rsi
mov r14, qword [rsi + 0x1f8]
lea rax, [rsp + 0x40]
mov qword [rbp - 0x10], rax
mov ecx, dword [0x14013af08]
call qword [sym.imp.kernel32.dll_TlsGetValue]
test rax, rax
je 0x1400bba8b
mov rdx, qword [rax + 8]
jmp 0x1400bba8e
mov rdx, r13
mov r9d, 8
mov r8d, 0x90
movzx ecx, byte [rsp + 0x30]
call fcn.14007f670
mov rbx, rax
mov qword [rbp - 8], rax
mov qword [rax + 0x20], r13
lea rax, [0x1400a88f0]
mov qword [rbx + 0x28], rax
mov qword [rbx], r13
mov qword [rbx + 8], r13
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], r13
mov dword [rbx + 0x30], r13d
mov dword [rbx + 0x38], r13d
lea rax, [0x1401355e8]
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x48], r13
mov rax, qword [rsp + 0x40]
mov qword [rbx + 0x50], rax
lea rcx, [rbx + 0x58]
lea r9, [rsi + 0x238]
xor r8d, r8d
xor edx, edx
call fcn.14008a830
mov qword [rbp], rbx
mov byte [rsi + 0x208], 1
lea r9, [rsi + 0x210]
lea rdx, [r14 + 0x28]
mov qword [rsp + 0x20], rbx
lea r8, [rsi + 0x200]
mov rcx, qword [r14 + 0x58]
call fcn.140087b50
mov qword [rbp], r13
mov qword [rbp - 8], r13
lea rcx, [rbp - 0x10]
call fcn.1400ba8d0
nop
lea r15, [0x1401355e8]
lea rcx, [rsi + 0x60]
lea rdx, [rbp + 0x230]
call fcn.1400b4060
movzx ecx, word [rax + 2]
call qword [sym.imp.ws2_32.dll_htons_1]
movzx ecx, ax
mov word [rsi + 0x2a0], ax
mov rax, qword [rsi + 0x270]
mov word [rax + 2], cx
cmp dword [0x140135580], 1
jg 0x1400bbd40
mov edx, 1
lea rcx, [rbp + 0x20]
call fcn.140089de0
mov eax, 1
mov dword [rbp + 0x108], eax
lea rdx, [rsi + 0x280]
mov ecx, dword [0x140135580]
cmp ecx, eax
jg 0x1400bbbcf
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x1400bbbba
mov rdx, qword [rdx]
lea rcx, [rbp + 0x20]
call fcn.14007cee0
mov eax, dword [rbp + 0x108]
mov ecx, dword [0x140135580]
cmp eax, ecx
jl 0x1400bbc0f
lea rdx, [0x14010bd70]
lea rcx, [rbp + 0x20]
call fcn.140071fe0
mov eax, dword [rbp + 0x108]
mov ecx, dword [0x140135580]
cmp eax, ecx
jl 0x1400bbc0f
lea rdx, [0x14010bd88]
lea rcx, [rbp + 0x20]
call fcn.140071fe0
mov eax, dword [rbp + 0x108]
mov ecx, dword [0x140135580]
lea rdx, [rsi + 0x2a8]
cmp eax, ecx
jl 0x1400bbc51
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x1400bbc28
mov rdx, qword [rdx]
lea rcx, [rbp + 0x20]
call fcn.14007cee0
mov eax, dword [rbp + 0x108]
mov ecx, dword [0x140135580]
cmp eax, ecx
jl 0x1400bbc51
lea rdx, [0x14010b4e0]
lea rcx, [rbp + 0x20]
call fcn.140071fe0
lea rcx, [rsi + 0x60]
lea rdx, [rbp + 0x250]
call fcn.1400b4060
movzx ecx, word [rax + 2]
call qword [sym.imp.ws2_32.dll_htons_1]
movzx edx, ax
mov eax, dword [rbp + 0x108]
mov ecx, dword [0x140135580]
cmp eax, ecx
jl 0x1400bbcea
lea rcx, [rbp + 0x20]
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___unsigned_short_int____ptr64]
mov eax, dword [rbp + 0x108]
mov ecx, dword [0x140135580]
cmp eax, ecx
jl 0x1400bbcea
lea rdx, [0x14010bd90]
lea rcx, [rbp + 0x20]
call fcn.140071fe0
mov eax, dword [rbp + 0x108]
mov ecx, dword [0x140135580]
cmp eax, ecx
jl 0x1400bbcea
movzx edx, word [rsi + 0x278]
lea rcx, [rbp + 0x20]
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___unsigned_short_int____ptr64]
mov eax, dword [rbp + 0x108]
mov ecx, dword [0x140135580]
cmp eax, ecx
jl 0x1400bbcea
lea rdx, [0x14010bd98]
lea rcx, [rbp + 0x20]
call fcn.140071fe0
nop
lea rcx, [rbp + 0x20]
call fcn.14008ffb0
cmp dword [0x140135580], 1
jg 0x1400bbd40
mov edx, 1
lea rcx, [rbp + 0x140]
call fcn.140089de0
mov dword [rbp + 0x228], 1
cmp dword [0x140135580], 1
jg 0x1400bbd34
lea rdx, [0x14010bdb0]
lea rcx, [rbp + 0x140]
call fcn.140071fe0
nop
lea rcx, [rbp + 0x140]
call fcn.14008ffb0
mov qword [rsp + 0x38], rsi
mov rdi, qword [rsi + 0x1a0]
lea rax, [rsp + 0x38]
mov qword [rbp - 0x48], rax
mov ecx, dword [0x14013af08]
call qword [sym.imp.kernel32.dll_TlsGetValue]
test rax, rax
je 0x1400bbd6c
mov rdx, qword [rax + 8]
jmp 0x1400bbd6f
mov rdx, r13
mov r9d, 8
mov r8d, 0x98
movzx ecx, byte [rsp + 0x30]
call fcn.14007f670
mov rbx, rax
mov qword [rax + 0x20], r13
lea rax, [0x1400a8760]
mov qword [rbx + 0x28], rax
mov qword [rbx], r13
mov qword [rbx + 8], r13
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], r13
mov dword [rbx + 0x30], r13d
mov dword [rbx + 0x38], r13d
mov qword [rbx + 0x40], r15
mov qword [rbx + 0x48], r13
mov dword [rbx + 0x50], r13d
mov rax, qword [rsp + 0x38]
mov qword [rbx + 0x58], rax
lea rcx, [rbx + 0x60]
lea r9, [rsi + 0x1c0]
xor r8d, r8d
xor edx, edx
call fcn.14008a830
mov qword [rbp - 0x38], rbx
mov rax, qword [rdi + 0x28]
lock inc dword [rax + 0x30]
lea rcx, [0x140135428]
call qword [sym.imp.kernel32.dll_EnterCriticalSection]
mov rcx, qword [rsi + 0x1b8]
test rcx, rcx
je 0x1400bbe13
mov rax, qword [rcx + 0x10]
test rax, rax
jne 0x1400bbe2d
mov rcx, qword [rcx + 0x28]
test rcx, rcx
jne 0x1400bbe01
mov rax, qword [rbp - 0x38]
mov qword [rax + 0x20], r13
mov rdx, qword [rsi + 0x1b0]
test rdx, rdx
je 0x1400bbe48
mov qword [rdx + 0x20], rax
jmp 0x1400bbe4f
dec rax
mov qword [rcx + 0x10], rax
mov eax, dword [rcx]
mov rdx, qword [rbp - 0x38]
mov dword [rdx + 0x50], eax
mov rcx, qword [rdi + 0x28]
call fcn.1400b7290
jmp 0x1400bbe56
mov qword [rsi + 0x1a8], rax
mov qword [rsi + 0x1b0], rax
lea rcx, [0x140135428]
call qword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov qword [rbp - 0x38], r13
mov qword [rbp - 0x40], r13
lea rcx, [rbp - 0x48]
call fcn.1400ba810
nop
mov eax, dword [rsp + 0x34]
nop
movzx ebx, r12w
cmp ebx, eax
je 0x1400bbe90
call sub.msvcp140.dll__Thrd_yield
mov eax, dword [rsp + 0x34]
nop
cmp ebx, eax
jne 0x1400bbe82
mov rcx, rsi
call fcn.1400a8280
mov ecx, 8
call fcn.1400ff5ac
test rax, rax
je 0x1400bbeac
mov qword [rax], rsi
jmp 0x1400bbeaf
mov rax, r13
mov qword [rbp - 0x28], rax
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r13d
mov r9, rax
lea r8, [0x14007d130]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbase.dll__beginthreadex]
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1400bbfae
cmp dword [rsp + 0x58], 0
je 0x1400bbff5
call sub.msvcp140.dll_long_int___cdecl_Concurrency::details::platform::GetCurrentThreadId_void_
cmp dword [rsp + 0x58], eax
je 0x1400bc000
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rbp - 0x20], xmm0
xor edx, edx
lea rcx, [rbp - 0x20]
call sub.msvcp140.dll__Thrd_join
test eax, eax
jne 0x1400bbfa3
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x1400bbf73
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov rcx, rbx
call fcn.1400794c0
mov rdx, qword [rsp + 0x70]
sub rdx, rbx
and rdx, 0xfffffffffffffff0
mov rax, rbx
cmp rdx, 0x1000
jb 0x1400bbf6b
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400bbf6b
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.1400ff5e8
mov rcx, qword [rbp + 0x270]
xor rcx, rsp
call fcn.1400ff9a0
lea r11, [rsp + 0x380]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ecx, 2
call sub.msvcp140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov dword [rsp + 0x58], r13d
mov ecx, 6
call sub.msvcp140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
lea rcx, [rbp + 0x110]
call fcn.14008c880
nop
mov rcx, rax
call fcn.140087dc0
nop
lea rcx, [rbp + 0x128]
call fcn.14008bd10
nop
mov rcx, rax
call fcn.140087d60
nop
mov ecx, 4
call fcn.1400a36d0
nop
mov ecx, 1
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