Function at 0x140007710
Capabilities:
Set socket configuration

Disassembly:
push rbx
push rbp
push rsi
push r15
sub rsp, 0x68
mov rax, qword [0x140028040]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebp, ebp
mov rbx, r9
mov r15, rdx
mov rsi, rcx
cmp rcx, 0xffffffffffffffff
je 0x1400079bb
movzx eax, byte [rdx]
mov qword [rsp + 0xa0], rdi
mov qword [rsp + 0x58], r13
mov r13d, 4
test al, 8
je 0x1400077ce
or al, 8
mov dword [rsp + 0x40], ebp
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 0x1400077ce
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [r13 + rcx]
cmp dword [0x140029514], eax
jle 0x1400077c8
lea rcx, [0x140029514]
call fcn.14001ce34
cmp dword [0x140029514], 0xffffffff
jne 0x1400077c8
lea rcx, [0x14001e810]
call fcn.14001cdb0
lea rcx, [0x140029514]
call fcn.14001cdc8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov edi, eax
test eax, eax
jne 0x1400077e4
mov dword [rbx], ebp
jmp 0x140007938
mov rax, qword gs:[0x58]
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x50], r14
mov r12, qword [rax]
mov eax, dword [r13 + r12]
cmp dword [0x140029514], eax
jle 0x140007834
lea rcx, [0x140029514]
call fcn.14001ce34
cmp dword [0x140029514], 0xffffffff
jne 0x140007834
lea rcx, [0x14001e810]
call fcn.14001cdb0
lea rcx, [0x140029514]
call fcn.14001cdc8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
lea rax, [0x1400280d8]
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
mov edx, dword [0x140029514]
cmp edx, dword [r13 + r12]
jle 0x140007894
lea rcx, [0x140029514]
call fcn.14001ce34
mov edx, dword [0x140029514]
cmp edx, 0xffffffff
jne 0x140007894
lea rcx, [0x14001e810]
call fcn.14001cdb0
lea rcx, [0x140029514]
call fcn.14001cdc8
mov edx, dword [0x140029514]
mov rcx, qword [rbx + 8]
mov rax, qword [0x1400280e0]
cmp qword [rcx + 8], rax
jne 0x1400078ad
cmp dword [rbx], 0x2733
je 0x140007902
cmp edx, dword [r13 + r12]
jle 0x1400078e1
lea rcx, [0x140029514]
call fcn.14001ce34
cmp dword [0x140029514], 0xffffffff
jne 0x1400078e1
lea rcx, [0x14001e810]
call fcn.14001cdb0
lea rcx, [0x140029514]
call fcn.14001cdc8
mov rdx, qword [rbx + 8]
mov rax, qword [0x1400280e0]
cmp qword [rdx + 8], rax
jne 0x1400079b4
cmp dword [rbx], 0x4d5
jne 0x1400079b4
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], ebp
mov edx, 0x8004667e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [r15], 0xfc
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov edi, eax
test eax, eax
jne 0x14000795c
mov dword [rbx], ebp
mov r12, qword [rsp + 0x60]
mov r14, qword [rsp + 0x50]
mov rdi, qword [rsp + 0xa0]
mov r13, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14001ca20
add rsp, 0x68
pop r15
pop rsi
pop rbp
pop rbx
ret
mov edx, dword [r13 + r12]
cmp dword [0x140029514], edx
jle 0x140007996
lea rcx, [0x140029514]
call fcn.14001ce34
cmp dword [0x140029514], 0xffffffff
jne 0x140007996
lea rcx, [0x14001e810]
call fcn.14001cdb0
lea rcx, [0x140029514]
call fcn.14001cdc8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
lea rax, [0x1400280d8]
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
mov eax, edi
jmp 0x14000792e
mov eax, ebp
jmp 0x140007945