Function at 0x1400bd000
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 - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x140140940]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov rbx, rcx
xor r8d, r8d
movzx r13d, word [rcx + 0x278]
dec r13w
movzx r12d, r13w
test r12d, r12d
je 0x1400bd0a1
mov edi, r12d
mov ecx, 0x18
call fcn.1401056e8
mov qword [rbp - 0x78], rax
test rax, rax
je 0x1400bd072
mov rcx, rax
call fcn.1400950d0
nop
mov qword [rsp + 0x40], rax
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x1400bd08b
mov qword [rdx], rax
add qword [rbx + 8], 8
jmp 0x1400bd098
lea r8, [rsp + 0x40]
mov rcx, rbx
call fcn.140084610
sub rdi, 1
jne 0x1400bd056
xor r8d, r8d
movzx r14d, r13w
mov rsi, qword [rbx + 0x50]
mov rdx, qword [rbx + 0x48]
mov rcx, rsi
sub rcx, rdx
sar rcx, 6
cmp r14, rcx
jae 0x1400bd100
mov r12d, r14d
shl r12, 6
add r12, rdx
mov rdi, r12
cmp r12, rsi
je 0x1400bd0f6
nop
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x1400bd0ed
mov rax, qword [rcx]
cmp rcx, rdi
setne dl
call qword [rax + 0x20]
mov qword [rdi + 0x38], 0
add rdi, 0x40
cmp rdi, rsi
jne 0x1400bd0d0
mov qword [rbx + 0x50], r12
movzx r12d, r13w
jmp 0x1400bd151
jbe 0x1400bd151
mov rax, qword [rbx + 0x58]
sub rax, rdx
sar rax, 6
cmp r14, rax
jbe 0x1400bd125
lea r8, [rsp + 0x30]
mov rdx, r14
lea rcx, [rbx + 0x48]
call fcn.140087cf0
jmp 0x1400bd151
mov rax, r14
sub rax, rcx
je 0x1400bd13e
nop dword [rax]
mov qword [rsi + 0x38], r8
add rsi, 0x40
sub rax, 1
jne 0x1400bd130
lea r8, [rbx + 0x48]
mov rdx, rsi
mov rcx, rsi
call fcn.140082a10
mov qword [rbx + 0x50], rsi
mov r15, qword [rbx + 0x38]
mov rdx, qword [rbx + 0x30]
mov rcx, r15
sub rcx, rdx
sar rcx, 3
cmp r14, rcx
jae 0x1400bd16e
lea rax, [rdx + r14*8]
jmp 0x1400bd1af
jbe 0x1400bd1b3
mov rax, qword [rbx + 0x40]
sub rax, rdx
sar rax, 3
cmp r14, rax
jbe 0x1400bd193
lea r8, [rsp + 0x30]
mov rdx, r14
lea rcx, [rbx + 0x30]
call fcn.140087b90
jmp 0x1400bd1b3
sub r14, rcx
lea rdi, [r14*8]
mov r8, rdi
xor edx, edx
mov rcx, r15
call sub.VCRUNTIME140.dll_memset
lea rax, [r15 + rdi]
mov qword [rbx + 0x38], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
xor r15d, r15d
mov qword [rbp - 0x80], r15
mov dword [rsp + 0x34], r15d
movzx esi, r15w
cmp r15w, r13w
jae 0x1400bd313
nop word [rax + rax]
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x48], si
lea rax, [rsp + 0x34]
mov qword [rsp + 0x50], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbp + 0x80], xmm0
movsd xmm1, qword [rsp + 0x50]
movsd qword [rbp + 0x90], xmm1
mov ecx, 0x120
call fcn.1401056e8
mov qword [rbp - 0x78], rax
test rax, rax
je 0x1400bd235
lea rdx, [rbp + 0x80]
mov rcx, rax
call fcn.140080650
mov rdi, rax
jmp 0x1400bd238
mov rdi, r15
mov qword [rsp + 0x40], rdi
mov byte [rsp + 0x48], 0
mov byte [rsp + 0x50], 0
test rdi, rdi
je 0x1400bd861
mov qword [rsp + 0x60], rdi
mov byte [rsp + 0x68], 1
lock inc dword [rdi + 8]
mov eax, 0xffffffff
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1400bd291
mov rcx, qword [rdi + 0xc8]
test rcx, rcx
je 0x1400bd283
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax]
jmp 0x1400bd291
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, qword [rbp - 0x80]
je 0x1400bd2b6
mov rcx, r15
mov qword [rsp + 0x60], rcx
mov qword [rdx], rdi
mov byte [rdx + 8], 1
add rdx, 0x10
mov qword [rsp + 0x78], rdx
jmp 0x1400bd2ca
lea r8, [rsp + 0x60]
lea rcx, [rsp + 0x70]
call fcn.140084bb0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400bd306
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400bd306
mov rcx, qword [rsp + 0x60]
mov r8, qword [rcx + 0xc8]
test r8, r8
je 0x1400bd2fc
mov rax, qword [r8]
mov rdx, rcx
mov rcx, r8
call qword [rax]
jmp 0x1400bd306
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
inc si
cmp si, r13w
jb 0x1400bd1e0
lea r13, [0x1401405e8]
cmp qword [rbx + 0x320], 0
je 0x1400bd425
mov rax, qword [rbx + 0x2e0]
test rax, rax
jle 0x1400bd425
imul rax, rax, 0xf4240
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x40]
lea rcx, [rbx + 0x1f8]
call fcn.1400ae980
mov qword [rsp + 0x40], rbx
mov r14, qword [rbx + 0x1f8]
lea rax, [rsp + 0x40]
mov qword [rbp + 0x80], rax
mov ecx, dword [0x140146110]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400bd384
mov rdx, qword [rax + 8]
jmp 0x1400bd387
mov rdx, rax
mov r9d, 8
mov r8d, 0x90
movzx ecx, byte [rsp + 0x30]
call fcn.140088a70
mov rdi, rax
mov qword [rbp + 0x88], rax
xor ecx, ecx
mov qword [rax + 0x20], rcx
lea rax, [0x1400aa440]
mov qword [rdi + 0x28], rax
mov qword [rdi], rcx
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], rcx
mov qword [rdi + 0x18], rcx
mov dword [rdi + 0x30], ecx
mov dword [rdi + 0x38], ecx
mov qword [rdi + 0x40], r13
mov qword [rdi + 0x48], rcx
mov rax, qword [rsp + 0x40]
mov qword [rdi + 0x50], rax
lea rcx, [rdi + 0x58]
lea r9, [rbx + 0x238]
xor r8d, r8d
xor edx, edx
call fcn.140093bb0
mov qword [rbp + 0x90], rdi
mov byte [rbx + 0x208], 1
lea r9, [rbx + 0x210]
lea rdx, [r14 + 0x28]
mov qword [rsp + 0x20], rdi
lea r8, [rbx + 0x200]
mov rcx, qword [r14 + 0x58]
call fcn.140090ea0
nop
xor r15d, r15d
lea rdx, [rbp + 0x80]
lea rcx, [rbx + 0x60]
call fcn.1400b5b20
movzx ecx, word [rax + 2]
call qword [sym.imp.WSOCK32.dll_ntohs]
movzx ecx, ax
mov word [rbx + 0x2a0], ax
mov rax, qword [rbx + 0x270]
mov word [rax + 2], cx
cmp dword [0x140140580], 1
jg 0x1400bd5f8
mov edx, 1
lea rcx, [rbp - 0x70]
call fcn.140093160
mov eax, 1
mov dword [rbp + 0x78], eax
lea rdx, [rbx + 0x280]
mov ecx, dword [0x140140580]
cmp ecx, eax
jg 0x1400bd4a8
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x1400bd496
mov rdx, qword [rdx]
lea rcx, [rbp - 0x70]
call fcn.140086320
mov eax, dword [rbp + 0x78]
mov ecx, dword [0x140140580]
cmp eax, ecx
jl 0x1400bd4e2
lea rdx, str._server_is_running_at
lea rcx, [rbp - 0x70]
call fcn.14007b3b0
mov eax, dword [rbp + 0x78]
mov ecx, dword [0x140140580]
cmp eax, ecx
jl 0x1400bd4e2
lea rdx, str.http:__
lea rcx, [rbp - 0x70]
call fcn.14007b3b0
mov eax, dword [rbp + 0x78]
mov ecx, dword [0x140140580]
lea rdx, [rbx + 0x2a8]
cmp eax, ecx
jl 0x1400bd521
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x1400bd4fb
mov rdx, qword [rdx]
lea rcx, [rbp - 0x70]
call fcn.140086320
mov eax, dword [rbp + 0x78]
mov ecx, dword [0x140140580]
cmp eax, ecx
jl 0x1400bd521
lea rdx, [0x140111668]
lea rcx, [rbp - 0x70]
call fcn.14007b3b0
lea rdx, [rbp + 0x80]
lea rcx, [rbx + 0x60]
call fcn.1400b5b20
movzx ecx, word [rax + 2]
call qword [sym.imp.WSOCK32.dll_ntohs]
movzx edx, ax
mov eax, dword [rbp + 0x78]
mov ecx, dword [0x140140580]
cmp eax, ecx
jl 0x1400bd5ae
lea rcx, [rbp - 0x70]
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 + 0x78]
mov ecx, dword [0x140140580]
cmp eax, ecx
jl 0x1400bd5ae
lea rdx, str._using
lea rcx, [rbp - 0x70]
call fcn.14007b3b0
mov eax, dword [rbp + 0x78]
mov ecx, dword [0x140140580]
cmp eax, ecx
jl 0x1400bd5ae
movzx edx, word [rbx + 0x278]
lea rcx, [rbp - 0x70]
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 + 0x78]
mov ecx, dword [0x140140580]
cmp eax, ecx
jl 0x1400bd5ae
lea rdx, str._threads
lea rcx, [rbp - 0x70]
call fcn.14007b3b0
nop
lea rcx, [rbp - 0x70]
call fcn.1400995c0
cmp dword [0x140140580], 1
jg 0x1400bd5f8
mov edx, 1
lea rcx, [rbp - 0x70]
call fcn.140093160
mov dword [rbp + 0x78], 1
cmp dword [0x140140580], 1
jg 0x1400bd5ef
lea rdx, str.Call__app.loglevel_crow::LogLevel::Warning___to_hide_Info_level_logs.
lea rcx, [rbp - 0x70]
call fcn.14007b3b0
nop
lea rcx, [rbp - 0x70]
call fcn.1400995c0
mov rsi, qword [rbx + 0x1a0]
mov ecx, dword [0x140146110]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400bd616
mov rdx, qword [rax + 8]
jmp 0x1400bd619
mov rdx, r15
mov r9d, 8
mov r8d, 0x98
movzx ecx, byte [rsp + 0x30]
call fcn.140088a70
mov rdi, rax
mov qword [rax + 0x20], r15
lea rax, [0x1400aa2a0]
mov qword [rdi + 0x28], rax
mov qword [rdi], r15
mov qword [rdi + 8], r15
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], r15
mov dword [rdi + 0x30], r15d
mov dword [rdi + 0x38], r15d
mov qword [rdi + 0x40], r13
mov qword [rdi + 0x48], r15
mov dword [rdi + 0x50], r15d
mov qword [rdi + 0x58], rbx
lea rcx, [rdi + 0x60]
lea r9, [rbx + 0x1c0]
xor r8d, r8d
xor edx, edx
call fcn.140093bb0
mov qword [rbp + 0x90], rdi
mov rax, qword [rsi + 0x28]
lock inc dword [rax + 0x30]
lea rcx, [0x140140428]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rbx + 0x1b8]
test rcx, rcx
je 0x1400bd6c2
nop dword [rax]
mov rax, qword [rcx + 0x10]
test rax, rax
jne 0x1400bd6df
mov rcx, qword [rcx + 0x28]
test rcx, rcx
jne 0x1400bd6b0
mov rax, qword [rbp + 0x90]
mov qword [rax + 0x20], r15
mov rcx, qword [rbx + 0x1b0]
test rcx, rcx
je 0x1400bd6fd
mov qword [rcx + 0x20], rax
jmp 0x1400bd704
dec rax
mov qword [rcx + 0x10], rax
mov eax, dword [rcx]
mov rdx, qword [rbp + 0x90]
mov dword [rdx + 0x50], eax
mov rcx, qword [rsi + 0x28]
call fcn.1400b8c30
jmp 0x1400bd70b
mov qword [rbx + 0x1a8], rax
mov qword [rbx + 0x1b0], rax
lea rcx, [0x140140428]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov eax, dword [rsp + 0x34]
nop
cmp r12d, eax
je 0x1400bd732
call sub.MSVCP140.dll__Thrd_yield
mov eax, dword [rsp + 0x34]
nop
cmp r12d, eax
jne 0x1400bd723
mov rcx, rbx
call fcn.1400a9dc0
mov ecx, 8
call fcn.1401056e8
test rax, rax
je 0x1400bd74e
mov qword [rax], rbx
jmp 0x1400bd751
mov rax, r15
mov qword [rbp - 0x78], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r15d
mov r9, rax
lea r8, [0x140086570]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1400bd851
cmp dword [rsp + 0x48], 0
je 0x1400bd86c
call sub.MSVCP140.dll__Thrd_id
cmp dword [rsp + 0x48], eax
je 0x1400bd877
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x60], xmm0
xor edx, edx
lea rcx, [rsp + 0x60]
call sub.MSVCP140.dll__Thrd_join
test eax, eax
jne 0x1400bd846
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x1400bd816
lea r8, [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
mov rcx, rbx
call fcn.140082a70
mov rdx, qword [rbp - 0x80]
sub rdx, rbx
and rdx, 0xfffffffffffffff0
mov rax, rbx
cmp rdx, 0x1000
jb 0x1400bd80e
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400bd80e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.140105724
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.140105ae0
lea r11, [rsp + 0x1b0]
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 + 0x48], r15d
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov ecx, 4
call fcn.1400a4960
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