Function at 0x1400137b0
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rsi
push rdi
push r15
sub rsp, 0x68
mov rax, qword [0x140205108]
xor rax, rsp
mov qword [rsp + 0x50], rax
movzx eax, word [rcx + 0x1c0]
mov ebp, 0x238
movzx esi, word [rcx + 0x230]
mov rdi, rcx
mov r15d, reloc.WS2_32.dll_recv
lea ecx, [rbp - 4]
cmp ax, si
jne 0x14001383a
cmp si, 0x17
mov r9d, 0x1c4
mov edx, ebp
mov r8d, 4
cmovne edx, ecx
cmove r8d, r15d
add rdx, rdi
mov ecx, 0x1c8
cmp ax, 0x17
cmovne ecx, r9d
add rcx, rdi
call fcn.14016bbc0
test eax, eax
jne 0x14001383a
movzx eax, word [rdi + 0x232]
cmp word [rdi + 0x1c2], ax
jne 0x14001383a
lea eax, [rbp - 0x31]
jmp 0x140013bb4
mov eax, dword [rdi + 0xb4]
mov qword [rsp + 0x98], rbx
mov qword [rsp + 0xa0], r13
mov qword [rsp + 0x60], r14
cmp eax, 0x1000000
je 0x140013b9d
cmp eax, 0x100000
je 0x140013b9d
cmp eax, 2
je 0x140013b9d
cmp eax, 4
je 0x140013b9d
mov rcx, qword [rdi + 0x78]
lea rdx, [rdi + 0x214]
cmp rcx, 0xffffffffffffffff
je 0x1400138b3
mov esi, 0x1c
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], esi
call qword [0x1401fe258]
cmp eax, 0xffffffff
jne 0x140013b9d
lea eax, [rsi - 0xe]
jmp 0x140013b9f
movzx ebx, word [rdx]
lea rcx, [rdi + 0x21c]
movzx eax, word [reloc.WS2_32.dll_accept]
mov r13d, 1
mov word [rsp + 0x34], r13w
mov word [rsp + 0x36], ax
cmp bx, 0x17
je 0x1400138e2
lea rcx, [rdi + 0x218]
mov rdx, qword [0x1401fe220]
mov r8d, 4
cmove r8, r15
movzx r14d, bx
call fcn.14016bbc0
test eax, eax
jne 0x140013976
mov rdx, qword [0x1401fe220]
cmp si, 0x17
mov ebx, 4
mov rcx, rbp
cmove rbx, r15
mov r14d, 0x234
cmovne rcx, r14
mov r8, rbx
add rcx, rdi
call fcn.14016bbc0
test eax, eax
jne 0x14001393a
mov eax, 0x64
jmp 0x140013b9f
cmp si, 0x17
mov word [rdi + 0x214], si
lea rcx, [rdi + 0x21c]
cmovne rbp, r14
add rbp, rdi
cmp si, 0x17
je 0x140013960
lea rcx, [rdi + 0x218]
mov r8, rbx
mov rdx, rbp
call fcn.14016bcc0
movzx ebx, word [rdi + 0x214]
movzx r14d, bx
cmp word [rdi + 0x216], 0
jne 0x140013992
movzx eax, word [rdi + 0x232]
movzx ebx, r14w
mov word [rdi + 0x216], ax
mov eax, reloc.WS2_32.dll_socket
mov ecx, 2
cmp bx, ax
mov edx, r13d
cmove ecx, eax
lea r8d, [rax - 0x11]
call qword [0x1401fe230]
mov qword [rdi + 0x78], rax
cmp rax, 0xffffffffffffffff
jne 0x1400139c3
mov eax, reloc.WS2_32.dll_inet_addr
jmp 0x140013b9f
cmp word [rdi + 0x1f8], 0x17
lea rcx, [rdi + 0x200]
je 0x1400139db
lea rcx, [rdi + 0x1fc]
mov rdx, qword [0x1401fe220]
mov r8d, 4
cmove r8, r15
call fcn.14016bbc0
test eax, eax
jne 0x140013a53
cmp word [rdi + 0x214], 0x17
mov rax, qword [rdi + 0x10]
jne 0x140013a29
movups xmm0, xmmword [rax + 0xe4]
movups xmmword [rdi + 0x1f8], xmm0
movsd xmm1, qword [rax + 0xf4]
movsd qword [rdi + 0x208], xmm1
mov eax, dword [rax + 0xfc]
jmp 0x140013a4d
movups xmm0, xmmword [rax + 0x100]
movups xmmword [rdi + 0x1f8], xmm0
movsd xmm1, qword [rax + 0x110]
movsd qword [rdi + 0x208], xmm1
mov eax, dword [rax + 0x118]
mov dword [rdi + 0x210], eax
xor eax, eax
mov word [rdi + 0x1fa], ax
mov rax, qword [rdi + 0x10]
mov rcx, qword [rdi + 0x78]
mov edx, dword [rax + 0xa0]
call fcn.1400251f0
mov rcx, qword [rdi + 0x78]
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x80
call qword [0x1401fe270]
cmp word [rdi + 0x1f8], 0x17
lea rdx, [rdi + 0x1f8]
mov rcx, qword [rdi + 0x78]
mov r8d, r15d
mov esi, 0x1c
cmove r8d, esi
call qword [0x1401fe240]
cmp eax, 0xffffffff
jne 0x140013ac3
lea eax, [rsi - 0x10]
jmp 0x140013b9f
mov eax, dword [rdi + 0xb4]
cmp eax, 0x100
jge 0x140013ad9
test r13b, al
je 0x140013b77
cmp word [rdi + 0x214], 0x17
lea r8, [rsp + 0x38]
mov rbp, qword [rdi + 0x78]
mov edx, 0x8004667e
mov rcx, rbp
mov dword [rsp + 0x38], r13d
cmove r15d, esi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r8d, r15d
lea rdx, [rdi + 0x214]
mov rcx, rbp
call qword [0x1401fe250]
test eax, eax
je 0x140013b30
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x140013b30
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x70
jne 0x140013b70
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x140013b77
xorps xmm0, xmm0
lea rcx, [rsp + 0x40]
movups xmmword [rsp + 0x40], xmm0
mov eax, 0x310
mov qword [rsp + 0x40], rbp
mov r8d, 0x1f40
mov word [rsp + 0x48], ax
mov edx, r13d
call qword [0x1401fe278]
test eax, eax
jle 0x140013b70
test byte [rsp + 0x4a], 0x10
jne 0x140013b77
mov eax, reloc.WS2_32.dll_listen
jmp 0x140013b9f
mov rcx, qword [rdi + 0x78]
lea r8, [rsp + 0x30]
lea rdx, [rdi + 0x1f8]
mov dword [rsp + 0x30], esi
call qword [0x1401fe260]
cmp eax, 0xffffffff
jne 0x140013b9d
mov eax, reloc.WS2_32.dll_ntohs
jmp 0x140013b9f
xor eax, eax
mov r13, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0x98]
mov r14, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401677c0
add rsp, 0x68
pop r15
pop rdi
pop rsi
pop rbp
ret