Function at 0x1403273c0
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rbx
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x14057c500]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rbx, rcx
mov qword [rsp + 0x98], rsi
lea rcx, [rbp - 0x29]
movzx r14d, r8w
call fcn.140446950
lea rcx, [rbp - 0x29]
call fcn.140303e20
test eax, eax
jne 0x14032743e
lea rcx, [rbp - 0x29]
call fcn.140310450
and eax, 0xffff0000
cmp eax, 0xefff0000
jne 0x14032743e
mov edx, 6
lea rcx, [rbp - 0x11]
call fcn.140302af0
mov rdx, qword [rbp - 0x29]
mov rcx, qword [rax]
mov qword [rbp - 0x29], rcx
lea rcx, [rbp - 0x11]
mov qword [rax], rdx
call fcn.140302c20
lea rcx, [rbp - 0x29]
mov qword [rsp + 0x90], rdi
call fcn.140303e20
cmp eax, 1
je 0x1403274a9
lea rcx, [rbp - 0x29]
call fcn.140303e20
cmp eax, 2
je 0x1403274a9
mov eax, dword [rbx + 0x70]
dec eax
cmp eax, 1
jbe 0x1403274a9
xor eax, eax
mov edi, 2
mov qword [rbp - 9], rax
movzx ecx, r14w
mov word [rbp - 9], di
mov qword [rbp - 1], rax
call qword [sym.imp.WS2_32.dll_htons]
lea rcx, [rbp - 0x29]
mov word [rbp - 7], ax
call fcn.140310450
mov ecx, eax
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp - 5], eax
lea esi, [rdi + 0xe]
jmp 0x140327535
xor eax, eax
lea rdx, [rbp - 0x19]
mov qword [rbp - 9], rax
lea rcx, [rbp - 0x29]
mov qword [rbp - 1], rax
mov qword [rbp + 7], rax
mov dword [rbp + 0xf], eax
mov eax, 0x17
mov word [rbp - 9], ax
call fcn.140303ef0
mov rcx, rax
call fcn.140307100
mov rcx, qword [rbp - 0x19]
mov edi, 2
mov dword [rbp + 0xf], eax
mov eax, dword [rcx]
test eax, eax
je 0x1403274ff
cmp eax, 0xffffffff
je 0x14032750d
or eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14032750d
mov rcx, qword [rbp - 0x19]
mov r8d, 8
mov rdx, rdi
call fcn.140379300
movzx ecx, r14w
call qword [sym.imp.WS2_32.dll_htons]
lea rdx, [rbp + 0x17]
mov word [rbp - 7], ax
lea rcx, [rbp - 0x29]
call fcn.1403043d0
movups xmm0, xmmword [rbp + 0x17]
mov esi, 0x1c
movups xmmword [rbp - 1], xmm0
cmp word [rbp - 9], 0x17
jne 0x14032757e
lea rcx, [rbp - 0x29]
mov dword [rbp - 0x21], 0
call fcn.140303e20
mov ecx, dword [rbp - 0x21]
lea r9, [rbp - 0x21]
mov edx, 1
mov dword [rsp + 0x20], 4
cmp eax, edx
cmove ecx, edx
mov edx, 0x29
mov dword [rbp - 0x21], ecx
mov rcx, qword [rbx + 0xa8]
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx + 0xa8]
lea rdx, [rbp - 9]
mov r8d, esi
call qword [sym.imp.WS2_32.dll_bind]
mov rsi, qword [rsp + 0x98]
cmp eax, 0xffffffff
jne 0x140327659
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x273f
jne 0x140327600
lea rcx, [rbp - 0x29]
call fcn.140303e20
cmp eax, 2
jne 0x140327600
movzx ecx, r14w
mov word [rbp - 9], di
call qword [sym.imp.WS2_32.dll_htons]
lea rcx, [rbp - 0x29]
mov word [rbp - 7], ax
call fcn.140310450
mov ecx, eax
call qword [sym.imp.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0xa8]
lea rdx, [rbp - 9]
mov r8d, select
mov dword [rbp - 5], eax
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x140327659
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x271d
je 0x140327644
sub eax, 9
je 0x14032762f
sub eax, 0x1a
je 0x14032762f
cmp eax, 1
jne 0x140327655
lea edx, [rax + 8]
mov rcx, rbx
lea r8d, [rax + 0xe]
call fcn.1403147c0
xor bl, bl
jmp 0x140327662
mov edx, 8
mov rcx, rbx
lea r8d, [rdx + 6]
call fcn.1403147c0
xor bl, bl
jmp 0x140327662
mov edx, 3
mov rcx, rbx
lea r8d, [rdx + 0xd]
call fcn.1403147c0
xor bl, bl
jmp 0x140327662
mov dword [rbx + 0x68], 4
mov bl, 1
lea rcx, [rbp - 0x29]
call fcn.140302c20
mov rdi, qword [rsp + 0x90]
movzx eax, bl
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1404e17d0
add rsp, 0xa0
pop r14
pop rbx
pop rbp
ret