Function at 0x14004fe70
Capabilities:
Set socket configuration

Disassembly:
push rdi
push r13
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x14007d040]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor r13d, r13d
mov rdi, r9
mov r15, rdx
mov r14, rcx
cmp rcx, 0xffffffffffffffff
je 0x140050220
mov qword [rsp + 0x68], rsi
test r8b, r8b
je 0x14004fee8
movzx eax, byte [rdx]
test al, 8
je 0x14004fee8
or al, 8
mov dword [rsp + 0x48], r13d
mov byte [rdx], al
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x80
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
lea rcx, [rsp + 0x30]
setne dl
call fcn.140014e40
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
mov rcx, rdi
mov esi, eax
setne dl
call fcn.140014e40
test esi, esi
je 0x140050219
mov r9, qword [0x140081928]
movabs rcx, 0x4d54ee85da812030
mov qword [rsp + 0xb0], rbx
add rcx, r9
mov qword [rsp + 0x70], rbp
mov ebp, 0x2733
mov qword [rsp + 0x60], r12
lea rbx, [0x140081920]
cmp rcx, 1
jbe 0x14004ff58
mov rax, qword [0x140081920]
mov edx, ebp
mov rcx, rbx
call qword [rax + 0x30]
mov r9, qword [0x140081928]
jmp 0x14004ff5a
mov al, 1
mov r10, qword [rdi + 0x10]
lea r12, [0x140081978]
movzx r8d, al
movabs rdx, 0x4800144005b3
add r8, 2
cmp r10, 1
sete cl
cmp r8, 1
sete al
cmp cl, al
jne 0x14005006c
cmp r10, 1
jne 0x14004ffe6
cmp r8, r10
jne 0x14004ffb6
mov rax, qword [rdi + 8]
cmp qword [rax + 8], r9
jne 0x14004ffaf
cmp dword [rdi], ebp
jne 0x14004ffaf
movzx eax, r10b
jmp 0x140050064
xor al, al
jmp 0x140050064
mov rcx, qword [rdi + 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 [rdi]
jmp 0x14005001e
mov r11d, dword [rdi]
cmp r8, 1
jne 0x14005001e
mov rax, rdx
mov rcx, rbx
mul rbx
mov rax, rbx
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 0x14005006c
test r8, r8
jne 0x14005002d
mov rax, rbx
jmp 0x140050038
cmp r8, 1
mov rax, r12
cmovne rax, rbx
test r10, r10
jne 0x140050042
mov rcx, rbx
jmp 0x14005004f
mov rcx, r12
cmp r10, 1
je 0x14005004f
mov rcx, qword [rdi + 8]
mov rdx, qword [rax + 8]
test rdx, rdx
jne 0x14005005d
cmp rcx, rax
jmp 0x140050061
cmp qword [rcx + 8], rdx
sete al
test al, al
jne 0x1400501de
movabs rax, 0x4d54ee85da812030
mov ebp, 0x4d5
add rax, r9
cmp rax, 1
jbe 0x14005009c
mov rax, qword [0x140081920]
mov edx, ebp
mov rcx, rbx
call qword [rax + 0x30]
mov r9, qword [0x140081928]
jmp 0x14005009e
mov al, 1
mov r10, qword [rdi + 0x10]
movzx r8d, al
add r8, 2
cmp r10, 1
sete cl
cmp r8, 1
sete al
cmp cl, al
jne 0x1400500e9
cmp r10, 1
jne 0x140050152
cmp r8, r10
jne 0x14005011b
mov rax, qword [rdi + 8]
cmp qword [rax + 8], r9
jne 0x1400500df
cmp dword [rdi], ebp
jne 0x1400500df
movzx eax, r10b
jmp 0x1400500e1
xor al, al
test al, al
jne 0x1400501de
mov eax, esi
mov rbx, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0x70]
mov r12, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14005e550
add rsp, 0x78
pop r15
pop r14
pop r13
pop rdi
ret
mov rcx, qword [rdi + 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 [rdi]
jmp 0x140050191
mov r9d, dword [rdi]
cmp r8, 1
jne 0x140050191
movabs rax, 0x4800144005b3
mov rcx, rbx
mul rbx
mov rax, rbx
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 0x1400500e9
test r8, r8
jne 0x1400501a4
mov rax, rbx
jmp 0x1400501af
cmp r8, 1
mov rax, r12
cmovne rax, rbx
test r10, r10
je 0x1400501c1
mov rbx, r12
cmp r10, 1
je 0x1400501c1
mov rbx, qword [rdi + 8]
mov rcx, qword [rax + 8]
test rcx, rcx
jne 0x1400501cf
cmp rbx, rax
jmp 0x1400501d3
cmp qword [rbx + 8], rcx
sete al
test al, al
je 0x1400500e9
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]
test eax, eax
mov rcx, rdi
mov ebx, eax
setne dl
call fcn.140014e40
mov eax, ebx
jmp 0x1400500eb
mov eax, esi
jmp 0x1400500fd
mov eax, r13d
jmp 0x140050102