Function at 0x1800485e0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
cmp dword [rcx + 0xc60], 2
mov rsi, rdx
mov rbx, rcx
je 0x18004860e
mov dword [rcx + 0xc60], 2
movzx ecx, word [rcx + 0xcb8]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsi + 2], ax
mov edx, 0x140
mov rcx, qword [rbx + 0xdb0]
call fcn.18002b1e0
mov ecx, 0x80
call fcn.18002b1a4
mov ecx, 0x140
mov r14, rax
mov qword [rax], rbx
call fcn.18002b1a4
mov r8, qword [0x180092cf8]
xor edi, edi
mov qword [rbx + 0xdb0], rax
mov qword [rax], rbx
test r8, r8
jne 0x18004867e
call fcn.18000f730
test eax, eax
je 0x180048670
mov r8d, edi
jmp 0x18004867e
lea r8, [0x180092d00]
mov qword [0x180092cf8], r8
mov rdx, qword [rbx + 0xdb0]
lea rax, [r8 + 0x10]
mov qword [rdx + 8], r8
lea rcx, [rdx + 0x20]
mov dword [rdx + 0x10], recv
mov dword [rdx + 0x58], 0x20
mov qword [rcx], rax
mov rax, qword [r8 + 0x18]
mov qword [rdx + 0x28], rax
mov qword [rax], rcx
mov qword [r8 + 0x18], rcx
mov dword [rdx + 0x30], 0xffffffff
mov qword [rdx + 0x60], rdi
mov qword [rdx + 0x78], rdi
mov qword [rdx + 0x108], rdi
mov qword [rdx + 0x120], rdi
mov qword [rdx + 0x110], 0xffffffffffffffff
mov qword [rdx + 0x138], rdi
mov qword [rdx + 0x130], rdi
mov dword [rdx + 0x128], edi
mov dword [rdx + 0x118], edi
mov rdi, qword [rbx + 0xdb0]
mov rcx, qword [rdi + 0x110]
cmp rcx, 0xffffffffffffffff
je 0x18004873a
mov edx, 6
mov dword [rsp + 0x40], 1
lea r9, [rsp + 0x40]
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x18004873a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x180048741
or dword [rdi + 0x58], 0x2000000
mov rdx, qword [rbx + 0xdb0]
cmp dword [rdx + 0x10], 0xc
jne 0x180048776
movzx eax, word [rsi]
cmp ax, 2
jne 0x18004875f
mov r9d, reloc.WS2_32.dll_recv
jmp 0x18004876b
cmp ax, 0x17
jne 0x180048776
mov r9d, 0x1c
mov r8, rsi
mov rcx, r14
call fcn.1800185e0
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rdx + 8]
mov rsi, rdx
xor edx, edx
mov rdi, r8
mov rbp, rcx
cmp qword [rsi], rax
jne 0x1800487d4
mov rax, qword [r8 + 8]
cmp qword [r8], rax
lea eax, [rdx + 1]
jne 0x1800487d6
mov eax, edx
mov byte [rcx + 0x30], al
test al, al
je 0x180048820
mov rbx, qword [r8 + 8]
sub rbx, qword [r8]
sar rbx, 3
cmp rbx, 1
je 0x1800487fa
call fcn.180033bf4
cdqe
xor edx, edx
div rbx
mov rax, qword [rdi]
mov r8d, 0x2d
mov rbx, qword [rax + rdx*8]
lea rdx, [rbp + 0x833]
add rbx, 0x20
mov rcx, qword [rbx]
add rcx, 8
call fcn.18001a8e0
jmp 0x180048861
mov rbx, qword [rsi + 8]
sub rbx, qword [rsi]
sar rbx, 3
cmp rbx, 1
je 0x18004883d
call fcn.180033bf4
cdqe
xor edx, edx
div rbx
mov rax, qword [rsi]
mov r8d, reloc.WS2_32.dll_recv
mov rbx, qword [rax + rdx*8]
lea rdx, [rbp + 0x833]
add rbx, 0x20
mov rcx, qword [rbx]
add rcx, 4
call fcn.18001a840
mov rdx, qword [rbx]
mov rcx, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp 0x1800485e0