Function at 0x140003ba0
Capabilities:
Set socket configuration

Disassembly:
push rbx
push rbp
push r12
push r14
sub rsp, 0x68
mov rax, qword [0x14001f040]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor r12d, r12d
mov rbx, r9
mov r14, rdx
mov rbp, rcx
cmp rcx, 0xffffffffffffffff
je 0x140003e57
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x58], r13
mov r13d, 4
test r8b, r8b
je 0x140003c63
movzx eax, byte [rdx]
test al, 8
je 0x140003c63
or al, 8
mov dword [rsp + 0x40], r12d
mov byte [rdx], al
lea r9, [rsp + 0x40]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x80
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x140003c63
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [r13 + rcx]
cmp dword [0x1400204f8], eax
jle 0x140003c5d
lea rcx, [0x1400204f8]
call fcn.1400139fc
cmp dword [0x1400204f8], 0xffffffff
jne 0x140003c5d
lea rcx, [0x140015630]
call fcn.140013cd8
lea rcx, [0x1400204f8]
call fcn.140013990
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
mov edi, eax
test eax, eax
jne 0x140003c7a
mov dword [rbx], r12d
jmp 0x140003dd6
mov rax, qword gs:[0x58]
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0x50], r15
mov r15, qword [rax]
mov eax, dword [r13 + r15]
cmp dword [0x1400204f8], eax
jle 0x140003ccd
lea rcx, [0x1400204f8]
call fcn.1400139fc
cmp dword [0x1400204f8], 0xffffffff
jne 0x140003ccd
lea rcx, [0x140015630]
call fcn.140013cd8
lea rcx, [0x1400204f8]
call fcn.140013990
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
lea rax, [0x14001f0c8]
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
mov edx, dword [0x1400204f8]
cmp edx, dword [r13 + r15]
jle 0x140003d2d
lea rcx, [0x1400204f8]
call fcn.1400139fc
mov edx, dword [0x1400204f8]
cmp edx, 0xffffffff
jne 0x140003d2d
lea rcx, [0x140015630]
call fcn.140013cd8
lea rcx, [0x1400204f8]
call fcn.140013990
mov edx, dword [0x1400204f8]
mov rcx, qword [rbx + 8]
mov rax, qword [0x14001f0d0]
cmp qword [rcx + 8], rax
jne 0x140003d46
cmp dword [rbx], 0x2733
je 0x140003d9b
cmp edx, dword [r13 + r15]
jle 0x140003d7a
lea rcx, [0x1400204f8]
call fcn.1400139fc
cmp dword [0x1400204f8], 0xffffffff
jne 0x140003d7a
lea rcx, [0x140015630]
call fcn.140013cd8
lea rcx, [0x1400204f8]
call fcn.140013990
mov rdx, qword [rbx + 8]
mov rax, qword [0x14001f0d0]
cmp qword [rdx + 8], rax
jne 0x140003e50
cmp dword [rbx], 0x4d5
jne 0x140003e50
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], r12d
mov edx, 0x8004667e
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [r14], 0xfc
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
mov edi, eax
test eax, eax
jne 0x140003df8
mov dword [rbx], r12d
mov rsi, qword [rsp + 0xa0]
mov r15, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x60]
mov r13, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140013970
add rsp, 0x68
pop r14
pop r12
pop rbp
pop rbx
ret
mov edx, dword [r13 + r15]
cmp dword [0x1400204f8], edx
jle 0x140003e32
lea rcx, [0x1400204f8]
call fcn.1400139fc
cmp dword [0x1400204f8], 0xffffffff
jne 0x140003e32
lea rcx, [0x140015630]
call fcn.140013cd8
lea rcx, [0x1400204f8]
call fcn.140013990
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
lea rax, [0x14001f0c8]
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
mov eax, edi
jmp 0x140003dc9
mov eax, r12d
jmp 0x140003de0