Function at 0x140001170
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x140012008]
xor rax, rsp
mov qword [rsp + 0x50], rax
movsxd rcx, ecx
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x34], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_accept]
mov rsi, rax
test eax, eax
jns 0x1400011de
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
lea rdx, str.accept___failed___s_
mov ecx, 1
mov r8, rax
call fcn.140005ad0
mov eax, esi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140009690
add rsp, 0x60
pop rsi
ret
mov qword [rsp + 0x78], rbx
lea r8, [rsp + 0x38]
movsxd rbx, esi
mov edx, 0x8004667e
mov rcx, rbx
mov qword [rsp + 0x80], rdi
mov dword [rsp + 0x38], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], 0x20000
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x140001246
lea rdx, str.Could_not_set_send_buffer_for_client_socket
lea ecx, [rax + 3]
call fcn.140005ad0
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1002
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x14000127b
lea rdx, str.Could_not_set_receive_buffer_for_client_socket
lea ecx, [rax + 3]
call fcn.140005ad0
mov edx, 6
mov dword [rsp + 0x3c], 1
lea r9, [rsp + 0x3c]
mov dword [rsp + 0x20], 4
mov rcx, rbx
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, 0x48
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xor ebx, ebx
mov ecx, 0x10000
mov rdi, rax
mov dword [rax + 4], ebx
mov qword [rax + 0x2a], rbx
mov word [rax + 0x32], bx
mov dword [rax + 0x38], ebx
mov dword [rax], esi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, 0x10000
mov dword [rdi + 0x10], ebx
mov qword [rdi + 8], rax
mov dword [rdi + 0x14], 0x10000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
lea rcx, [0x140012908]
mov dword [rdi + 0x20], ebx
mov qword [rdi + 0x18], rax
mov eax, 0x300
mov word [rdi + 0x28], ax
mov dword [rdi + 0x24], 0x10000
mov dword [rdi + 0x34], ebx
mov qword [rdi + 0x40], rbx
call qword [sym.imp.pthreadVC3.dll_pthread_mutex_lock]
mov eax, dword [0x14001282c]
mov ecx, dword [0x140012838]
mov r8, qword [0x140012830]
mov dword [rdi + 0x3c], eax
inc eax
mov dword [0x14001282c], eax
test ecx, ecx
jle 0x14000134a
mov rax, r8
cmp qword [rax], 0
je 0x1400013dd
inc ebx
add rax, 8
cmp ebx, ecx
jl 0x140001336
lea eax, [rcx + 8]
mov rcx, r8
movsxd rdx, eax
shl rdx, 3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
movsxd rdx, dword [0x140012838]
xorps xmm0, xmm0
mov qword [0x140012830], rax
movups xmmword [rax + rdx*8], xmm0
movups xmmword [rax + rdx*8 + 0x10], xmm0
movups xmmword [rax + rdx*8 + 0x20], xmm0
movups xmmword [rax + rdx*8 + 0x30], xmm0
movsxd r8, dword [0x140012838]
mov rdx, qword [0x140012830]
mov qword [rdx + r8*8], rdi
add dword [0x140012838], 8
lea rcx, [0x140012908]
call qword [sym.imp.pthreadVC3.dll_pthread_mutex_unlock]
mov r8d, dword [rdi]
lea rdx, str.Client__d_accepted
mov ecx, 4
call fcn.140005ad0
mov eax, dword [rdi]
mov rdi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140009690
add rsp, 0x60
pop rsi
ret
movsxd rax, ebx
mov qword [r8 + rax*8], rdi
jmp 0x14000139a