Function at 0x140013960
Capabilities:
Set socket configuration

Disassembly:
push rdi
sub rsp, 0x40
mov rax, qword [0x1401d5408]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, 0x2b88
call qword [0x1401d54f0]
mov rdi, rax
test rax, rax
jne 0x1400139a3
call qword [0x1401d5500]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140115c10
add rsp, 0x40
pop rdi
ret
xor edx, edx
mov qword [rsp + 0x50], rbx
mov r8d, 0x2b88
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
mov ecx, 0x410
call qword [0x1401d54f0]
mov rbx, rax
test rax, rax
jne 0x1400139e8
call qword [0x1401d5500]
mov rcx, rdi
mov qword [rdi + 0x88], rbx
call qword [0x1401d54f8]
xor eax, eax
jmp 0x140013d9a
xor edx, edx
mov qword [rsp + 0x58], rbp
mov r8d, 0x410
mov qword [rdi + 0x88], rbx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
xor r8d, r8d
lea edx, [r8 + 2]
lea ecx, [rdx + 0x15]
call qword [sym.imp.WS2_32.dll_socket]
xor r8d, r8d
mov qword [rdi], rax
lea edx, [r8 + 1]
lea ecx, [rdx + 0x16]
call qword [sym.imp.WS2_32.dll_socket]
mov rcx, qword [rdi]
xor ebp, ebp
mov qword [rdi + 8], rax
cmp rcx, 0xffffffffffffffff
je 0x140013a54
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], ebp
lea edx, [rbp + 0x29]
mov dword [rsp + 0x20], 4
lea r8d, [rbp + 0x1b]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi]
cmp rcx, 0xffffffffffffffff
je 0x140013d6d
lea r8, [rsp + 0x30]
mov qword [rsp + 0x60], rsi
mov edx, 0x8004667e
mov dword [rsp + 0x30], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, qword [rdi]
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov dword [rsp + 0x30], 1
mov r8d, 0x20
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi]
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov dword [rsp + 0x30], 0x40000
mov r8d, 0x1002
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi]
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov dword [rsp + 0x30], 0x40000
mov r8d, 0x1001
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi]
lea r9, [rsp + 0x30]
mov edx, 0x29
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 8]
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
mov dword [rsp + 0x30], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x30]
mov edx, 6
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x30]
mov edx, 0x29
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
movups xmm0, xmmword [0x14011f100]
mov word [rdi + 0x34], bp
mov byte [rdi + 0x3b], 1
movups xmmword [rdi + 0x24], xmm0
mov dword [rdi + 0x7c], edi
call qword [sym.imp.WINMM.dll_timeGetTime]
add dword [rdi + 0x7c], eax
mov eax, dword [rdi + 0x7c]
movups xmm0, xmmword [0x14011f100]
ror eax, 0x10
mov dword [rdi + 0x7c], eax
mov qword [rdi + 0x98], 1
mov qword [rdi + 0x6c], rbp
mov dword [rdi + 0x74], ebp
mov dword [rdi + 0x80], ebp
mov dword [rdi + 0x78], 0x578
mov qword [rdi + 0x90], 2
mov qword [rdi + 0x6d0], rbp
mov qword [rdi + 0xae8], rbp
mov qword [rdi + 0xaf0], rbp
movups xmmword [rdi + 0x2b18], xmm0
mov word [rdi + 0x2b28], bp
mov qword [rdi + 0x2b30], rbp
mov qword [rdi + 0x2b38], rbp
mov qword [rdi + 0x2b40], rbp
mov qword [rdi + 0x2b48], rbp
mov qword [rdi + 0x2b58], rbp
mov qword [rdi + 0x2b60], rbp
mov qword [rdi + 0x2b68], 0xfff
lea rax, [rdi + 0xa8]
mov qword [rdi + 0x2b70], 0x2000000
mov qword [rax], rax
mov qword [rax + 8], rax
imul rax, qword [rdi + 0x90], 0x208
mov rsi, qword [rdi + 0x88]
add rax, rsi
mov qword [rdi + 0x2b78], 0x2000000
mov qword [rdi + 0xaf8], rbp
mov qword [rdi + 0xb00], rbp
mov qword [rdi + 0xb08], rbp
mov qword [rdi + 0xb10], rbp
mov qword [rdi + 0x2b50], rbp
cmp rsi, rax
jae 0x140013d63
mov qword [rsp + 0x68], r14
lea rbx, [rsi + 0x128]
movabs r14, 0xfc0fc0fc0fc0fc1
nop dword [rax]
mov qword [rbx - 0x118], rdi
mov rcx, rsi
sub rcx, qword [rdi + 0x88]
mov rax, r14
imul rcx
mov rcx, rsi
mov word [rbx - 0x108], 0xffff
sar rdx, 5
mov rax, rdx
mov qword [rbx - 0xf0], rbp
shr rax, 0x3f
add rdx, rax
lea rax, [rbx - 0x18]
mov qword [rax], rax
mov qword [rbx - 0x10], rax
lea rax, [rbx - 8]
mov qword [rax], rax
mov qword [rbx], rax
lea rax, [rbx + 8]
mov qword [rax], rax
mov qword [rbx + 0x10], rax
lea rax, [rbx + 0x18]
mov qword [rax], rax
mov qword [rbx + 0x20], rax
lea rax, [rbx + 0x28]
mov qword [rax], rax
mov qword [rbx + 0x30], rax
lea rax, [rbx + 0x38]
mov qword [rax], rax
mov qword [rbx + 0x40], rax
mov word [rbx - 0x10e], dx
call fcn.140012e90
imul rax, qword [rdi + 0x90], 0x208
add rsi, 0x208
lea rbx, [rbx + 0x208]
add rax, qword [rdi + 0x88]
cmp rsi, rax
jb 0x140013cb0
mov r14, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rax, rdi
jmp 0x140013d95
mov rcx, qword [rdi + 8]
cmp rcx, 0xffffffffffffffff
je 0x140013d7d
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rdi + 0x88]
call qword [0x1401d54f8]
mov rcx, rdi
call qword [0x1401d54f8]
xor eax, eax
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140115c10
add rsp, 0x40
pop rdi
ret