Function at 0x14007ac50
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.1400606d0
mov rcx, r15
call fcn.140060c40
lea rcx, [r15 + 0x58]
call fcn.140081140
mov ecx, 0x338
call fcn.140088850
mov r13, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x14007aa60
xor edx, edx
mov r8d, 0x338
mov rcx, rax
call fcn.140089d28
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.140004ff0
mov rdi, rax
movzx ebx, word [r15 + 2]
lea rdx, [r15 + 0x30]
lea rcx, [rbp + 0x20]
call fcn.140004ff0
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.140043e20
jmp 0x14007aa66
xor r12d, r12d
mov eax, r12d
mov rbx, qword [r15 + 0xec8]
mov qword [r15 + 0xec8], rax
test rbx, rbx
je 0x14007aa8e
mov rcx, rbx
call fcn.1400474a0
mov edx, 0x338
mov rcx, rbx
call fcn.14008888c
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 0x14007aabd
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 0x14007aaef
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.14007e0e0
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x14007ab19
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 0x14007ab33
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 0x14007aba6
lea rsi, [0x1400da5a0]
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.1400604f0
cmp dword [rsp + 0x50], 0
jne 0x14007ac2f
add rbx, 4
cmp rbx, rdi
jne 0x14007ab50
lea rcx, [r15 + 0xf38]
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x14007ac24
mov eax, dword [r15 + 0xf84]
cmp eax, 0x7fffffff
je 0x14007ac10
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 0x14007ac50
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, [0x1400992bc]
lea rcx, [rsp + 0x50]
call fcn.1400696d0
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 [0x1400da5c0]
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 0x14007ad00
mov edi, r12d
mov ecx, 0x18
call fcn.140088850
mov qword [rbp + 0xa0], rax
test rax, rax
je 0x14007acd1
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rax], xmm0
mov qword [rax + 0x10], rcx
mov rcx, rax
call fcn.140045eb0
nop
mov qword [rsp + 0x40], rax
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x14007acea
mov qword [rdx], rax
add qword [rbx + 8], 8
jmp 0x14007acf7
lea r8, [rsp + 0x40]
mov rcx, rbx
call fcn.140039210
sub rdi, 1
jne 0x14007aca6
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 0x14007ad60
mov r12d, r14d
shl r12, 6
add r12, rdx
mov rdi, r12
cmp r12, rsi
je 0x14007ad56
nop dword [rax]
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x14007ad4d
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 0x14007ad30
mov qword [rbx + 0x50], r12
movzx r12d, r13w
jmp 0x14007adb1
jbe 0x14007adb1
mov rax, qword [rbx + 0x58]
sub rax, rdx
sar rax, 6
cmp r14, rax
jbe 0x14007ad85
lea r8, [rsp + 0x30]
mov rdx, r14
lea rcx, [rbx + 0x48]
call fcn.14003c600
jmp 0x14007adb1
mov rax, r14
sub rax, rcx
je 0x14007ad9e
nop dword [rax]
mov qword [rsi + 0x38], r8
add rsi, 0x40
sub rax, 1
jne 0x14007ad90
lea r8, [rbx + 0x48]
mov rdx, rsi
mov rcx, rsi
call fcn.140037f20
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 0x14007adce
lea rax, [rdx + r14*8]
jmp 0x14007ae0f
jbe 0x14007ae13
mov rax, qword [rbx + 0x40]
sub rax, rdx
sar rax, 3
cmp r14, rax
jbe 0x14007adf3
lea r8, [rsp + 0x30]
mov rdx, r14
lea rcx, [rbx + 0x30]
call fcn.14003c490
jmp 0x14007ae13
sub r14, rcx
lea rdi, [r14*8]
mov r8, rdi
xor edx, edx
mov rcx, r15
call fcn.140089d28
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 0x14007afa3
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, pe_nt_image_headers64
call fcn.140088850
mov rdi, rax
mov qword [rbp + 0xa0], rax
test rax, rax
je 0x14007aeb9
xor edx, edx
mov r8d, pe_nt_image_headers64
mov rcx, rax
call fcn.140089d28
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.140036400
mov rdi, rax
jmp 0x14007aebc
mov rdi, r15
mov qword [rbp + 0xa8], rdi
mov byte [rbp + 0xb0], 0
mov byte [rbp + 0xb8], 0
test rdi, rdi
je 0x14007b4ed
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 0x14007af1b
mov rcx, qword [rdi + 0xc8]
test rcx, rcx
je 0x14007af0d
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax]
jmp 0x14007af1b
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 0x14007af44
mov rcx, r15
mov qword [rsp + 0x60], rcx
mov qword [rdx], rdi
mov byte [rdx + 8], 1
add qword [rbp + 0x90], 0x10
jmp 0x14007af5a
lea r8, [rsp + 0x60]
lea rcx, [rbp + 0x88]
call fcn.140039600
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14007af96
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14007af96
mov rcx, qword [rsp + 0x60]
mov r8, qword [rcx + 0xc8]
test r8, r8
je 0x14007af8c
mov rax, qword [r8]
mov rdx, rcx
mov rcx, r8
call qword [rax]
jmp 0x14007af96
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
inc si
cmp si, r13w
jb 0x14007ae40
lea r13, [0x1400da5a0]
cmp qword [rbx + 0x320], 0
je 0x14007b0ae
mov rax, qword [rbx + 0x2e0]
test rax, rax
jle 0x14007b0ae
imul rax, rax, 0xf4240
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x40]
lea rcx, [rbx + 0x1f8]
call fcn.14006b3b0
mov qword [rsp + 0x40], rbx
mov r14, qword [rbx + 0x1f8]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x70], rax
mov ecx, dword [0x1400de65c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14007b012
mov rdx, qword [rax + 8]
jmp 0x14007b015
mov rdx, rax
mov r9d, 8
mov r8d, 0x90
movzx ecx, byte [rsp + 0x30]
call fcn.14003d370
mov rdi, rax
mov qword [rsp + 0x78], rax
xor ecx, ecx
mov qword [rax + 0x20], rcx
lea rax, [0x140068130]
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.140044ec0
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.1400422a0
nop
xor r15d, r15d
lea rdx, [rsp + 0x70]
lea rcx, [rbx + 0x60]
call fcn.1400742c0
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 [0x1400da540], 1
jg 0x14007b27d
mov edx, 1
lea rcx, [rbp - 0x70]
call fcn.140044860
mov eax, 1
mov dword [rbp + 0x78], eax
lea rdx, [rbx + 0x280]
mov ecx, dword [0x1400da540]
cmp ecx, eax
jg 0x14007b12f
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x14007b11d
mov rdx, qword [rdx]
lea rcx, [rbp - 0x70]
call fcn.14003a530
mov eax, dword [rbp + 0x78]
mov ecx, dword [0x1400da540]
cmp eax, ecx
jl 0x14007b169
lea rdx, str._server_is_running_at
lea rcx, [rbp - 0x70]
call fcn.140037180
mov eax, dword [rbp + 0x78]
mov ecx, dword [0x1400da540]
cmp eax, ecx
jl 0x14007b169
lea rdx, str.http:__
lea rcx, [rbp - 0x70]
call fcn.140037180
mov eax, dword [rbp + 0x78]
mov ecx, dword [0x1400da540]
lea rdx, [rbx + 0x2a8]
cmp eax, ecx
jl 0x14007b1a8
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x14007b182
mov rdx, qword [rdx]
lea rcx, [rbp - 0x70]
call fcn.14003a530
mov eax, dword [rbp + 0x78]
mov ecx, dword [0x1400da540]
cmp eax, ecx
jl 0x14007b1a8
lea rdx, [0x1400991b0]
lea rcx, [rbp - 0x70]
call fcn.140037180
lea rdx, [rsp + 0x70]
lea rcx, [rbx + 0x60]
call fcn.1400742c0
movzx ecx, word [rax + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx edx, ax
mov eax, dword [rbp + 0x78]
mov ecx, dword [0x1400da540]
cmp eax, ecx
jl 0x14007b233
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 [0x1400da540]
cmp eax, ecx
jl 0x14007b233
lea rdx, str._using
lea rcx, [rbp - 0x70]
call fcn.140037180
mov eax, dword [rbp + 0x78]
mov ecx, dword [0x1400da540]
cmp eax, ecx
jl 0x14007b233
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 [0x1400da540]
cmp eax, ecx
jl 0x14007b233
lea rdx, str._threads
lea rcx, [rbp - 0x70]
call fcn.140037180
nop
lea rcx, [rbp - 0x70]
call fcn.140049450
cmp dword [0x1400da540], 1
jg 0x14007b27d
mov edx, 1
lea rcx, [rbp - 0x70]
call fcn.140044860
mov dword [rbp + 0x78], 1
cmp dword [0x1400da540], 1
jg 0x14007b274
lea rdx, str.Call__app.loglevel_crow::LogLevel::Warning___to_hide_Info_level_logs.
lea rcx, [rbp - 0x70]
call fcn.140037180
nop
lea rcx, [rbp - 0x70]
call fcn.140049450
mov rsi, qword [rbx + 0x1a0]
mov ecx, dword [0x1400de65c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14007b29b
mov rdx, qword [rax + 8]
jmp 0x14007b29e
mov rdx, r15
mov r9d, 8
mov r8d, 0x98
movzx ecx, byte [rsp + 0x30]
call fcn.14003d370
mov rdi, rax
mov qword [rax + 0x20], r15
lea rax, [0x140067f80]
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.140044ec0
mov qword [rbp - 0x80], rdi
mov rax, qword [rsi + 0x28]
lock inc dword [rax + 0x30]
lea rcx, [0x1400da3e8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rbx + 0x1b8]
test rcx, rcx
je 0x14007b342
nop dword [rax + rax]
mov rax, qword [rcx + 0x10]
test rax, rax
jne 0x14007b35c
mov rcx, qword [rcx + 0x28]
test rcx, rcx
jne 0x14007b330
mov rax, qword [rbp - 0x80]
mov qword [rax + 0x20], r15
mov rcx, qword [rbx + 0x1b0]
test rcx, rcx
je 0x14007b377
mov qword [rcx + 0x20], rax
jmp 0x14007b37e
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.140076f10
jmp 0x14007b385
mov qword [rbx + 0x1a8], rax
mov qword [rbx + 0x1b0], rax
lea rcx, [0x1400da3e8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov eax, dword [rbp + 0x80]
nop
cmp r12d, eax
je 0x14007b3b1
nop
call sub.MSVCP140.dll__Thrd_yield
mov eax, dword [rbp + 0x80]
nop
cmp r12d, eax
jne 0x14007b3a0
mov rcx, rbx
call fcn.140067b10
mov ecx, 8
call fcn.140088850
test rax, rax
je 0x14007b3cd
mov qword [rax], rbx
jmp 0x14007b3d0
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, [0x14003ad40]
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 0x14007b4dd
cmp dword [rsp + 0x48], 0
je 0x14007b4f8
call sub.MSVCP140.dll__Thrd_id
cmp dword [rsp + 0x48], eax
je 0x14007b503
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 0x14007b4d2
mov rcx, qword [rbp + 0x88]
test rcx, rcx
je 0x14007b4a2
lea r8, [rbp + 0x88]
mov rdx, qword [rbp + 0x90]
call fcn.140037f80
mov rdx, qword [rbp + 0x98]
mov rcx, qword [rbp + 0x88]
sub rdx, rcx
and rdx, 0xfffffffffffffff0
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007b49d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14007b49d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14008888c
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.140088830
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.14005faf0
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