Function at 0x1400c6710
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 [0x140140880]
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 0x1400c68d8
nop word [rax + rax]
mov ecx, 0x18
call fcn.14010a6fc
mov rdi, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x1400c689a
mov rcx, rax
call fcn.140094ce0
nop
lea rcx, [rdi + 8]
mov dl, 1
call fcn.140094210
nop
mov ecx, 0xb0
call fcn.14010a6fc
mov qword [rbp - 0x30], rax
test rax, rax
je 0x1400c67d8
xor r9d, r9d
lea r8d, [r9 - 1]
mov rdx, rdi
mov rcx, rax
call fcn.140095fa0
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.14008dfa0
mov rax, qword [r13 + 0x18]
cmp qword [r12 + 0x28], rax
jne 0x1400c70d4
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 0x1400c686c
mov r14, qword [rbp - 0x50]
mov r15, qword [rbp - 0x58]
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x1400c683b
test r14, r14
je 0x1400c683b
cmp rax, r14
je 0x1400c70be
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400c685e
test r15, r15
je 0x1400c685e
lea rdx, [r15 + 8]
add rcx, 8
call sub.VCRUNTIME140.dll___std_type_info_compare
test eax, eax
je 0x1400c70be
mov rbx, qword [rbx + 0x20]
test rbx, rbx
jne 0x1400c6824
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 0x1400c689d
mov rdi, r13
mov qword [rsp + 0x50], rdi
mov rdx, qword [rsi + 8]
cmp rdx, qword [rsi + 0x10]
je 0x1400c68b6
mov qword [rdx], rdi
add qword [rsi + 8], 8
jmp 0x1400c68c3
lea r8, [rsp + 0x50]
mov rcx, rsi
call fcn.1400845f0
inc ebx
mov dword [rsp + 0x38], ebx
cmp ebx, r14d
jl 0x1400c6780
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 0x1400c692a
shl rdi, 6
add rdi, rdx
mov rbx, rdi
cmp rdi, r14
je 0x1400c6924
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x1400c691b
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 0x1400c6902
mov qword [rsi + 0x50], rdi
jmp 0x1400c6972
jbe 0x1400c6972
mov rax, qword [rsi + 0x58]
sub rax, rdx
sar rax, 6
cmp rdi, rax
jbe 0x1400c694f
lea r8, [rsp + 0x30]
mov rdx, rdi
lea rcx, [rsi + 0x48]
call fcn.140087d70
jmp 0x1400c6972
sub rdi, rcx
je 0x1400c696e
nop dword [rax]
nop dword [rax + rax]
mov qword [r14 + 0x38], r13
add r14, 0x40
sub rdi, 1
jne 0x1400c6960
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 0x1400c6993
lea rax, [rdx + rbx*8]
jmp 0x1400c69d4
jbe 0x1400c69d8
mov rax, qword [rsi + 0x40]
sub rax, rdx
sar rax, 3
cmp rbx, rax
jbe 0x1400c69b8
lea r8, [rsp + 0x30]
mov rdx, rbx
lea rcx, [rsi + 0x30]
call fcn.140087c10
jmp 0x1400c69d8
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 0x1400c6b1d
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.14010a6fc
mov qword [rbp - 0x30], rax
test rax, rax
je 0x1400c6a47
lea rdx, [rbp + 8]
mov rcx, rax
call fcn.1400803b0
mov rbx, rax
jmp 0x1400c6a4a
mov rbx, r13
mov qword [rbp - 0x70], rbx
mov byte [rbp - 0x68], 0
mov byte [rbp - 0x60], 0
test rbx, rbx
je 0x1400c70ea
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 0x1400c6a9e
mov rcx, qword [rbx + 0xc8]
test rcx, rcx
je 0x1400c6a90
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax]
jmp 0x1400c6a9e
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 0x1400c6ac3
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 0x1400c6ad5
lea r8, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.140084b90
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x1400c6b10
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400c6b10
mov rcx, qword [rbp - 0x80]
mov r8, qword [rcx + 0xc8]
test r8, r8
je 0x1400c6b06
mov rax, qword [r8]
mov rdx, rcx
mov rcx, r8
call qword [rax]
jmp 0x1400c6b10
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
inc di
cmp di, r12w
jb 0x1400c6a00
lea r15, [0x1401405e8]
cmp qword [rsi + 0x320], 0
je 0x1400c6c46
mov rax, qword [rsi + 0x2e0]
test rax, rax
jle 0x1400c6c46
imul rax, rax, 0xf4240
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x78]
lea rcx, [rsi + 0x1f8]
call fcn.1400b7f20
mov qword [rsp + 0x40], rsi
mov r14, qword [rsi + 0x1f8]
lea rax, [rsp + 0x40]
mov qword [rbp - 0x10], rax
mov ecx, dword [0x140145f08]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400c6b8b
mov rdx, qword [rax + 8]
jmp 0x1400c6b8e
mov rdx, r13
mov r9d, 8
mov r8d, 0x90
movzx ecx, byte [rsp + 0x30]
call fcn.140088ae0
mov rbx, rax
mov qword [rbp - 8], rax
mov qword [rax + 0x20], r13
lea rax, [0x1400b39f0]
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, [0x1401405e8]
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.140093ca0
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.140090fc0
mov qword [rbp], r13
mov qword [rbp - 8], r13
lea rcx, [rbp - 0x10]
call fcn.1400c59d0
nop
lea r15, [0x1401405e8]
lea rcx, [rsi + 0x60]
lea rdx, [rbp + 0x230]
call fcn.1400bf160
movzx ecx, word [rax + 2]
call qword [sym.imp.WSOCK32.dll_ntohs]
movzx ecx, ax
mov word [rsi + 0x2a0], ax
mov rax, qword [rsi + 0x270]
mov word [rax + 2], cx
cmp dword [0x140140580], 1
jg 0x1400c6e40
mov edx, 1
lea rcx, [rbp + 0x20]
call fcn.140093250
mov eax, 1
mov dword [rbp + 0x108], eax
lea rdx, [rsi + 0x280]
mov ecx, dword [0x140140580]
cmp ecx, eax
jg 0x1400c6ccf
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x1400c6cba
mov rdx, qword [rdx]
lea rcx, [rbp + 0x20]
call fcn.140086350
mov eax, dword [rbp + 0x108]
mov ecx, dword [0x140140580]
cmp eax, ecx
jl 0x1400c6d0f
lea rdx, str._server_is_running_at
lea rcx, [rbp + 0x20]
call fcn.14007acd0
mov eax, dword [rbp + 0x108]
mov ecx, dword [0x140140580]
cmp eax, ecx
jl 0x1400c6d0f
lea rdx, str.http:__
lea rcx, [rbp + 0x20]
call fcn.14007acd0
mov eax, dword [rbp + 0x108]
mov ecx, dword [0x140140580]
lea rdx, [rsi + 0x2a8]
cmp eax, ecx
jl 0x1400c6d51
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x1400c6d28
mov rdx, qword [rdx]
lea rcx, [rbp + 0x20]
call fcn.140086350
mov eax, dword [rbp + 0x108]
mov ecx, dword [0x140140580]
cmp eax, ecx
jl 0x1400c6d51
lea rdx, [0x1401165e0]
lea rcx, [rbp + 0x20]
call fcn.14007acd0
lea rcx, [rsi + 0x60]
lea rdx, [rbp + 0x250]
call fcn.1400bf160
movzx ecx, word [rax + 2]
call qword [sym.imp.WSOCK32.dll_ntohs]
movzx edx, ax
mov eax, dword [rbp + 0x108]
mov ecx, dword [0x140140580]
cmp eax, ecx
jl 0x1400c6dea
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 [0x140140580]
cmp eax, ecx
jl 0x1400c6dea
lea rdx, str._using
lea rcx, [rbp + 0x20]
call fcn.14007acd0
mov eax, dword [rbp + 0x108]
mov ecx, dword [0x140140580]
cmp eax, ecx
jl 0x1400c6dea
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 [0x140140580]
cmp eax, ecx
jl 0x1400c6dea
lea rdx, str._threads
lea rcx, [rbp + 0x20]
call fcn.14007acd0
nop
lea rcx, [rbp + 0x20]
call fcn.140099420
cmp dword [0x140140580], 1
jg 0x1400c6e40
mov edx, 1
lea rcx, [rbp + 0x140]
call fcn.140093250
mov dword [rbp + 0x228], 1
cmp dword [0x140140580], 1
jg 0x1400c6e34
lea rdx, str.Call__app.loglevel_crow::LogLevel::Warning___to_hide_Info_level_logs.
lea rcx, [rbp + 0x140]
call fcn.14007acd0
nop
lea rcx, [rbp + 0x140]
call fcn.140099420
mov qword [rsp + 0x38], rsi
mov rdi, qword [rsi + 0x1a0]
lea rax, [rsp + 0x38]
mov qword [rbp - 0x48], rax
mov ecx, dword [0x140145f08]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400c6e6c
mov rdx, qword [rax + 8]
jmp 0x1400c6e6f
mov rdx, r13
mov r9d, 8
mov r8d, 0x98
movzx ecx, byte [rsp + 0x30]
call fcn.140088ae0
mov rbx, rax
mov qword [rax + 0x20], r13
lea rax, [0x1400b3860]
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.140093ca0
mov qword [rbp - 0x38], rbx
mov rax, qword [rdi + 0x28]
lock inc dword [rax + 0x30]
lea rcx, [0x140140428]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rsi + 0x1b8]
test rcx, rcx
je 0x1400c6f13
mov rax, qword [rcx + 0x10]
test rax, rax
jne 0x1400c6f2d
mov rcx, qword [rcx + 0x28]
test rcx, rcx
jne 0x1400c6f01
mov rax, qword [rbp - 0x38]
mov qword [rax + 0x20], r13
mov rdx, qword [rsi + 0x1b0]
test rdx, rdx
je 0x1400c6f48
mov qword [rdx + 0x20], rax
jmp 0x1400c6f4f
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.1400c2390
jmp 0x1400c6f56
mov qword [rsi + 0x1a8], rax
mov qword [rsi + 0x1b0], rax
lea rcx, [0x140140428]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp - 0x38], r13
mov qword [rbp - 0x40], r13
lea rcx, [rbp - 0x48]
call fcn.1400c5910
nop
mov eax, dword [rsp + 0x34]
nop
movzx ebx, r12w
cmp ebx, eax
je 0x1400c6f90
call sub.MSVCP140.dll__Thrd_yield
mov eax, dword [rsp + 0x34]
nop
cmp ebx, eax
jne 0x1400c6f82
mov rcx, rsi
call fcn.1400b3380
mov ecx, 8
call fcn.14010a6fc
test rax, rax
je 0x1400c6fac
mov qword [rax], rsi
jmp 0x1400c6faf
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, [0x1400865a0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1400c70ae
cmp dword [rsp + 0x58], 0
je 0x1400c70f5
call sub.MSVCP140.dll__Thrd_id
cmp dword [rsp + 0x58], eax
je 0x1400c7100
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 0x1400c70a3
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x1400c7073
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov rcx, rbx
call fcn.140082930
mov rdx, qword [rsp + 0x70]
sub rdx, rbx
and rdx, 0xfffffffffffffff0
mov rax, rbx
cmp rdx, 0x1000
jb 0x1400c706b
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400c706b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.14010a738
mov rcx, qword [rbp + 0x270]
xor rcx, rsp
call fcn.14010aaf0
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.140095cf0
nop
mov rcx, rax
call fcn.140091230
nop
lea rcx, [rbp + 0x128]
call fcn.140095180
nop
mov rcx, rax
call fcn.1400911d0
nop
mov ecx, 4
call fcn.1400ae7d0
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