Function at 0x1400edd70
Capabilities:
Resolve dns
Set thread local storage value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x78
mov rbx, qword [rcx + 0x8e0]
mov rsi, rcx
lea rcx, str.worker
call fcn.1400e4640
xor ebp, ebp
mov eax, 1
mov dword [rsp + 0x40], ebp
lock xadd qword [0x14031fd58], rax
inc rax
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x44], eax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [0x14031fd50]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rax, qword [rbx + 0x7d68]
test rax, rax
je 0x1400eddeb
lea edx, [rbp + 1]
mov rcx, rbx
call rax
mov qword [rsp + 0x48], rax
jmp 0x1400eddf0
mov qword [rsp + 0x48], rbp
mov rcx, rsi
movabs rax, 0x670b453b92840671
sub rcx, qword [rbx + 0x20]
imul rcx
mov rdi, rdx
sar rdi, 0xa
mov rax, rdi
shr rax, 0x3f
add rdi, rax
test edi, edi
js 0x1400ee1f6
cmp edi, dword [rbx + 0x60]
jae 0x1400ee1f6
mov ecx, dword [rbx + 0xf0]
call fcn.140184ca0
mov qword [rsi + 0x978], rax
test rax, rax
jne 0x1400ede4f
lea rax, str.Out_of_memory:_Cannot_allocate_buffer_for_worker__i
mov r9d, 0x4d2b
jmp 0x1400ee203
mov eax, dword [rbx + 0xf0]
lea rcx, [rsi + 0x9c0]
mov dword [rsi + 0x99c], eax
lea rax, [rbx + 0x7d88]
mov qword [rsi + 0x8e8], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xa8], r12
mov qword [rsi + 0x9e8], rax
mov rax, qword [rbx + 0x7d80]
mov qword [rsp + 0xb0], r13
mov qword [rsp + 0xb8], r14
mov qword [rsi + 0x90], rax
mov qword [rsp + 0x70], r15
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop dword [rax]
lea rcx, [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [rbx + 0x80]
mov eax, dword [rbx + 0x84]
cmp ecx, eax
jne 0x1400edef7
nop word [rax + rax]
mov eax, dword [rbx + 0x28]
test eax, eax
jne 0x1400edef7
lea rcx, [rbx + 0x88]
lea rdx, [rbx + 0x30]
call fcn.1400e8c10
mov ecx, dword [rbx + 0x80]
mov eax, dword [rbx + 0x84]
cmp ecx, eax
je 0x1400eded0
mov ecx, dword [rbx + 0x80]
mov eax, dword [rbx + 0x84]
cmp ecx, eax
jle 0x1400edfb2
mov eax, dword [rbx + 0x84]
cdq
idiv dword [rbx + 0xec]
movsxd rax, edx
lea rcx, [rax + rax*8]
mov rax, qword [rbx + 0x78]
movups xmm0, xmmword [rax + rcx*8]
movups xmmword [rsi + 0x8f8], xmm0
movups xmm1, xmmword [rax + rcx*8 + 0x10]
movups xmmword [rsi + 0x908], xmm1
movups xmm0, xmmword [rax + rcx*8 + 0x20]
movups xmmword [rsi + 0x918], xmm0
movups xmm1, xmmword [rax + rcx*8 + 0x30]
movups xmmword [rsi + 0x928], xmm1
movsd xmm0, qword [rax + rcx*8 + 0x40]
movsd qword [rsi + 0x938], xmm0
mov eax, dword [rbx + 0x84]
inc eax
mov dword [rbx + 0x84], eax
mov eax, dword [rbx + 0x84]
cmp eax, dword [rbx + 0xec]
jle 0x1400edfb2
nop dword [rax]
mov eax, dword [rbx + 0x84]
sub eax, dword [rbx + 0xec]
mov dword [rbx + 0x84], eax
mov eax, dword [rbx + 0x80]
sub eax, dword [rbx + 0xec]
mov dword [rbx + 0x80], eax
mov eax, dword [rbx + 0x84]
cmp eax, dword [rbx + 0xec]
jg 0x1400edf80
lea rcx, [rbx + 0xb8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x1400edfe0
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x18]
mov qword [rbx + 0xe0], rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
lea rcx, [rbx + 0xb8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [rbx + 0x28]
test eax, eax
jne 0x1400ee163
xor ecx, ecx
mov qword [rsp + 0x60], rbp
call fcn.140187930
mov qword [rsi + 0x940], rax
lea rdi, [rsi + 0x91c]
movzx ecx, word [rsi + 0x91e]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rsi + 0x80], eax
movzx ecx, word [rsi + 0x902]
call qword [sym.imp.WS2_32.dll_ntohs]
mov byte [rsi + 0x48], 0
lea r8, [rsi + 0x48]
movzx eax, ax
mov dword [rsi + 0x84], eax
test rdi, rdi
je 0x1400ee090
movzx eax, word [rdi]
cmp ax, 2
jne 0x1400ee065
mov edx, reloc.WS2_32.dll_recv
jmp 0x1400ee070
cmp ax, 0x17
jne 0x1400ee090
mov edx, 0x1c
mov dword [rsp + 0x30], 2
mov r9d, 0x30
mov dword [rsp + 0x28], ebp
mov rcx, rdi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.WS2_32.dll_getnameinfo]
movzx eax, byte [rsi + 0x938]
mov dword [rsi + 0x88], eax
test al, al
jne 0x1400edeb0
mov rax, qword [rsi + 0x8e8]
lea r14, [0x1401b8df4]
mov rbp, qword [rax + 0x58]
nop word [rax + rax]
movzx ecx, byte [r14]
mov r15, rbp
call fcn.140185968
movzx ecx, byte [rbp]
mov edi, eax
call fcn.140185968
inc rbp
lea r14, [r14 + 1]
cmp eax, edi
jne 0x1400ee0ea
cmp byte [r15], 0
jne 0x1400ee0c0
jmp 0x1400ee0f4
mov dword [rsi + 0x988], 1
mov rax, qword [rsi + 0x8e0]
xor ebp, ebp
mov dword [rsi + 0x9a4], ebp
mov dword [rsi + 0x998], ebp
mov dword [rsi], ebp
mov qword [rsi + 0x4b0], rbp
mov qword [rsi + 0x98], rbp
mov r8, qword [rax + 0x7d78]
test r8, r8
je 0x1400ee14f
cmp dword [rax], 1
jne 0x1400ee14f
lea rdx, [rsp + 0xa0]
mov qword [rsp + 0xa0], rbp
mov rcx, rsi
call r8
mov rax, qword [rsp + 0xa0]
mov qword [rsi + 0x98], rax
mov rcx, rsi
mov qword [rsi], 1
call fcn.1400e86e0
jmp 0x1400edeb0
mov rax, qword [rbx + 0x7d70]
mov r15, qword [rsp + 0x70]
mov r14, qword [rsp + 0xb8]
mov r13, qword [rsp + 0xb0]
mov r12, qword [rsp + 0xa8]
test rax, rax
je 0x1400ee19b
mov r8, qword [rsp + 0x48]
mov edx, 1
mov rcx, rbx
call rax
mov ecx, dword [0x14031fd50]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsi + 0x9c0]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rsi + 0x978]
mov dword [rsi + 0x99c], ebp
call fcn.140180564
mov rcx, qword [rsi + 0x28]
mov qword [rsi + 0x978], rbp
cmp rcx, qword [rsi + 0x20]
je 0x1400ee21d
call fcn.140180564
mov qword [rsi + 0x28], rbp
add rsp, 0x78
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea rax, str.Internal_error:_Invalid_worker_index__i
mov r9d, 0x4d1f
mov dword [rsp + 0x28], edi
lea r8, str.worker_thread_run
mov rdx, rbx
mov qword [rsp + 0x20], rax
xor ecx, ecx
call fcn.1400e1360
add rsp, 0x78
pop rdi
pop rsi
pop rbp
pop rbx
ret