Function at 0x140027420
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x40
cmp qword [rcx - 0x3d0], 0
mov rbx, rcx
jne 0x140027444
add rcx, 0xfffffffffffffc20
add rsp, 0x40
pop rbx
jmp 0x140029cc0
mov qword [rsp + 0x38], rdi
test r8d, r8d
jns 0x1400274d7
mov rax, qword [rdx + 0x48]
cmp qword [rdx + 0x40], rax
jne 0x14002746a
mov rax, qword [rdx + 0x60]
cmp qword [rdx + 0x58], rax
jne 0x14002746a
mov al, 1
jmp 0x14002746c
xor al, al
test al, al
je 0x1400274d7
cmp byte [rcx - 0x3d8], 0
lea rdi, [rcx - 0x3e0]
jne 0x140027494
movsxd rax, dword [rcx - 0x3c4]
cmp qword [rcx - 0x3c0], rax
jge 0x140027494
xor al, al
jmp 0x140027496
mov al, 1
test al, al
jne 0x1400274c5
mov ecx, r8d
call fcn.1400e6900
mov rdx, qword [rdi]
mov rcx, rdi
mov rbx, rax
call qword [rdx + 0x30]
mov r9, rbx
lea rdx, str._s_e_0_31mDNS_error:_e_0me_1_31m__s_e_0m
mov r8, rax
mov ecx, 3
call fcn.14001bcb0
mov rcx, rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x40
pop rbx
jmp 0x140029cc0
mov qword [rsp + 0x58], rbp
mov rcx, rdx
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x30], r14
call fcn.140022380
mov r8, qword [rbx - 0x48]
xor ebp, ebp
mov rdi, rax
test r8, r8
je 0x14002750f
cmp r8, qword [rax + 0x10]
jne 0x14002750f
mov rdx, qword [rax + 8]
inc r8
mov rcx, qword [rbx - 0x50]
jmp 0x14002754a
mov rcx, qword [rbx - 0x50]
call fcn.140128fb0
cmp qword [rdi + 8], rbp
jne 0x140027528
mov qword [rbx - 0x48], rbp
mov qword [rbx - 0x50], rbp
jmp 0x14002754f
mov rcx, qword [rdi + 0x10]
mov qword [rbx - 0x48], rcx
inc rcx
call fcn.1401295b0
mov r8, qword [rbx - 0x48]
mov rcx, rax
mov qword [rbx - 0x50], rax
inc r8
mov rdx, qword [rdi + 8]
call fcn.140147a90
cmp qword [rbx + 0x38], rbp
je 0x14002755e
movzx edx, word [rbx - 0x150]
jmp 0x140027565
movzx edx, word [rbx - 0xa0]
mov rcx, rdi
call fcn.140023990
cmp dword [rbx - 0x98], 2
mov rsi, rax
je 0x140027592
call fcn.140023b40
add rax, 0x4e20
mov dword [rbx - 0x98], 2
mov qword [rbx + 0x78], rax
mov ecx, 0x80
call fcn.140128f74
mov rcx, qword [rbx + 0x90]
mov r14, rax
mov qword [rax], rcx
mov ecx, 0x140
call fcn.140128f74
mov r8, qword [0x1401dd8d0]
mov rcx, qword [rbx + 0x90]
mov qword [rbx + 0x98], rax
mov qword [rax], rcx
test r8, r8
jne 0x1400275ec
call fcn.1400f4cb0
test eax, eax
je 0x1400275de
mov r8, rbp
jmp 0x1400275ec
lea r8, [0x1401dd8e0]
mov qword [0x1401dd8d0], r8
mov rdx, qword [rbx + 0x98]
lea rax, [r8 + 0x10]
mov qword [rdx + 8], r8
lea rcx, [rdx + 0x20]
mov dword [rdx + 0x10], ntohs
mov dword [rdx + 0x58], 8
mov qword [rcx], rax
mov rax, qword [r8 + 0x18]
mov qword [rdx + 0x28], rax
mov qword [rax], rcx
mov qword [r8 + 0x18], rcx
mov qword [rdx + 0x60], rbp
mov qword [rdx + 0x78], rbp
mov qword [rdx + 0x108], rbp
mov dword [rdx + 0x100], ebp
mov qword [rdx + 0xc0], rbp
mov qword [rdx + 0xf0], rbp
mov qword [rdx + 0x120], rbp
mov qword [rdx + 0x138], rbp
mov qword [rdx + 0x130], rbp
mov dword [rdx + 0x128], ebp
mov dword [rdx + 0x118], ebp
mov rbp, qword [rsp + 0x58]
mov dword [rdx + 0x30], 0xffffffff
mov dword [rdx + 0x88], ntohs
mov qword [rdx + 0xf8], 0xffffffffffffffff
mov qword [rdx + 0x80], rdx
mov qword [rdx + 0x110], 0xffffffffffffffff
mov rdi, qword [rbx + 0x98]
mov rcx, qword [rdi + 0x110]
cmp rcx, 0xffffffffffffffff
je 0x1400276dd
mov edx, 6
mov dword [rsp + 0x50], 1
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1400276dd
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x1400276e4
or dword [rdi + 0x58], 0x1000000
mov rdx, qword [rbx + 0x98]
cmp dword [rdx + 0x10], 0xc
jne 0x140027725
movzx eax, word [rsi]
cmp ax, 2
jne 0x140027702
mov r9d, select
jmp 0x14002770e
cmp ax, 0x17
jne 0x140027725
mov r9d, 0x1c
lea rax, [0x140029e50]
mov r8, rsi
mov rcx, r14
mov qword [rsp + 0x20], rax
call fcn.1400f2ff0
mov edx, select
mov rcx, rsi
mov r14, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x38]
add rsp, 0x40
pop rbx
jmp fcn.140128fb0