Function at 0x1400196a0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x130
mov r15, rcx
call fcn.14001f2a0
mov rcx, r15
call fcn.14001efd0
lea rcx, [r15 + 0x58]
call fcn.140014220
mov ecx, 0x338
call fcn.14003a7d0
mov r14, rax
mov qword [rsp + 0x58], rax
xor edx, edx
mov r8d, 0x338
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
movzx esi, byte [r15]
movzx ebp, word [r15 + 4]
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x60], rax
lea rdx, [r15 + 0x10]
lea rcx, [rsp + 0xf0]
call fcn.140004020
mov rdi, rax
movzx ebx, word [r15 + 2]
lea rdx, [r15 + 0x30]
lea rcx, [rsp + 0x110]
call fcn.140004020
lea rcx, [r15 + 0xe18]
mov byte [rsp + 0x38], sil
mov word [rsp + 0x30], bp
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rdi
movzx r9d, bx
mov r8, rax
mov rdx, r15
mov rcx, r14
call fcn.14001ebb0
nop
mov rbx, qword [r15 + 0xe20]
mov qword [r15 + 0xe20], rax
test rbx, rbx
je 0x14001978c
mov rcx, rbx
call fcn.140020710
mov edx, 0x338
mov rcx, rbx
call fcn.14003a814
mov rbx, qword [r15 + 0xe20]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
xor edi, edi
mov qword [rsp + 0xa0], rdi
mov rcx, qword [r15 + 0xe10]
test rcx, rcx
je 0x1400197c5
mov rax, qword [rcx]
lea rdx, [rsp + 0x68]
call qword [rax]
mov qword [rsp + 0xa0], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
mov rax, qword [r15 + 0xdd0]
mov qword [rbx + 0x2e0], rax
mov qword [rsp + 0xe8], rdi
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x140019807
mov rax, qword [rcx]
lea rdx, [rsp + 0xb0]
call qword [rax]
mov qword [rsp + 0xe8], rax
lea rdx, [rbx + 0x2e8]
lea rcx, [rsp + 0xb0]
call fcn.140022a50
mov rcx, qword [rsp + 0xe8]
test rcx, rcx
je 0x14001983d
mov rax, qword [rcx]
lea rdx, [rsp + 0xb0]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
nop
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x14001985b
mov rax, qword [rcx]
lea rdx, [rsp + 0x68]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov rdi, qword [r15 + 0xe30]
mov rbx, qword [r15 + 0xe28]
cmp rbx, rdi
je 0x14001988e
nop
mov rcx, qword [r15 + 0xe20]
add rcx, 0x1a0
mov edx, dword [rbx]
call fcn.140021dc0
add rbx, 4
cmp rbx, rdi
jne 0x140019870
lea rcx, [r15 + 0xe90]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x1400198ab
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov eax, dword [r15 + 0xedc]
cmp eax, 0x7fffffff
jne 0x1400198ce
dec eax
mov dword [r15 + 0xedc], eax
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov byte [r15 + 0xe40], 1
lea rcx, [r15 + 0xe48]
call qword [sym.imp.MSVCP140.dll__Cnd_broadcast]
lea rcx, [r15 + 0xe90]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov rcx, qword [r15 + 0xe20]
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
jmp 0x14001dd60
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 - 0x90]
sub rsp, 0x190
mov rax, qword [0x140054040]
xor rax, rsp
mov qword [rbp + 0x88], rax
mov rbx, rcx
xor r8d, r8d
movzx r13d, word [rcx + 0x278]
dec r13w
movzx eax, r13w
test eax, eax
je 0x14001de06
mov edi, eax
mov ecx, 0x18
call fcn.14003a7d0
mov qword [rbp + 0x50], rax
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rax], xmm0
mov qword [rax + 0x10], rcx
mov rcx, rax
call fcn.14000b770
nop
mov qword [rsp + 0x30], rax
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x14001ddf0
mov qword [rdx], rax
add qword [rbx + 8], 8
jmp 0x14001ddfd
lea r8, [rsp + 0x30]
mov rcx, rbx
call fcn.14002f5c0
sub rdi, 1
jne 0x14001ddb4
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 0x14001de6a
mov r15d, r14d
shl r15, 6
add r15, rdx
cmp r15, rsi
je 0x14001de64
lea rdi, [r15 + 0x38]
mov rcx, qword [rdi]
test rcx, rcx
je 0x14001de57
mov rax, qword [rcx]
mov r8, qword [rax + 0x20]
lea rax, [rdi - 0x38]
cmp rcx, rax
setne dl
call r8
mov qword [rdi], 0
add rdi, 0x40
lea rax, [rdi - 0x38]
cmp rax, rsi
jne 0x14001de34
mov qword [rbx + 0x50], r15
jmp 0x14001dea4
jbe 0x14001dea4
mov rax, qword [rbx + 0x58]
sub rax, rdx
sar rax, 6
cmp r14, rax
jbe 0x14001de8a
mov rdx, r14
lea rcx, [rbx + 0x48]
call fcn.14002ff10
jmp 0x14001dea4
mov rax, r14
sub rax, rcx
je 0x14001dea0
mov qword [rsi + 0x38], r8
add rsi, 0x40
sub rax, 1
jne 0x14001de92
mov qword [rbx + 0x50], rsi
mov rdx, qword [rbx + 0x30]
mov r15, qword [rbx + 0x38]
mov rcx, r15
sub rcx, rdx
sar rcx, 3
cmp r14, rcx
jae 0x14001dec1
lea rax, [rdx + r14*8]
jmp 0x14001defd
jbe 0x14001df01
mov rax, qword [rbx + 0x40]
sub rax, rdx
sar rax, 3
cmp r14, rax
jbe 0x14001dee1
mov rdx, r14
lea rcx, [rbx + 0x30]
call fcn.140030130
jmp 0x14001df01
sub r14, rcx
lea rdi, [r14*8]
mov r8, rdi
xor edx, edx
mov rcx, r15
call sub.VCRUNTIME140.dll_memset
lea rax, [rdi + r15]
mov qword [rbx + 0x38], rax
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x70], xmm1
xor r12d, r12d
mov qword [rbp + 0x80], r12
mov dword [rbp + 0x40], r12d
movzx edi, r12w
cmp r12w, r13w
jae 0x14001dfc8
nop word [rax + rax]
mov qword [rsp + 0x30], rbx
mov word [rsp + 0x38], di
lea rax, [rbp + 0x40]
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x30]
lea rcx, [rbp + 0x50]
call fcn.14002a6e0
nop
mov rdx, qword [rbp + 0x78]
cmp rdx, qword [rbp + 0x80]
je 0x14001df73
mov rcx, qword [rax]
mov qword [rax], r12
mov qword [rdx], rcx
mov byte [rdx + 8], 1
add qword [rbp + 0x78], 0x10
jmp 0x14001df80
mov r8, rax
lea rcx, [rbp + 0x70]
call fcn.14002fcb0
nop
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x14001dfbb
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14001dfbb
mov r8, qword [rcx + 0xc8]
test r8, r8
je 0x14001dfb1
mov rax, qword [r8]
mov rdx, rcx
mov rcx, r8
call qword [rax]
jmp 0x14001dfbb
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
inc di
cmp di, r13w
jb 0x14001df30
lea r14, [0x1405db110]
cmp qword [rbx + 0x320], 0
je 0x14001e14f
mov rax, qword [rbx + 0x2e0]
test rax, rax
jle 0x14001e14f
imul rdi, rax, 0xf4240
mov r15, qword [rbx + 0x1f8]
lea r14, [rbx + 0x200]
lea rcx, [rsp + 0x30]
call fcn.1400056b0
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x14001e041
mov ecx, 1
mov edx, 0xff
cmovs ecx, edx
test cl, cl
jns 0x14001e041
movabs rsi, 0x8000000000000000
lea rcx, [rax + rsi]
neg rcx
cmp rcx, rdi
je 0x14001e058
jl 0x14001e058
jmp 0x14001e05c
movabs rsi, 0x7fffffffffffffff
mov rcx, rsi
sub rcx, rax
cmp rcx, rdi
je 0x14001e058
jl 0x14001e05c
lea rsi, [rax + rdi]
cmp byte [r14 + 8], 0
je 0x14001e080
lea r8, [r14 + 0x10]
lea rdx, [r15 + 0x28]
mov r9, 0xffffffffffffffff
mov rcx, qword [r15 + 0x58]
call fcn.14002adc0
mov byte [r14 + 8], 0
mov rax, r14
mov qword [rax], rsi
mov qword [rsp + 0x30], rbx
mov rsi, qword [rbx + 0x1f8]
lea rax, [rsp + 0x30]
mov qword [rbp + 0x50], rax
mov ecx, dword [0x1405df284]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001e0b2
mov rdx, qword [rax + 8]
jmp 0x14001e0b5
mov rdx, r12
mov r8d, 0x90
call fcn.140028560
mov rdi, rax
mov qword [rbp + 0x58], rax
mov qword [rax + 0x20], r12
lea rax, [0x140035ec0]
mov qword [rdi + 0x28], rax
mov qword [rdi], r12
mov qword [rdi + 8], r12
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], r12
mov dword [rdi + 0x30], r12d
mov dword [rdi + 0x38], r12d
lea rax, [0x1405db110]
mov qword [rdi + 0x40], rax
mov qword [rdi + 0x48], r12
mov rax, qword [rsp + 0x30]
mov qword [rdi + 0x50], rax
lea rcx, [rdi + 0x58]
lea r9, [rbx + 0x238]
call fcn.140036cc0
mov qword [rbp + 0x60], rdi
mov byte [r14 + 8], 1
lea r9, [r14 + 0x10]
lea rdx, [rsi + 0x28]
mov qword [rsp + 0x20], rdi
mov r8, r14
mov rcx, qword [rsi + 0x58]
call fcn.140036e30
mov qword [rbp + 0x60], r12
mov qword [rbp + 0x58], r12
lea rcx, [rbp + 0x50]
call fcn.140035e00
lea r14, [0x1405db110]
lea rcx, [rbx + 0x60]
lea rdx, [rbp + 0x50]
call fcn.140021f90
movzx ecx, word [rax + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx ecx, ax
mov word [rbx + 0x2a0], ax
mov rax, qword [rbx + 0x270]
mov word [rax + 2], cx
cmp dword [0x1405db0e8], 1
jg 0x14001e320
lea rcx, [rsp + 0x50]
call fcn.14001c7e0
mov eax, 1
mov dword [rbp + 0x38], eax
lea rdx, [rbx + 0x280]
mov ecx, dword [0x1405db0e8]
cmp ecx, eax
jg 0x14001e1cc
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x14001e1b9
mov rdx, qword [rdx]
lea rcx, [rsp + 0x50]
call fcn.14002e250
mov eax, dword [rbp + 0x38]
mov ecx, dword [0x1405db0e8]
cmp eax, ecx
jl 0x14001e208
lea rdx, str._server_is_running_at
lea rcx, [rsp + 0x50]
call fcn.140027ae0
mov eax, dword [rbp + 0x38]
mov ecx, dword [0x1405db0e8]
cmp eax, ecx
jl 0x14001e208
lea rdx, str.http:__
lea rcx, [rsp + 0x50]
call fcn.140027ae0
mov eax, dword [rbp + 0x38]
mov ecx, dword [0x1405db0e8]
lea rdx, [rbx + 0x2a8]
cmp eax, ecx
jl 0x14001e249
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x14001e221
mov rdx, qword [rdx]
lea rcx, [rsp + 0x50]
call fcn.14002e250
mov eax, dword [rbp + 0x38]
mov ecx, dword [0x1405db0e8]
cmp eax, ecx
jl 0x14001e249
lea rdx, [0x140044600]
lea rcx, [rsp + 0x50]
call fcn.140027ae0
lea rcx, [rbx + 0x60]
lea rdx, [rbp + 0x50]
call fcn.140021f90
movzx ecx, word [rax + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
mov eax, dword [rbp + 0x38]
mov ecx, dword [0x1405db0e8]
cmp eax, ecx
jl 0x14001e2d7
lea rcx, [rsp + 0x50]
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 + 0x38]
mov ecx, dword [0x1405db0e8]
cmp eax, ecx
jl 0x14001e2d7
lea rdx, str._using
lea rcx, [rsp + 0x50]
call fcn.140027ae0
mov eax, dword [rbp + 0x38]
mov ecx, dword [0x1405db0e8]
cmp eax, ecx
jl 0x14001e2d7
movzx edx, word [rbx + 0x278]
lea rcx, [rsp + 0x50]
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 + 0x38]
mov ecx, dword [0x1405db0e8]
cmp eax, ecx
jl 0x14001e2d7
lea rdx, str._threads
lea rcx, [rsp + 0x50]
call fcn.140027ae0
nop
lea rcx, [rsp + 0x50]
call fcn.140010250
cmp dword [0x1405db0e8], 1
jg 0x14001e320
lea rcx, [rsp + 0x50]
call fcn.14001c7e0
mov dword [rbp + 0x38], 1
cmp dword [0x1405db0e8], 1
jg 0x14001e316
lea rdx, str.Call__app.loglevel_crow::LogLevel::Warning___to_hide_Info_level_logs.
lea rcx, [rsp + 0x50]
call fcn.140027ae0
nop
lea rcx, [rsp + 0x50]
call fcn.140010250
mov rdi, qword [rbx + 0x1a0]
mov ecx, dword [0x1405df284]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001e33e
mov rdx, qword [rax + 8]
jmp 0x14001e341
mov rdx, r12
mov r8d, 0x98
call fcn.140028560
mov qword [rsp + 0x38], rax
mov qword [rax + 0x20], r12
lea rcx, [0x140036830]
mov qword [rax + 0x28], rcx
mov qword [rax], r12
mov qword [rax + 8], r12
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], r12
mov dword [rax + 0x30], r12d
mov dword [rax + 0x38], r12d
mov qword [rax + 0x40], r14
mov qword [rax + 0x48], r12
mov dword [rax + 0x50], r12d
mov qword [rax + 0x58], rbx
lea rcx, [rax + 0x60]
lea r9, [rbx + 0x1c0]
call fcn.140036cc0
mov rax, qword [rdi + 0x28]
lock inc dword [rax + 0x30]
lea rcx, [0x1405daf68]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rbx + 0x1b8]
test rcx, rcx
je 0x14001e3d2
nop dword [rax + rax]
mov rax, qword [rcx + 0x10]
test rax, rax
jne 0x14001e3ed
mov rcx, qword [rcx + 0x28]
test rcx, rcx
jne 0x14001e3c0
mov rax, qword [rsp + 0x38]
mov qword [rax + 0x20], r12
mov rcx, qword [rbx + 0x1b0]
test rcx, rcx
je 0x14001e409
mov qword [rcx + 0x20], rax
jmp 0x14001e410
dec rax
mov qword [rcx + 0x10], rax
mov eax, dword [rcx]
mov rdx, qword [rsp + 0x38]
mov dword [rdx + 0x50], eax
mov rcx, qword [rdi + 0x28]
call fcn.14000aff0
jmp 0x14001e417
mov qword [rbx + 0x1a8], rax
mov qword [rbx + 0x1b0], rax
lea rcx, [0x1405daf68]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov eax, dword [rbp + 0x40]
movzx edi, r13w
cmp edi, eax
je 0x14001e43d
call qword [sym.imp.MSVCP140.dll__Thrd_yield]
mov eax, dword [rbp + 0x40]
cmp edi, eax
jne 0x14001e430
mov rcx, rbx
call fcn.140020fa0
mov ecx, 8
call fcn.14003a7d0
mov qword [rax], rbx
mov qword [rbp + 0x50], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r12d
mov r9, rax
lea r8, [0x140032b90]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14001e5b5
cmp dword [rsp + 0x38], 0
jne 0x14001e49a
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rsp + 0x38], eax
jne 0x14001e4b2
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rbp + 0x50], xmm0
xor edx, edx
lea rcx, [rbp + 0x50]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
je 0x14001e4d8
mov ecx, 2
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
xorps xmm0, xmm0
movaps xmmword [rbp + 0x50], xmm0
movdqa xmmword [rsp + 0x30], xmm0
mov rbx, qword [rbp + 0x70]
test rbx, rbx
je 0x14001e585
mov rdi, qword [rbp + 0x78]
cmp rbx, rdi
je 0x14001e547
nop dword [rax + rax]
mov rcx, qword [rbx]
test rcx, rcx
je 0x14001e53a
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14001e53a
mov r8, qword [rcx + 0xc8]
test r8, r8
je 0x14001e530
mov rax, qword [r8]
mov rdx, rcx
mov rcx, r8
call qword [rax]
jmp 0x14001e53a
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
add rbx, 0x10
cmp rbx, rdi
jne 0x14001e500
mov rbx, qword [rbp + 0x70]
mov rdx, qword [rbp + 0x80]
sub rdx, rbx
and rdx, 0xfffffffffffffff0
mov rax, rbx
cmp rdx, 0x1000
jb 0x14001e57d
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001e57d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.14003a814
mov rcx, qword [rbp + 0x88]
xor rcx, rsp
call fcn.14003a7b0
lea r11, [rsp + 0x190]
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 dword [rsp + 0x38], r12d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3