Function at 0x1400047f0
Capabilities:
Set socket configuration

Disassembly:
mov r11, rsp
push rbx
push r13
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x140012040]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor r13d, r13d
mov rbx, r9
mov r15, rdx
mov r14, rcx
cmp rcx, 0xffffffffffffffff
je 0x140004c89
movzx eax, byte [rdx]
mov qword [r11 + 0x18], rbp
movabs rbp, 0x4d54ee85da812030
mov qword [r11 - 0x30], rdi
mov qword [r11 - 0x38], r12
lea r12, [0x140012128]
test al, 8
je 0x140004895
or al, 8
mov dword [r11 - 0x50], r13d
mov byte [rdx], al
lea r9, [r11 - 0x50]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x80
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x140004895
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rdx, qword [0x140012130]
add rdx, rbp
cmp rdx, 1
jbe 0x140004895
mov edx, eax
mov rcx, r12
mov rax, qword [0x140012128]
call qword [rax + 0x30]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
mov edi, eax
test eax, eax
jne 0x1400048bf
xorps xmm0, xmm0
mov qword [rsp + 0x40], r13
movups xmmword [rbx], xmm0
movsd xmm0, qword [rsp + 0x40]
movsd qword [rbx + 0x10], xmm0
jmp 0x140004ae6
mov qword [rsp + 0x70], rsi
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rdx, qword [0x140012130]
mov esi, eax
add rdx, rbp
mov dword [rsp + 0x34], r13d
cmp rdx, 1
jbe 0x1400048f3
mov r8, qword [0x140012128]
mov edx, eax
mov rcx, r12
call qword [r8 + 0x30]
jmp 0x1400048f8
test esi, esi
setne al
movzx eax, al
add rax, 2
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x40], rax
movsd xmm1, qword [rsp + 0x40]
mov qword [rsp + 0x38], r12
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
movsd qword [rbx + 0x10], xmm1
mov r9, qword [0x140012130]
lea rax, [r9 + rbp]
mov ebp, 0x2733
cmp rax, 1
jbe 0x14000494e
mov rax, qword [0x140012128]
mov edx, ebp
mov rcx, r12
call qword [rax + 0x30]
mov r9, qword [0x140012130]
jmp 0x140004950
mov al, 1
mov r10, qword [rbx + 0x10]
lea rsi, [0x1400120f0]
movzx r8d, al
movabs rdx, 0x4800144005b3
add r8, 2
cmp r10, 1
sete cl
cmp r8, 1
sete al
cmp cl, al
jne 0x140004a62
cmp r10, 1
jne 0x1400049dc
cmp r8, r10
jne 0x1400049ac
mov rax, qword [rbx + 8]
cmp qword [rax + 8], r9
jne 0x1400049a5
cmp dword [rbx], ebp
jne 0x1400049a5
movzx eax, r10b
jmp 0x140004a5a
xor al, al
jmp 0x140004a5a
mov rcx, qword [rbx + 8]
mov rax, rdx
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x14
imul rax, rax, 0x1ffff7
sub rcx, rax
imul r11d, ecx, 0x3e8
add r11d, dword [rbx]
jmp 0x140004a14
mov r11d, dword [rbx]
cmp r8, 1
jne 0x140004a14
mov rax, rdx
mov rcx, r12
mul r12
mov rax, r12
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x14
imul rax, rax, 0x1ffff7
sub rcx, rax
imul ebp, ecx, 0x3e8
add ebp, 0x2733
cmp r11d, ebp
jne 0x140004a62
test r8, r8
jne 0x140004a23
mov rax, r12
jmp 0x140004a2e
cmp r8, 1
mov rax, rsi
cmovne rax, r12
test r10, r10
jne 0x140004a38
mov rcx, r12
jmp 0x140004a45
mov rcx, rsi
cmp r10, 1
je 0x140004a45
mov rcx, qword [rbx + 8]
mov rdx, qword [rax + 8]
test rdx, rdx
jne 0x140004a53
cmp rcx, rax
jmp 0x140004a57
cmp qword [rcx + 8], rdx
sete al
test al, al
jne 0x140004bd6
movabs rax, 0x4d54ee85da812030
mov ebp, 0x4d5
add rax, r9
cmp rax, 1
jbe 0x140004a92
mov rax, qword [0x140012128]
mov edx, ebp
mov rcx, r12
call qword [rax + 0x30]
mov r9, qword [0x140012130]
jmp 0x140004a94
mov al, 1
mov r10, qword [rbx + 0x10]
movzx r8d, al
add r8, 2
cmp r10, 1
sete cl
cmp r8, 1
sete al
cmp cl, al
jne 0x140004adf
cmp r10, 1
jne 0x140004b48
cmp r8, r10
jne 0x140004b11
mov rax, qword [rbx + 8]
cmp qword [rax + 8], r9
jne 0x140004ad5
cmp dword [rbx], ebp
jne 0x140004ad5
movzx eax, r10b
jmp 0x140004ad7
xor al, al
test al, al
jne 0x140004bd6
mov eax, edi
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0xb0]
mov r12, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14000a570
add rsp, 0x78
pop r15
pop r14
pop r13
pop rbx
ret
mov rcx, qword [rbx + 8]
movabs rax, 0x4800144005b3
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x14
imul rax, rax, 0x1ffff7
sub rcx, rax
imul r9d, ecx, 0x3e8
add r9d, dword [rbx]
jmp 0x140004b87
mov r9d, dword [rbx]
cmp r8, 1
jne 0x140004b87
movabs rax, 0x4800144005b3
mov rcx, r12
mul r12
mov rax, r12
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x14
imul rax, rax, 0x1ffff7
sub rcx, rax
imul ebp, ecx, 0x3e8
add ebp, 0x4d5
cmp r9d, ebp
jne 0x140004adf
test r8, r8
jne 0x140004b9a
mov rax, r12
jmp 0x140004ba5
cmp r8, 1
mov rax, rsi
cmovne rax, r12
test r10, r10
jne 0x140004baf
mov rsi, r12
jmp 0x140004bb9
cmp r10, 1
je 0x140004bb9
mov rsi, qword [rbx + 8]
mov rcx, qword [rax + 8]
test rcx, rcx
jne 0x140004bc7
cmp rsi, rax
jmp 0x140004bcb
cmp qword [rsi + 8], rcx
sete al
test al, al
je 0x140004adf
lea r8, [rsp + 0x48]
mov dword [rsp + 0x48], r13d
mov edx, 0x8004667e
mov rcx, r14
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [r15], 0xfc
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
mov esi, eax
test eax, eax
jne 0x140004c1c
xorps xmm0, xmm0
mov qword [rsp + 0x40], r13
movups xmmword [rbx], xmm0
movsd xmm0, qword [rsp + 0x40]
movsd qword [rbx + 0x10], xmm0
jmp 0x140004ae1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rdx, qword [0x140012130]
mov edi, eax
movabs rax, 0x4d54ee85da812030
mov dword [rsp + 0x34], r13d
add rdx, rax
cmp rdx, 1
jbe 0x140004c55
mov r8, qword [0x140012128]
mov edx, edi
mov rcx, r12
call qword [r8 + 0x30]
jmp 0x140004c5a
test edi, edi
setne al
movzx eax, al
add rax, 2
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x40], rax
mov eax, esi
movsd xmm1, qword [rsp + 0x40]
mov qword [rsp + 0x38], r12
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
movsd qword [rbx + 0x10], xmm1
jmp 0x140004ae1
mov eax, r13d
jmp 0x140004af8