Function at 0x1400798a0
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 - 0x40]
sub rsp, 0x140
mov r15, rcx
call fcn.1400609f0
mov rcx, r15
call fcn.140060f60
lea rcx, [r15 + 0x58]
call fcn.14007fe50
mov ecx, 0x338
call fcn.1400873f0
mov r13, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x1400796b0
xor edx, edx
mov r8d, 0x338
mov rcx, rax
call fcn.1400887f2
movzx esi, byte [r15]
movzx r14d, word [r15 + 4]
lea rax, [rbp]
mov qword [rsp + 0x68], rax
lea rdx, [r15 + 0x10]
lea rcx, [rbp]
call fcn.1400051a0
mov rdi, rax
movzx ebx, word [r15 + 2]
lea rdx, [r15 + 0x30]
lea rcx, [rbp + 0x20]
call fcn.1400051a0
lea rcx, [r15 + 0xe18]
xor r12d, r12d
mov qword [rsp + 0x40], r12
mov byte [rsp + 0x38], sil
mov word [rsp + 0x30], r14w
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rdi
movzx r9d, bx
mov r8, rax
mov rdx, r15
mov rcx, r13
call fcn.140043fd0
jmp 0x1400796b6
xor r12d, r12d
mov eax, r12d
mov rbx, qword [r15 + 0xec8]
mov qword [r15 + 0xec8], rax
test rbx, rbx
je 0x1400796de
mov rcx, rbx
call fcn.1400475e0
mov edx, 0x338
mov rcx, rbx
call fcn.14008742c
mov rbx, qword [r15 + 0xec8]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x50], rax
mov qword [rbp - 0x50], r12
mov rcx, qword [r15 + 0xe10]
test rcx, rcx
je 0x14007970d
mov rax, qword [rcx]
lea rdx, [rsp + 0x78]
call qword [rax]
mov qword [rbp - 0x50], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x50], rax
mov rax, qword [r15 + 0xdd0]
mov qword [rbx + 0x2e0], rax
mov qword [rbp - 8], r12
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x14007973f
mov rax, qword [rcx]
lea rdx, [rbp - 0x40]
call qword [rax]
mov qword [rbp - 8], rax
lea rdx, [rbx + 0x2e8]
lea rcx, [rbp - 0x40]
call fcn.14007ce00
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x140079769
mov rax, qword [rcx]
lea rdx, [rbp - 0x40]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
nop
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x140079783
mov rax, qword [rcx]
lea rdx, [rsp + 0x78]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov rbx, qword [r15 + 0xed0]
mov rdi, qword [r15 + 0xed8]
cmp rbx, rdi
je 0x1400797f6
lea rsi, [0x1401627b0]
nop dword [rax]
mov rcx, qword [r15 + 0xec8]
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], rsi
lea r8, [rcx + 0x1a8]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xffffffff
mov r9d, dword [rbx]
lea rdx, [rsp + 0x68]
mov rcx, qword [rcx + 0x1a0]
call fcn.140060810
cmp dword [rsp + 0x50], 0
jne 0x14007987f
add rbx, 4
cmp rbx, rdi
jne 0x1400797a0
lea rcx, [r15 + 0xf38]
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x140079874
mov eax, dword [r15 + 0xf84]
cmp eax, 0x7fffffff
je 0x140079860
mov byte [r15 + 0xee8], 1
lea rcx, [r15 + 0xef0]
call sub.MSVCP140.dll__Cnd_broadcast
lea rcx, [r15 + 0xf38]
call sub.MSVCP140.dll__Mtx_unlock
mov rcx, qword [r15 + 0xec8]
lea r11, [rsp + 0x140]
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
jmp 0x1400798a0
dec eax
mov dword [r15 + 0xf84], eax
mov ecx, 6
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
lea rdx, [0x1400981cc]
lea rcx, [rsp + 0x50]
call fcn.140069180
int3
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 - 0xd0]
sub rsp, 0x1d0
mov rax, qword [0x140162800]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov rbx, rcx
xor r8d, r8d
movzx r13d, word [rcx + 0x278]
dec r13w
movzx r12d, r13w
test r12d, r12d
je 0x140079950
mov edi, r12d
mov ecx, 0x18
call fcn.1400873f0
mov qword [rbp + 0xa0], rax
test rax, rax
je 0x140079921
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rax], xmm0
mov qword [rax + 0x10], rcx
mov rcx, rax
call fcn.140046060
nop
mov qword [rsp + 0x40], rax
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x14007993a
mov qword [rdx], rax
add qword [rbx + 8], 8
jmp 0x140079947
lea r8, [rsp + 0x40]
mov rcx, rbx
call fcn.1400393c0
sub rdi, 1
jne 0x1400798f6
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 0x1400799b0
mov r12d, r14d
shl r12, 6
add r12, rdx
mov rdi, r12
cmp r12, rsi
je 0x1400799a6
nop dword [rax]
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x14007999d
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 0x140079980
mov qword [rbx + 0x50], r12
movzx r12d, r13w
jmp 0x140079a01
jbe 0x140079a01
mov rax, qword [rbx + 0x58]
sub rax, rdx
sar rax, 6
cmp r14, rax
jbe 0x1400799d5
lea r8, [rsp + 0x30]
mov rdx, r14
lea rcx, [rbx + 0x48]
call fcn.14003c7b0
jmp 0x140079a01
mov rax, r14
sub rax, rcx
je 0x1400799ee
nop dword [rax]
mov qword [rsi + 0x38], r8
add rsi, 0x40
sub rax, 1
jne 0x1400799e0
lea r8, [rbx + 0x48]
mov rdx, rsi
mov rcx, rsi
call fcn.1400380d0
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 0x140079a1e
lea rax, [rdx + r14*8]
jmp 0x140079a5f
jbe 0x140079a63
mov rax, qword [rbx + 0x40]
sub rax, rdx
sar rax, 3
cmp r14, rax
jbe 0x140079a43
lea r8, [rsp + 0x30]
mov rdx, r14
lea rcx, [rbx + 0x30]
call fcn.14003c640
jmp 0x140079a63
sub r14, rcx
lea rdi, [r14*8]
mov r8, rdi
xor edx, edx
mov rcx, r15
call fcn.1400887f2
lea rax, [rdi + r15]
mov qword [rbx + 0x38], rax
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x88], xmm1
xor r15d, r15d
mov qword [rbp + 0x98], r15
mov dword [rbp + 0x80], r15d
movzx esi, r15w
cmp r15w, r13w
jae 0x140079bf3
nop dword [rax]
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x48], si
lea rax, [rbp + 0x80]
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0xa8], xmm0
mov qword [rbp + 0xb8], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rsp + 0x70], xmm0
movsd xmm1, qword [rsp + 0x50]
movsd qword [rbp - 0x80], xmm1
mov ecx, 0x120
call fcn.1400873f0
mov rdi, rax
mov qword [rbp + 0xa0], rax
test rax, rax
je 0x140079b09
xor edx, edx
mov r8d, 0x120
mov rcx, rax
call fcn.1400887f2
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.1400365b0
mov rdi, rax
jmp 0x140079b0c
mov rdi, r15
mov qword [rbp + 0xa8], rdi
mov byte [rbp + 0xb0], 0
mov byte [rbp + 0xb8], 0
test rdi, rdi
je 0x14007a13d
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 0x140079b6b
mov rcx, qword [rdi + 0xc8]
test rcx, rcx
je 0x140079b5d
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax]
jmp 0x140079b6b
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
nop
mov rdx, qword [rbp + 0x90]
cmp rdx, qword [rbp + 0x98]
je 0x140079b94
mov rcx, r15
mov qword [rsp + 0x60], rcx
mov qword [rdx], rdi
mov byte [rdx + 8], 1
add qword [rbp + 0x90], 0x10
jmp 0x140079baa
lea r8, [rsp + 0x60]
lea rcx, [rbp + 0x88]
call fcn.1400397b0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140079be6
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140079be6
mov rcx, qword [rsp + 0x60]
mov r8, qword [rcx + 0xc8]
test r8, r8
je 0x140079bdc
mov rax, qword [r8]
mov rdx, rcx
mov rcx, r8
call qword [rax]
jmp 0x140079be6
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
inc si
cmp si, r13w
jb 0x140079a90
lea r13, [0x1401627b0]
cmp qword [rbx + 0x320], 0
je 0x140079cfe
mov rax, qword [rbx + 0x2e0]
test rax, rax
jle 0x140079cfe
imul rax, rax, 0xf4240
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x40]
lea rcx, [rbx + 0x1f8]
call fcn.140069e50
mov qword [rsp + 0x40], rbx
mov r14, qword [rbx + 0x1f8]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x70], rax
mov ecx, dword [0x14016685c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140079c62
mov rdx, qword [rax + 8]
jmp 0x140079c65
mov rdx, rax
mov r9d, 8
mov r8d, 0x90
movzx ecx, byte [rsp + 0x30]
call fcn.14003d520
mov rdi, rax
mov qword [rsp + 0x78], rax
xor ecx, ecx
mov qword [rax + 0x20], rcx
lea rax, [0x140067be0]
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.140045070
mov qword [rbp - 0x80], 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.140042450
nop
xor r15d, r15d
lea rdx, [rsp + 0x70]
lea rcx, [rbx + 0x60]
call fcn.140072f10
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 [0x140162750], 1
jg 0x140079ecd
mov edx, 1
lea rcx, [rbp - 0x70]
call fcn.140044a10
mov eax, 1
mov dword [rbp + 0x78], eax
lea rdx, [rbx + 0x280]
mov ecx, dword [0x140162750]
cmp ecx, eax
jg 0x140079d7f
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x140079d6d
mov rdx, qword [rdx]
lea rcx, [rbp - 0x70]
call fcn.14003a6e0
mov eax, dword [rbp + 0x78]
mov ecx, dword [0x140162750]
cmp eax, ecx
jl 0x140079db9
lea rdx, str._server_is_running_at
lea rcx, [rbp - 0x70]
call fcn.140037330
mov eax, dword [rbp + 0x78]
mov ecx, dword [0x140162750]
cmp eax, ecx
jl 0x140079db9
lea rdx, str.http:__
lea rcx, [rbp - 0x70]
call fcn.140037330
mov eax, dword [rbp + 0x78]
mov ecx, dword [0x140162750]
lea rdx, [rbx + 0x2a8]
cmp eax, ecx
jl 0x140079df8
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x140079dd2
mov rdx, qword [rdx]
lea rcx, [rbp - 0x70]
call fcn.14003a6e0
mov eax, dword [rbp + 0x78]
mov ecx, dword [0x140162750]
cmp eax, ecx
jl 0x140079df8
lea rdx, [0x1400980c0]
lea rcx, [rbp - 0x70]
call fcn.140037330
lea rdx, [rsp + 0x70]
lea rcx, [rbx + 0x60]
call fcn.140072f10
movzx ecx, word [rax + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
mov eax, dword [rbp + 0x78]
mov ecx, dword [0x140162750]
cmp eax, ecx
jl 0x140079e83
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 [0x140162750]
cmp eax, ecx
jl 0x140079e83
lea rdx, str._using
lea rcx, [rbp - 0x70]
call fcn.140037330
mov eax, dword [rbp + 0x78]
mov ecx, dword [0x140162750]
cmp eax, ecx
jl 0x140079e83
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 [0x140162750]
cmp eax, ecx
jl 0x140079e83
lea rdx, str._threads
lea rcx, [rbp - 0x70]
call fcn.140037330
nop
lea rcx, [rbp - 0x70]
call fcn.140049580
cmp dword [0x140162750], 1
jg 0x140079ecd
mov edx, 1
lea rcx, [rbp - 0x70]
call fcn.140044a10
mov dword [rbp + 0x78], 1
cmp dword [0x140162750], 1
jg 0x140079ec4
lea rdx, str.Call__app.loglevel_crow::LogLevel::Warning___to_hide_Info_level_logs.
lea rcx, [rbp - 0x70]
call fcn.140037330
nop
lea rcx, [rbp - 0x70]
call fcn.140049580
mov rsi, qword [rbx + 0x1a0]
mov ecx, dword [0x14016685c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140079eeb
mov rdx, qword [rax + 8]
jmp 0x140079eee
mov rdx, r15
mov r9d, 8
mov r8d, 0x98
movzx ecx, byte [rsp + 0x30]
call fcn.14003d520
mov rdi, rax
mov qword [rax + 0x20], r15
lea rax, [0x140067a30]
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.140045070
mov qword [rbp - 0x80], rdi
mov rax, qword [rsi + 0x28]
lock inc dword [rax + 0x30]
lea rcx, [0x1401625f8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rbx + 0x1b8]
test rcx, rcx
je 0x140079f92
nop dword [rax + rax]
mov rax, qword [rcx + 0x10]
test rax, rax
jne 0x140079fac
mov rcx, qword [rcx + 0x28]
test rcx, rcx
jne 0x140079f80
mov rax, qword [rbp - 0x80]
mov qword [rax + 0x20], r15
mov rcx, qword [rbx + 0x1b0]
test rcx, rcx
je 0x140079fc7
mov qword [rcx + 0x20], rax
jmp 0x140079fce
dec rax
mov qword [rcx + 0x10], rax
mov eax, dword [rcx]
mov rdx, qword [rbp - 0x80]
mov dword [rdx + 0x50], eax
mov rcx, qword [rsi + 0x28]
call fcn.140075b60
jmp 0x140079fd5
mov qword [rbx + 0x1a8], rax
mov qword [rbx + 0x1b0], rax
lea rcx, [0x1401625f8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov eax, dword [rbp + 0x80]
nop
cmp r12d, eax
je 0x14007a001
nop
call sub.MSVCP140.dll__Thrd_yield
mov eax, dword [rbp + 0x80]
nop
cmp r12d, eax
jne 0x140079ff0
mov rcx, rbx
call fcn.1400675c0
mov ecx, 8
call fcn.1400873f0
test rax, rax
je 0x14007a01d
mov qword [rax], rbx
jmp 0x14007a020
mov rax, r15
mov qword [rbp + 0xa0], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r15d
mov r9, rax
lea r8, [0x14003aef0]
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 0x14007a12d
cmp dword [rsp + 0x48], 0
je 0x14007a148
call sub.MSVCP140.dll__Thrd_id
cmp dword [rsp + 0x48], eax
je 0x14007a153
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 0x14007a122
mov rcx, qword [rbp + 0x88]
test rcx, rcx
je 0x14007a0f2
lea r8, [rbp + 0x88]
mov rdx, qword [rbp + 0x90]
call fcn.140038130
mov rdx, qword [rbp + 0x98]
mov rcx, qword [rbp + 0x88]
sub rdx, rcx
and rdx, 0xfffffffffffffff0
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007a0ed
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14007a0ed
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008742c
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.1400873d0
lea r11, [rsp + 0x1d0]
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.14005fe10
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