Function at 0x180009e60
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x18004f040]
xor rax, rsp
mov qword [rbp + 0x180], rax
xor eax, eax
mov byte [rsp + 0x30], r9b
xorps xmm0, xmm0
mov dword [rsp + 0x34], r8d
xorps xmm1, xmm1
mov qword [rsp + 0x48], rax
xor edi, edi
movzx r15d, r9b
lea ebx, [rax + 0x10]
mov rsi, rdx
mov r13, rcx
mov r14d, edi
movups xmmword [rbp + 0x170], xmm0
movups xmmword [rsp + 0x38], xmm1
nop dword [rax]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x68], rsi
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x60], 1
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x50], 0xa
lea ecx, [rsi + 1]
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x18000a238
mov r8d, ebx
movsxd rax, r14d
lea rdx, [rbp + 0x170]
sub r8d, r14d
add rdx, rax
xor r9d, r9d
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x18000a238
add r14d, eax
cmp r14d, ebx
jl 0x180009ed0
jne 0x18000a238
cmp dword [rbp + 0x170], 0x1985
jne 0x18000a22f
cmp dword [rbp + 0x174], 0x425
jne 0x18000a22f
movss xmm0, dword [rbp + 0x178]
lea r8, [rsp + 0x50]
mov eax, dword [rsp + 0x34]
mov edx, 0x8004667e
mov byte [rsp + 0x48], r15b
mov rcx, rsi
movss dword [rsp + 0x44], xmm0
mov r14d, ebx
mov qword [rsp + 0x38], rsi
mov r15d, edi
mov dword [rbp + 0x170], 0x1989
mov dword [rbp + 0x174], 0x104
mov dword [rbp + 0x178], 0x4bb13d70
mov dword [rbp + 0x17c], eax
mov dword [rsp + 0x50], edi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
nop
movsxd rax, r15d
lea rdx, [rbp + 0x170]
add rdx, rax
xor r9d, r9d
mov r8d, r14d
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x180009feb
add r15d, eax
sub r14d, eax
test r14d, r14d
jg 0x180009fc0
mov r14d, edi
nop
lea rax, [rsp + 0x50]
mov qword [rsp + 0x68], rsi
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x60], 1
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x50], 0x1e
lea ecx, [rsi + 1]
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x18000a244
mov r8d, ebx
movsxd rax, r14d
lea rdx, [rbp + 0x170]
sub r8d, r14d
add rdx, rax
xor r9d, r9d
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x18000a244
add r14d, eax
cmp r14d, ebx
jl 0x180009ff0
jne 0x18000a244
cmp byte [rsp + 0x30], dil
je 0x18000a0d1
cmp dword [rbp + 0x170], 0x4dc98a7
je 0x18000a0d1
xorps xmm0, xmm0
mov dword [rsp + 0x50], edi
movups xmmword [rbp + 0x170], xmm0
lea r8, [rsp + 0x50]
mov dword [rbp + 0x170], 1
mov edx, 0x8004667e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
nop
movsxd rax, edi
lea rdx, [rbp + 0x170]
add rdx, rax
xor r9d, r9d
mov r8d, ebx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x18000a244
add edi, eax
sub ebx, eax
test ebx, ebx
jg 0x18000a0a0
jmp 0x18000a244
lea rcx, [0x180054de8]
mov eax, dword [rbp + 0x174]
xorps xmm0, xmm0
mov dword [rsp + 0x40], eax
movups xmmword [rbp + 0x170], xmm0
cmp dword [rsp + 0x34], edi
jne 0x18000a18e
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, 0x28
call fcn.180011120
mov qword [rsp + 0x50], rax
mov rdx, rax
xorps xmm1, xmm1
xor eax, eax
movups xmmword [rdx], xmm1
movups xmmword [rdx + 0x10], xmm1
mov qword [rdx + 0x20], rax
cmp dword [0x180054dd0], eax
jne 0x18000a134
mov qword [0x180054dd8], rdx
mov qword [0x180054de0], rdx
movups xmm0, xmmword [rsp + 0x38]
lea rcx, [0x180054de8]
movsd xmm1, qword [rsp + 0x48]
movups xmmword [rdx + 0x10], xmm0
movsd qword [rdx + 0x20], xmm1
mov rax, qword [0x180054de0]
mov qword [rax + 8], rdx
mov rax, qword [0x180054de0]
mov qword [rdx], rax
mov rax, qword [0x180054dd8]
mov qword [rdx + 8], rax
mov rax, qword [0x180054dd8]
mov qword [rax], rdx
inc dword [0x180054dd0]
mov qword [0x180054de0], rdx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x18000a1da
mov r14d, edi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x180054dd0]
mov ecx, edi
mov rax, qword [0x180054dd8]
test edx, edx
jle 0x18000a1c6
nop word [rax + rax]
cmp qword [rax + 0x10], r13
je 0x18000a1c2
mov rax, qword [rax + 8]
inc ecx
cmp ecx, edx
jl 0x18000a1b0
jmp 0x18000a1c6
mov r14d, dword [rax + 0x18]
lea rcx, [0x180054de8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [rbp + 0x174], r14d
lea r8, [rsp + 0x50]
mov dword [rsp + 0x50], edi
mov edx, 0x8004667e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
nop dword [rax]
nop word [rax + rax]
movsxd rax, edi
lea rdx, [rbp + 0x170]
add rdx, rax
xor r9d, r9d
mov r8d, ebx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x18000a228
add edi, eax
sub ebx, eax
test ebx, ebx
jg 0x18000a200
mov eax, 1
jmp 0x18000a246
lea rdx, str.protocol_step_1_flag_error._r_n
jmp 0x18000a23f
lea rdx, str.protocol_step_1_recv_error._r_n
call fcn.18000a280
xor eax, eax
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.180011100
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret