Function at 0x140018880
Capabilities:
Create thread
Initialize winsock library
Set thread local storage value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x200
mov rax, qword [0x1400d1608]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
mov r13, rdx
mov r12, rcx
lea rdx, [rsp + 0x50]
xor r15d, r15d
mov ecx, 0x202
mov rbp, r8
mov r14d, r15d
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea ecx, [r15 + 1]
mov edx, 0x298
call fcn.140074c18
mov rbx, rax
test rax, rax
je 0x140018bcb
mov qword [rsp + 0x230], rsi
mov qword [rsp + 0x238], rdi
call fcn.1400098f0
xor rax, rbp
cmp dword [0x140234144], r14d
mov qword [rbx + 0x280], rax
jne 0x14001895e
lea rdx, str.8080
test rbp, rbp
je 0x140018944
mov rcx, qword [rbp]
mov rax, rbp
test rcx, rcx
je 0x140018944
mov rsi, rcx
lea rdi, [0x1400a1168]
mov ecx, reloc.WS2_32.dll_recv
repe cmpsb byte [rsi], byte [rdi]
jne 0x140018937
mov rdx, qword [rax + 8]
mov rcx, qword [rax + 0x10]
add rax, 0x10
test rcx, rcx
jne 0x140018920
mov rcx, rdx
call fcn.14000d570
test eax, eax
je 0x140018957
mov ecx, 2
jmp 0x140018959
xor ecx, ecx
call fcn.140016220
mov dword [rsp + 0x30], 0xffffffff
mov eax, 1
lock xadd dword [0x140234154], eax
mov ecx, dword [0x140233490]
inc eax
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x34], eax
mov qword [rsp + 0x38], r15
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, r15d
test rax, rax
mov qword [rbx + 0x30], rax
setne dil
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ecx, r15d
test rax, rax
mov qword [rbx + 0x78], rax
setne cl
test edi, ecx
jne 0x140018a04
lea rax, [rbx + 0xf0]
lea r8, str.Cannot_initialize_thread_synchronization_objects
lea rdx, [0x1400a24e0]
lea rcx, [0x140233740]
mov qword [0x140234008], rbx
mov qword [0x140234010], rax
call fcn.14000e440
mov rcx, rbx
call fcn.1400733f0
jmp 0x140018bab
test r12, r12
je 0x140018a2a
lea rcx, [rbx + 0x80]
mov rdx, r12
mov r8d, 0x68
call fcn.14006ffd0
mov r14, qword [r12 + 0x58]
mov qword [rbx + 0xd8], r15
mov qword [rbx + 0xe8], r13
mov qword [rbx + 0x278], r15
mov qword [rbx + 0x290], r15
test rbp, rbp
je 0x140018b1d
nop dword [rax + rax]
mov rdi, qword [rbp]
test rdi, rdi
je 0x140018b1d
mov rcx, rdi
call fcn.1400086a0
cmp eax, 0xffffffff
je 0x140018c15
mov rsi, qword [rbp + 8]
add rbp, 0x10
test rsi, rsi
je 0x140018bf4
movsxd r12, eax
cmp qword [rbx + r12*8 + 0xf8], r15
je 0x140018ac4
lea rax, [rbx + 0xf0]
lea rdx, str.warning:__s:_duplicate_option
lea rcx, [0x140233740]
mov r8, rdi
mov qword [0x140234008], rbx
mov qword [0x140234010], rax
call fcn.14000e440
mov rcx, qword [rbx + r12*8 + 0xf8]
call fcn.1400733f0
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasb al, byte [rdi]
not rcx
mov rdi, rcx
call fcn.140073404
mov r11, rax
test rax, rax
je 0x140018b0c
mov rcx, rax
cmp byte [rsi], r15b
je 0x140018b09
sub rsi, rax
nop dword [rax]
cmp rdi, 1
jbe 0x140018b09
movzx eax, byte [rsi + rcx]
inc rcx
dec rdi
mov byte [rcx - 1], al
cmp byte [rsi + rcx], r15b
jne 0x140018af0
mov byte [rcx], r15b
mov qword [rbx + r12*8 + 0xf8], r11
test rbp, rbp
jne 0x140018a50
mov rsi, r15
mov rax, r15
lea rdi, [rbx + 0xf8]
lea rbp, [0x1400a1760]
mov rcx, qword [rax + rbp + 0x10]
cmp qword [rdi], r15
jne 0x140018b48
test rcx, rcx
je 0x140018b48
call fcn.140008640
mov qword [rdi], rax
inc rsi
add rdi, 8
lea rax, [rsi + rsi*2]
shl rax, 3
cmp qword [rax + rbp], r15
jne 0x140018b31
mov rcx, qword [rbx + 0x118]
call fcn.140074200
cmp eax, 0x400
jge 0x140018c39
lea r8, str.max_request_size_too_small
lea rax, [rbx + 0xf0]
mov qword [0x140234008], rbx
lea rdx, [0x1400a24e0]
mov qword [0x140234010], rax
lea rcx, [0x140233740]
call fcn.14000e440
mov rcx, rbx
call fcn.14000ded0
mov ecx, dword [0x140233490]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor eax, eax
mov rsi, qword [rsp + 0x230]
mov rdi, qword [rsp + 0x238]
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.14006f1f0
mov rbx, qword [rsp + 0x248]
add rsp, 0x200
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rax, [rbx + 0xf0]
mov qword [0x140234008], rbx
mov r8, rdi
mov qword [0x140234010], rax
lea rdx, str._s:_option_value_cannot_be_NULL
jmp 0x140018b97
lea rax, [rbx + 0xf0]
mov qword [0x140234008], rbx
mov r8, rdi
mov qword [0x140234010], rax
lea rdx, str.Invalid_option:__s
jmp 0x140018b97
mov rcx, qword [rbx + 0x100]
mov dword [rbx + 0x60], eax
call fcn.140074200
mov ebp, eax
cmp eax, 0x10000
jle 0x140018c5d
lea r8, str.Too_many_worker_threads
jmp 0x140018b7b
test ebp, ebp
jg 0x140018c6d
lea r8, str.Invalid_number_of_worker_threads
jmp 0x140018b7b
lea rcx, [rbx + 0x68]
call fcn.14000e0e0
xor edx, edx
mov rcx, rbx
call fcn.140010e10
test eax, eax
je 0x140018ba3
xor edx, edx
mov rcx, rbx
call fcn.140015bd0
test eax, eax
je 0x140018ba3
mov rcx, rbx
call fcn.14000fc40
test eax, eax
je 0x140018ba3
mov edx, 0x7f000001
mov rcx, rbx
call fcn.1400101e0
cmp eax, 0xffffffff
je 0x140018ba3
mov edx, 8
mov rcx, rbp
mov dword [rbx + 0x40], ebp
call fcn.140074c18
mov qword [rbx + 0x48], rax
test rax, rax
jne 0x140018ce5
lea r8, str.Not_enough_memory_for_worker_thread_ID_array
jmp 0x140018b7b
mov edx, 0x9b8
mov rcx, rbp
call fcn.140074c18
mov qword [rbx + 0x20], rax
test rax, rax
jne 0x140018d07
lea r8, str.Not_enough_memory_for_worker_thread_connection_array
jmp 0x140018b7b
mov rdx, rbp
mov ecx, 8
call fcn.140074c18
mov qword [rbx + 0x58], rax
test rax, rax
jne 0x140018d5a
lea rax, [rbx + 0xf0]
lea r8, str.Not_enough_memory_for_worker_event_array
lea rdx, [0x1400a24e0]
lea rcx, [0x140233740]
mov qword [0x140234008], rbx
mov qword [0x140234010], rax
call fcn.14000e440
mov rcx, qword [rbx + 0x48]
call fcn.1400733f0
jmp 0x140018ba3
mov rdx, rbp
mov ecx, gethostbyname
call fcn.140074c18
mov qword [rbx + 0x50], rax
test rax, rax
jne 0x140018db6
lea rax, [rbx + 0xf0]
lea r8, str.Not_enough_memory_for_worker_socket_array
lea rdx, [0x1400a24e0]
lea rcx, [0x140233740]
mov qword [0x140234008], rbx
mov qword [0x140234010], rax
call fcn.14000e440
mov rcx, qword [rbx + 0x58]
call fcn.1400733f0
mov rcx, qword [rbx + 0x48]
call fcn.1400733f0
jmp 0x140018ba3
mov edi, r15d
mov rsi, r15
test ebp, ebp
je 0x140018df0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rcx, qword [rbx + 0x58]
mov qword [rcx + rsi*8], rax
mov rax, qword [rbx + 0x58]
cmp qword [rax + rsi*8], r15
je 0x140018ec8
inc edi
inc rsi
cmp edi, dword [rbx + 0x40]
jb 0x140018dc0
mov rax, qword [rbx + 0xc8]
test rax, rax
je 0x140018e01
mov rcx, rbx
call rax
lea r8, [0x140018870]
mov r9, rbx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], r15
mov qword [rbx + 0xd8], r14
mov dword [rbx], 1
lea rdi, [rbx + 0x38]
mov dword [rsp + 0x20], r15d
call fcn.140080704
cmp rax, 0xffffffffffffffff
je 0x140018e3d
test rdi, rdi
je 0x140018e3d
mov qword [rdi], rax
mov edi, r15d
cmp dword [rbx + 0x40], r15d
jbe 0x140018eb2
mov rbp, r15
nop dword [rax]
mov ecx, reloc.WS2_32.dll_recv
call fcn.140073404
mov rsi, rax
test rax, rax
je 0x140018f2c
mov qword [rax], rbx
mov dword [rax + 8], edi
mov r12, qword [rbx + 0x48]
lea r8, [0x1400185e0]
mov r9, rax
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], r15
add r12, rbp
mov dword [rsp + 0x20], r15d
call fcn.140080704
cmp rax, 0xffffffffffffffff
je 0x140018f24
test r12, r12
je 0x140018f24
inc edi
mov qword [r12], rax
add rbp, 8
cmp edi, dword [rbx + 0x40]
jb 0x140018e50
mov ecx, dword [0x140233490]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rax, rbx
jmp 0x140018bbb
lea rax, [rbx + 0xf0]
lea rdx, str.Error_creating_worker_event__i
lea rcx, [0x140233740]
mov r8d, edi
mov qword [0x140234008], rbx
mov qword [0x140234010], rax
call fcn.14000e440
test edi, edi
je 0x140018f16
shl rsi, 3
nop dword [rax + rax]
mov rcx, qword [rbx + 0x58]
sub rsi, 8
mov rcx, qword [rsi + rcx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
dec edi
jne 0x140018f00
mov rcx, qword [rbx + 0x50]
call fcn.1400733f0
jmp 0x140018d9f
mov rcx, rsi
call fcn.1400733f0
lea rax, [rbx + 0xf0]
mov qword [0x140234008], rbx
mov qword [0x140234010], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140233740]
test edi, edi
je 0x140018f6a
lea r8d, [rdi + 1]
lea rdx, str.Cannot_start_worker_thread__i:_error__ld
mov r9d, eax
call fcn.14000e440
jmp 0x140018eb2
lea rdx, str.Cannot_create_threads:_error__ld
mov r8d, eax
call fcn.14000e440
jmp 0x140018ba3