Function at 0x18000cf30
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbp
push rdi
push r14
push r15
lea rbp, [rsp - 0x58]
sub rsp, 0x158
mov rax, qword [0x180067048]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov r14, rdx
mov word [rsp + 0x28], 0x105
mov rdi, r8
mov byte [rsp + 0x2a], 0
mov r15d, 1
lea rdx, [rsp + 0x28]
xor r9d, r9d
mov rcx, r14
lea r8d, [r15 + 2]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 3
jne 0x18000d1de
xor r9d, r9d
lea r8d, [r15 + 1]
lea rdx, [rsp + 0x20]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 2
jne 0x18000d1de
cmp byte [rsp + 0x20], 5
jne 0x18000d1de
cmp byte [rsp + 0x21], 0xff
je 0x18000d1de
mov qword [rsp + 0x180], rbx
mov qword [rsp + 0x150], rsi
mov rsi, 0xffffffffffffffff
mov rax, rsi
inc rax
cmp byte [rdi + rax], 0
jne 0x18000cfd5
dec eax
movsxd rbx, eax
xor al, al
test rbx, rbx
js 0x18000d00f
nop word [rax + rax]
movzx eax, byte [rbx + rdi]
cmp al, 0x2e
je 0x18000d008
movsx ecx, al
call fcn.180040e38
test eax, eax
jne 0x18000d09d
sub rbx, r15
jns 0x18000cff0
xor al, al
xor r9d, r9d
mov word [rsp + 0x24], 0x105
add al, al
mov byte [rsp + 0x26], 0
inc al
lea rdx, [rsp + 0x24]
mov rcx, r14
mov byte [rsp + 0x27], al
lea r8d, [r9 + 4]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 4
jne 0x18000d1ce
movzx ecx, byte [rsp + 0x27]
sub ecx, r15d
je 0x18000d0a6
cmp ecx, 2
jne 0x18000d1ce
inc rsi
cmp byte [rdi + rsi], 0
jne 0x18000d054
xor r9d, r9d
mov byte [rsp + 0x20], sil
mov r8d, r15d
lea rdx, [rsp + 0x20]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
cmp eax, r15d
jne 0x18000d1ce
movzx r8d, byte [rsp + 0x20]
xor r9d, r9d
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
movzx ecx, byte [rsp + 0x20]
cmp eax, ecx
jmp 0x18000d0d3
movzx eax, r15b
jmp 0x18000d00f
mov rcx, rdi
mov dword [rsp + 0x2c], 0
call qword [sym.imp.WS2_32.dll_inet_addr]
xor r9d, r9d
lea rdx, [rsp + 0x2c]
mov rcx, r14
mov dword [rsp + 0x2c], eax
lea r8d, [r9 + 4]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 4
jne 0x18000d1ce
movzx ecx, word [rdi + 0x100]
call qword [sym.imp.WS2_32.dll_htons]
xor r9d, r9d
lea rdx, [rsp + 0x28]
mov rcx, r14
mov word [rsp + 0x28], ax
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 2
jne 0x18000d1ce
xor r9d, r9d
lea r8d, [rax + 2]
lea rdx, [rsp + 0x24]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 4
jne 0x18000d1ce
cmp byte [rsp + 0x24], 5
jne 0x18000d1ce
movzx ecx, byte [rsp + 0x27]
mov byte [rsp + 0x20], 0
sub ecx, r15d
je 0x18000d178
sub ecx, 2
je 0x18000d153
cmp ecx, r15d
jne 0x18000d1ce
mov bl, reloc.WS2_32.dll_recv
jmp 0x18000d17a
xor r9d, r9d
lea rdx, [rsp + 0x20]
mov r8d, r15d
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, r15d
sete al
test al, al
je 0x18000d1ce
movzx ebx, byte [rsp + 0x20]
jmp 0x18000d17e
mov bl, 4
mov byte [rsp + 0x20], bl
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x101
call fcn.180038c70
movzx r8d, bl
lea rdx, [rsp + 0x30]
xor r9d, r9d
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
movzx edx, byte [rsp + 0x20]
cmp eax, edx
jne 0x18000d1ce
xor r9d, r9d
lea rdx, [rsp + 0x28]
mov rcx, r14
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 2
jne 0x18000d1ce
movzx r15d, byte [rsp + 0x25]
mov rbx, qword [rsp + 0x180]
mov rsi, qword [rsp + 0x150]
mov eax, r15d
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.1800377f0
add rsp, 0x158
pop r15
pop r14
pop rdi
pop rbp
ret