Function at 0x140003b80
Capabilities:
Set socket configuration

Disassembly:
push rbx
push rbp
push r12
push r14
sub rsp, 0x68
mov rax, qword [0x14001e040]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor r12d, r12d
mov rbx, r9
mov r14, rdx
mov rbp, rcx
cmp rcx, 0xffffffffffffffff
je 0x140003e37
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x58], r13
mov r13d, 4
test r8b, r8b
je 0x140003c43
movzx eax, byte [rdx]
test al, 8
je 0x140003c43
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 0x140003c43
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [r13 + rcx]
cmp dword [0x14001f4b4], eax
jle 0x140003c3d
lea rcx, [0x14001f4b4]
call fcn.14001277c
cmp dword [0x14001f4b4], 0xffffffff
jne 0x140003c3d
lea rcx, [0x140014350]
call fcn.140012a58
lea rcx, [0x14001f4b4]
call fcn.140012710
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 0x140003c5a
mov dword [rbx], r12d
jmp 0x140003db6
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 [0x14001f4b4], eax
jle 0x140003cad
lea rcx, [0x14001f4b4]
call fcn.14001277c
cmp dword [0x14001f4b4], 0xffffffff
jne 0x140003cad
lea rcx, [0x140014350]
call fcn.140012a58
lea rcx, [0x14001f4b4]
call fcn.140012710
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
lea rax, [0x14001e0c8]
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
mov edx, dword [0x14001f4b4]
cmp edx, dword [r13 + r15]
jle 0x140003d0d
lea rcx, [0x14001f4b4]
call fcn.14001277c
mov edx, dword [0x14001f4b4]
cmp edx, 0xffffffff
jne 0x140003d0d
lea rcx, [0x140014350]
call fcn.140012a58
lea rcx, [0x14001f4b4]
call fcn.140012710
mov edx, dword [0x14001f4b4]
mov rcx, qword [rbx + 8]
mov rax, qword [0x14001e0d0]
cmp qword [rcx + 8], rax
jne 0x140003d26
cmp dword [rbx], 0x2733
je 0x140003d7b
cmp edx, dword [r13 + r15]
jle 0x140003d5a
lea rcx, [0x14001f4b4]
call fcn.14001277c
cmp dword [0x14001f4b4], 0xffffffff
jne 0x140003d5a
lea rcx, [0x140014350]
call fcn.140012a58
lea rcx, [0x14001f4b4]
call fcn.140012710
mov rdx, qword [rbx + 8]
mov rax, qword [0x14001e0d0]
cmp qword [rdx + 8], rax
jne 0x140003e30
cmp dword [rbx], 0x4d5
jne 0x140003e30
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 0x140003dd8
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.1400126f0
add rsp, 0x68
pop r14
pop r12
pop rbp
pop rbx
ret
mov edx, dword [r13 + r15]
cmp dword [0x14001f4b4], edx
jle 0x140003e12
lea rcx, [0x14001f4b4]
call fcn.14001277c
cmp dword [0x14001f4b4], 0xffffffff
jne 0x140003e12
lea rcx, [0x140014350]
call fcn.140012a58
lea rcx, [0x14001f4b4]
call fcn.140012710
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
lea rax, [0x14001e0c8]
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
mov eax, edi
jmp 0x140003da9
mov eax, r12d
jmp 0x140003dc0