Function at 0x18000aba0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf]
sub rsp, 0xc0
mov rax, qword [0x1800a0040]
xor rax, rsp
mov qword [rbp - 1], rax
mov r12d, r8d
mov r15, rdx
mov rdi, rcx
mov r13, qword [rbp + 0x6f]
mov rsi, qword [rbp + 0x7f]
xor r14d, r14d
cmp r8d, 2
je 0x18000abee
cmp r8d, 0x17
jne 0x18000adc5
lea eax, [r9 - 1]
test eax, 0xfffffffb
jne 0x18000adc5
xor eax, eax
lea edx, [rax + 0x10]
lock cmpxchg qword [rcx + 0x18], r14
mov rbx, rax
mov qword [rbp - 0x61], rax
jne 0x18000ac88
mov dword [rbp - 0x31], 0x25a207b9
mov dword [rbp - 0x2d], 0x4660ddf3
mov dword [rbp - 0x29], 0xe576e98e
mov dword [rbp - 0x25], 0x3e06748c
mov dword [rbp - 0x59], r14d
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
lea rax, [rbp - 0x59]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 8
lea rax, [rbp - 0x61]
mov qword [rsp + 0x20], rax
mov r9d, edx
lea r8, [rbp - 0x31]
mov edx, 0xc8000006
mov rcx, qword [r15]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x18000ac77
mov rax, rdi
mov qword [rbp - 0x61], rax
jmp 0x18000ac7b
mov rax, qword [rbp - 0x61]
xchg qword [rdi + 0x18], rax
mov rbx, qword [rbp - 0x61]
mov edx, select
cmp rbx, rdi
cmove rbx, r14
test rbx, rbx
je 0x18000adc5
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x21], xmm0
mov qword [rbp - 0x11], rax
mov dword [rbp - 9], eax
mov word [rbp - 0x21], r12w
mov rcx, qword [r15]
cmp rcx, 0xffffffffffffffff
jne 0x18000acc6
mov edx, 0x2719
lea rcx, [rsi + 0x38]
call fcn.18000f540
jmp 0x18000acec
mov r8d, 0x1c
cmp r12d, 2
cmove r8d, edx
lea rdx, [rbp - 0x21]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
setne dl
lea rcx, [rsi + 0x38]
call fcn.180008bf0
cmp dword [rsi + 0x38], r14d
je 0x18000ad65
mov edx, 4
mov ecx, dword [0x1800a2a00]
mov rax, qword gs:[0x58]
mov rcx, qword [rax + rcx*8]
mov eax, dword [rdx + rcx]
cmp dword [0x1800a40a0], eax
jle 0x18000ad42
lea rcx, [0x1800a40a0]
call fcn.180050638
cmp dword [0x1800a40a0], 0xffffffff
jne 0x18000ad42
lea rcx, [0x18007f660]
call fcn.180050b14
lea rcx, [0x1800a40a0]
call fcn.1800505cc
mov rdx, qword [rsi + 0x40]
mov rax, qword [0x1800a0e10]
cmp qword [rdx + 8], rax
jne 0x18000ad5c
cmp dword [rsi + 0x38], 0x2726
je 0x18000ad65
mov rcx, qword [rdi + 8]
jmp 0x18000ae06
mov byte [rsi + 0x60], 1
mov rax, qword [rdi + 8]
lock inc dword [rax + 0x30]
mov qword [rsp + 0x30], rsi
xor eax, eax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8d, dword [rbp + 0x77]
mov rdx, r13
mov rcx, qword [r15]
call rbx
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x18000adb7
cmp eax, 0x3e5
je 0x18000adb7
xor r9d, r9d
mov r8d, eax
mov rdx, rsi
mov rcx, qword [rdi + 8]
call fcn.180008330
jmp 0x18000ae0e
mov rdx, rsi
mov rcx, qword [rdi + 8]
call fcn.180008290
jmp 0x18000ae0e
xor eax, eax
lock cmpxchg qword [rdi + 0x10], r14
mov r14, rax
jne 0x18000ade4
mov rcx, qword [rdi]
mov rcx, qword [rcx]
call fcn.1800112d0
mov r14, rax
xchg qword [rdi + 0x10], rax
test byte [r15 + 8], 3
jne 0x18000ae64
mov rcx, qword [r15]
cmp rcx, 0xffffffffffffffff
jne 0x18000ae35
mov edx, 0x2719
lea rcx, [rsi + 0x38]
call fcn.18000f540
mov rcx, qword [r14 + 0x28]
mov rdx, rsi
call fcn.180007970
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.180050570
mov rbx, qword [rsp + 0x118]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov dword [rbp - 0x55], 1
lea r8, [rbp - 0x55]
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebx, eax
mov edx, eax
shr edx, 0x1f
lea rcx, [rsi + 0x38]
call fcn.180008bf0
test ebx, ebx
js 0x18000ae02
or byte [r15 + 8], 2
mov rcx, qword [r15]
cmp rcx, 0xffffffffffffffff
jne 0x18000ae7d
mov edx, 0x2719
lea rcx, [rsi + 0x38]
call fcn.18000f540
jmp 0x18000aea2
mov r8d, dword [rbp + 0x77]
mov rdx, r13
call qword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
test eax, eax
setne dl
lea rcx, [rsi + 0x38]
call fcn.180008bf0
test ebx, ebx
je 0x18000ae02
mov edx, 4
mov ecx, dword [0x1800a2a00]
mov rax, qword gs:[0x58]
mov rbx, qword [rax + rcx*8]
add rbx, rdx
mov edx, dword [0x1800a40a0]
cmp edx, dword [rbx]
jle 0x18000aefc
lea rcx, [0x1800a40a0]
call fcn.180050638
mov edx, dword [0x1800a40a0]
cmp edx, 0xffffffff
jne 0x18000aefc
lea rcx, [0x18007f660]
call fcn.180050b14
lea rcx, [0x1800a40a0]
call fcn.1800505cc
mov edx, dword [0x1800a40a0]
mov rcx, qword [rsi + 0x40]
mov rax, qword [0x1800a0e10]
cmp qword [rcx + 8], rax
jne 0x18000af16
cmp dword [rsi + 0x38], 0x2734
je 0x18000af69
cmp edx, dword [rbx]
jle 0x18000af47
lea rcx, [0x1800a40a0]
call fcn.180050638
cmp dword [0x1800a40a0], 0xffffffff
jne 0x18000af47
lea rcx, [0x18007f660]
call fcn.180050b14
lea rcx, [0x1800a40a0]
call fcn.1800505cc
mov rcx, qword [rsi + 0x40]
mov rax, qword [0x1800a0e10]
cmp qword [rcx + 8], rax
jne 0x18000ae02
cmp dword [rsi + 0x38], 0x2733
jne 0x18000ae02
xor eax, eax
mov dword [rbp - 0x51], eax
lea rax, [0x1800a0df8]
mov qword [rbp - 0x49], rax
movups xmm0, xmmword [rbp - 0x51]
movups xmmword [rsi + 0x38], xmm0
mov rdi, qword [r15]
lea rbx, [r14 + 0x30]
mov qword [rbp - 0x41], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rbp - 0x39], 1
cmp byte [r14 + 0x1a8], 0
je 0x18000afbe
mov rdx, rsi
mov rcx, qword [r14 + 0x28]
call fcn.180007970
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x18000ae0e
lea rcx, [r14 + 0x110]
mov r8, rsi
mov rdx, rdi
call fcn.18000cca0
mov rcx, qword [r14 + 0x28]
lock inc dword [rcx + 0x30]
test al, al
je 0x18000afe6
lea rcx, [r14 + 0x58]
call fcn.1800093c0
nop
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x18000ae0e