Function at 0x1800602a0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xc0
mov rax, qword [0x18032d860]
xor rax, rsp
mov qword [rsp + 0xb0], rax
cmp qword [rcx + 0x118], 0
mov rbp, rdx
mov rbx, qword [rcx + 0x10]
mov rdi, rcx
mov r14, rbx
movsxd r15, r8d
je 0x1800602e4
call fcn.180075ac0
mov esi, 1
test rbx, rbx
je 0x18006030f
nop
lea rcx, [rbx + 8]
mov r8d, esi
mov rdx, rbp
call fcn.18004d770
test eax, eax
je 0x180060333
mov rbx, qword [rbx + 0x110]
cmp rbx, r14
jne 0x1800602f0
cmp r15d, 0x80
jle 0x18006033d
mov r8d, r15d
lea rdx, str.Addrlen__d_too_long.
xor ecx, ecx
call fcn.18005c8d0
mov eax, 2
jmp 0x1800605ca
mov eax, 3
jmp 0x1800605ca
mov ecx, 0x1b8
call fcn.18022c454
mov rbx, rax
test rax, rax
jne 0x180060357
lea eax, [rbx - 1]
jmp 0x1800605ca
xor edx, edx
mov r8d, 0x1b8
mov rcx, rbx
call fcn.180229410
xor r9d, r9d
mov qword [rbx + 0x1a8], rdi
mov rdx, qword [rdi + 0x20]
lea rax, [0x18005c9e0]
lea rcx, [rbx + 0x120]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
lea r8, [r9 - 1]
call fcn.1800522e0
movzx ecx, word [rbp]
xor r8d, r8d
mov edx, 0x84000002
call fcn.18004f7d0
mov qword [rbx], rax
test rax, rax
js 0x18006050d
cmp dword [rdi + 0xd8], 0
je 0x1800603f6
mov rcx, rbp
call fcn.18004f2b0
test eax, eax
jne 0x1800603f6
mov r8d, dword [rdi + 0xd8]
lea rdx, [rdi + 0x58]
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x1800603f6
lea rdx, str.Couldnt_bind_to_outgoing_address
mov ecx, 2
call fcn.18005c8d0
jmp 0x180060500
cmp dword [rdi + 0xe4], 0
je 0x180060448
mov rcx, qword [rbx]
lea r9, [rdi + 0xe4]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1002
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x180060448
mov r8d, dword [rdi + 0xe4]
lea rdx, str.Couldnt_set_SO_RCVBUF_to__i
mov ecx, 2
call fcn.18005c8d0
mov esi, 0xffffeffe
jmp 0x180060505
cmp dword [rdi + 0xe8], 0
je 0x180060497
mov rcx, qword [rbx]
lea r9, [rdi + 0xe8]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1001
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x180060497
mov r8d, dword [rdi + 0xe8]
lea rdx, str.Couldnt_set_SO_SNDBUF_to__i
mov ecx, 2
call fcn.18005c8d0
mov esi, 0xffffefff
jmp 0x180060505
mov r8, r15
lea rcx, [rbx + 8]
mov rdx, rbp
call fcn.180228d60
mov rdx, qword [rbx + 0x1a8]
lea rax, [0x18005a910]
mov r8, qword [rbx]
lea rcx, [rbx + 0x98]
mov dword [rbx + 0x88], r15d
mov r9d, reloc.WS2_32.dll_select
mov byte [rbx + 0x1a0], sil
mov rdx, qword [rdx + 0x20]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call fcn.1800522e0
cmp dword [rdi + 0x120], 0
jne 0x18006054f
xor edx, edx
lea rcx, [rbx + 0x98]
call fcn.180052650
test eax, eax
jns 0x18006054f
mov esi, 2
mov rcx, qword [rbx]
call sub.WS2_32.dll_closesocket
lea rcx, [rbx + 0x98]
call fcn.180050f70
mov rcx, rbx
call fcn.18022c440
mov r8d, 0x80
lea rdx, [rsp + 0x30]
mov rcx, rbp
call fcn.18004f320
mov r8, rax
lea rdx, str.Unable_to_add_nameserver__s:_error__d
mov r9d, esi
mov ecx, 2
call fcn.18005c8d0
mov eax, esi
jmp 0x1800605ca
mov r8d, 0x80
lea rdx, [rsp + 0x30]
mov rcx, rbp
call fcn.18004f320
mov r8, rax
lea rdx, str.Added_nameserver__s_as__p
mov r9, rbx
xor ecx, ecx
call fcn.18005c8d0
mov rax, qword [rdi + 0x10]
test rax, rax
jne 0x180060593
mov qword [rbx + 0x118], rbx
mov qword [rbx + 0x110], rbx
mov qword [rdi + 0x10], rbx
jmp 0x1800605c5
mov rax, qword [rax + 0x110]
mov qword [rbx + 0x110], rax
mov rax, qword [rdi + 0x10]
mov qword [rbx + 0x118], rax
mov rax, qword [rdi + 0x10]
mov qword [rax + 0x110], rbx
mov rax, qword [rbx + 0x110]
mov qword [rax + 0x118], rbx
inc dword [rdi + 0x28]
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.180227e50
mov rbx, qword [rsp + 0x108]
add rsp, 0xc0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret