Function at 0x1400bafa0
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 [0x14013e880]
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 0x1400bb168
nop word [rax + rax]
mov ecx, 0x18
call fcn.140103e28
mov rdi, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x1400bb12a
mov rcx, rax
call fcn.1400936a0
nop
lea rcx, [rdi + 8]
mov dl, 1
call fcn.140092bd0
nop
mov ecx, 0xb0
call fcn.140103e28
mov qword [rbp - 0x30], rax
test rax, rax
je 0x1400bb068
xor r9d, r9d
lea r8d, [r9 - 1]
mov rdx, rdi
mov rcx, rax
call fcn.140094960
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.14008c960
mov rax, qword [r13 + 0x18]
cmp qword [r12 + 0x28], rax
jne 0x1400bb964
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 0x1400bb0fc
mov r14, qword [rbp - 0x50]
mov r15, qword [rbp - 0x58]
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x1400bb0cb
test r14, r14
je 0x1400bb0cb
cmp rax, r14
je 0x1400bb94e
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400bb0ee
test r15, r15
je 0x1400bb0ee
lea rdx, [r15 + 8]
add rcx, 8
call sub.VCRUNTIME140.dll___std_type_info_compare
test eax, eax
je 0x1400bb94e
mov rbx, qword [rbx + 0x20]
test rbx, rbx
jne 0x1400bb0b4
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 0x1400bb12d
mov rdi, r13
mov qword [rsp + 0x50], rdi
mov rdx, qword [rsi + 8]
cmp rdx, qword [rsi + 0x10]
je 0x1400bb146
mov qword [rdx], rdi
add qword [rsi + 8], 8
jmp 0x1400bb153
lea r8, [rsp + 0x50]
mov rcx, rsi
call fcn.140082fb0
inc ebx
mov dword [rsp + 0x38], ebx
cmp ebx, r14d
jl 0x1400bb010
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 0x1400bb1ba
shl rdi, 6
add rdi, rdx
mov rbx, rdi
cmp rdi, r14
je 0x1400bb1b4
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x1400bb1ab
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 0x1400bb192
mov qword [rsi + 0x50], rdi
jmp 0x1400bb202
jbe 0x1400bb202
mov rax, qword [rsi + 0x58]
sub rax, rdx
sar rax, 6
cmp rdi, rax
jbe 0x1400bb1df
lea r8, [rsp + 0x30]
mov rdx, rdi
lea rcx, [rsi + 0x48]
call fcn.140086730
jmp 0x1400bb202
sub rdi, rcx
je 0x1400bb1fe
nop dword [rax]
nop dword [rax + rax]
mov qword [r14 + 0x38], r13
add r14, 0x40
sub rdi, 1
jne 0x1400bb1f0
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 0x1400bb223
lea rax, [rdx + rbx*8]
jmp 0x1400bb264
jbe 0x1400bb268
mov rax, qword [rsi + 0x40]
sub rax, rdx
sar rax, 3
cmp rbx, rax
jbe 0x1400bb248
lea r8, [rsp + 0x30]
mov rdx, rbx
lea rcx, [rsi + 0x30]
call fcn.1400865d0
jmp 0x1400bb268
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 0x1400bb3ad
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.140103e28
mov qword [rbp - 0x30], rax
test rax, rax
je 0x1400bb2d7
lea rdx, [rbp + 8]
mov rcx, rax
call fcn.14007efd0
mov rbx, rax
jmp 0x1400bb2da
mov rbx, r13
mov qword [rbp - 0x70], rbx
mov byte [rbp - 0x68], 0
mov byte [rbp - 0x60], 0
test rbx, rbx
je 0x1400bb97a
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 0x1400bb32e
mov rcx, qword [rbx + 0xc8]
test rcx, rcx
je 0x1400bb320
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax]
jmp 0x1400bb32e
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 0x1400bb353
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 0x1400bb365
lea r8, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.140083550
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x1400bb3a0
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400bb3a0
mov rcx, qword [rbp - 0x80]
mov r8, qword [rcx + 0xc8]
test r8, r8
je 0x1400bb396
mov rax, qword [r8]
mov rdx, rcx
mov rcx, r8
call qword [rax]
jmp 0x1400bb3a0
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
inc di
cmp di, r12w
jb 0x1400bb290
lea r15, [0x14013e5e8]
cmp qword [rsi + 0x320], 0
je 0x1400bb4d6
mov rax, qword [rsi + 0x2e0]
test rax, rax
jle 0x1400bb4d6
imul rax, rax, 0xf4240
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x78]
lea rcx, [rsi + 0x1f8]
call fcn.1400ac840
mov qword [rsp + 0x40], rsi
mov r14, qword [rsi + 0x1f8]
lea rax, [rsp + 0x40]
mov qword [rbp - 0x10], rax
mov ecx, dword [0x140143f10]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400bb41b
mov rdx, qword [rax + 8]
jmp 0x1400bb41e
mov rdx, r13
mov r9d, 8
mov r8d, 0x90
movzx ecx, byte [rsp + 0x30]
call fcn.1400874a0
mov rbx, rax
mov qword [rbp - 8], rax
mov qword [rax + 0x20], r13
lea rax, [0x1400a8310]
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, [0x14013e5e8]
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.140092660
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.14008f980
mov qword [rbp], r13
mov qword [rbp - 8], r13
lea rcx, [rbp - 0x10]
call fcn.1400ba260
nop
lea r15, [0x14013e5e8]
lea rcx, [rsi + 0x60]
lea rdx, [rbp + 0x230]
call fcn.1400b3b10
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 [0x14013e580], 1
jg 0x1400bb6d0
mov edx, 1
lea rcx, [rbp + 0x20]
call fcn.140091c10
mov eax, 1
mov dword [rbp + 0x108], eax
lea rdx, [rsi + 0x280]
mov ecx, dword [0x14013e580]
cmp ecx, eax
jg 0x1400bb55f
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x1400bb54a
mov rdx, qword [rdx]
lea rcx, [rbp + 0x20]
call fcn.140084d10
mov eax, dword [rbp + 0x108]
mov ecx, dword [0x14013e580]
cmp eax, ecx
jl 0x1400bb59f
lea rdx, str._server_is_running_at
lea rcx, [rbp + 0x20]
call fcn.14007acc0
mov eax, dword [rbp + 0x108]
mov ecx, dword [0x14013e580]
cmp eax, ecx
jl 0x1400bb59f
lea rdx, str.http:__
lea rcx, [rbp + 0x20]
call fcn.14007acc0
mov eax, dword [rbp + 0x108]
mov ecx, dword [0x14013e580]
lea rdx, [rsi + 0x2a8]
cmp eax, ecx
jl 0x1400bb5e1
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x1400bb5b8
mov rdx, qword [rdx]
lea rcx, [rbp + 0x20]
call fcn.140084d10
mov eax, dword [rbp + 0x108]
mov ecx, dword [0x14013e580]
cmp eax, ecx
jl 0x1400bb5e1
lea rdx, [0x14010f590]
lea rcx, [rbp + 0x20]
call fcn.14007acc0
lea rcx, [rsi + 0x60]
lea rdx, [rbp + 0x250]
call fcn.1400b3b10
movzx ecx, word [rax + 2]
call qword [sym.imp.WSOCK32.dll_ntohs]
movzx edx, ax
mov eax, dword [rbp + 0x108]
mov ecx, dword [0x14013e580]
cmp eax, ecx
jl 0x1400bb67a
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 [0x14013e580]
cmp eax, ecx
jl 0x1400bb67a
lea rdx, str._using
lea rcx, [rbp + 0x20]
call fcn.14007acc0
mov eax, dword [rbp + 0x108]
mov ecx, dword [0x14013e580]
cmp eax, ecx
jl 0x1400bb67a
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 [0x14013e580]
cmp eax, ecx
jl 0x1400bb67a
lea rdx, str._threads
lea rcx, [rbp + 0x20]
call fcn.14007acc0
nop
lea rcx, [rbp + 0x20]
call fcn.140097dc0
cmp dword [0x14013e580], 1
jg 0x1400bb6d0
mov edx, 1
lea rcx, [rbp + 0x140]
call fcn.140091c10
mov dword [rbp + 0x228], 1
cmp dword [0x14013e580], 1
jg 0x1400bb6c4
lea rdx, str.Call__app.loglevel_crow::LogLevel::Warning___to_hide_Info_level_logs.
lea rcx, [rbp + 0x140]
call fcn.14007acc0
nop
lea rcx, [rbp + 0x140]
call fcn.140097dc0
mov qword [rsp + 0x38], rsi
mov rdi, qword [rsi + 0x1a0]
lea rax, [rsp + 0x38]
mov qword [rbp - 0x48], rax
mov ecx, dword [0x140143f10]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400bb6fc
mov rdx, qword [rax + 8]
jmp 0x1400bb6ff
mov rdx, r13
mov r9d, 8
mov r8d, 0x98
movzx ecx, byte [rsp + 0x30]
call fcn.1400874a0
mov rbx, rax
mov qword [rax + 0x20], r13
lea rax, [0x1400a8180]
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.140092660
mov qword [rbp - 0x38], rbx
mov rax, qword [rdi + 0x28]
lock inc dword [rax + 0x30]
lea rcx, [0x14013e428]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rsi + 0x1b8]
test rcx, rcx
je 0x1400bb7a3
mov rax, qword [rcx + 0x10]
test rax, rax
jne 0x1400bb7bd
mov rcx, qword [rcx + 0x28]
test rcx, rcx
jne 0x1400bb791
mov rax, qword [rbp - 0x38]
mov qword [rax + 0x20], r13
mov rdx, qword [rsi + 0x1b0]
test rdx, rdx
je 0x1400bb7d8
mov qword [rdx + 0x20], rax
jmp 0x1400bb7df
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.1400b6d40
jmp 0x1400bb7e6
mov qword [rsi + 0x1a8], rax
mov qword [rsi + 0x1b0], rax
lea rcx, [0x14013e428]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp - 0x38], r13
mov qword [rbp - 0x40], r13
lea rcx, [rbp - 0x48]
call fcn.1400ba1a0
nop
mov eax, dword [rsp + 0x34]
nop
movzx ebx, r12w
cmp ebx, eax
je 0x1400bb820
call sub.MSVCP140.dll__Thrd_yield
mov eax, dword [rsp + 0x34]
nop
cmp ebx, eax
jne 0x1400bb812
mov rcx, rsi
call fcn.1400a7ca0
mov ecx, 8
call fcn.140103e28
test rax, rax
je 0x1400bb83c
mov qword [rax], rsi
jmp 0x1400bb83f
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, [0x140084f60]
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 0x1400bb93e
cmp dword [rsp + 0x58], 0
je 0x1400bb985
call sub.MSVCP140.dll__Thrd_id
cmp dword [rsp + 0x58], eax
je 0x1400bb990
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 0x1400bb933
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x1400bb903
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov rcx, rbx
call fcn.140081410
mov rdx, qword [rsp + 0x70]
sub rdx, rbx
and rdx, 0xfffffffffffffff0
mov rax, rbx
cmp rdx, 0x1000
jb 0x1400bb8fb
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400bb8fb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.140103e64
mov rcx, qword [rbp + 0x270]
xor rcx, rsp
call fcn.140104220
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.1400946b0
nop
mov rcx, rax
call fcn.14008fbf0
nop
lea rcx, [rbp + 0x128]
call fcn.140093b40
nop
mov rcx, rax
call fcn.14008fb90
nop
mov ecx, 4
call fcn.1400a3130
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