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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x180243280]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [0x180254170]
xor ebx, ebx
mov rbp, rcx
mov edi, ebx
lea ecx, [rbx + 4]
nop dword [rax]
nop dword [rax + rax]
movsxd rax, edi
lea rdx, [rsp + 0x24]
mov r8d, ecx
add rdx, rax
xor r9d, r9d
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x180002fc4
add edi, eax
mov ecx, 4
sub ecx, edi
cmp edi, 4
jl 0x180002d60
mov rsi, qword [0x180254170]
mov edi, ebx
mov ecx, 8
nop
movsxd rax, edi
lea rdx, [rsp + 0x28]
mov r8d, ecx
add rdx, rax
xor r9d, r9d
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x180002f76
add edi, eax
mov ecx, 8
sub ecx, edi
cmp edi, 8
jl 0x180002da0
mov rsi, qword [0x180254170]
mov edi, ebx
mov ecx, 1
nop
movsxd rax, edi
lea rdx, [rsp + 0x20]
mov r8d, ecx
add rdx, rax
xor r9d, r9d
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x18000308f
add edi, eax
mov ecx, 1
sub ecx, edi
cmp edi, 1
jl 0x180002de0
mov edi, dword [rsp + 0x24]
cmp edi, 0x1f40
jle 0x180002e57
lea rdx, str.invalid_packet_n
lea rcx, [0x180252080]
call fcn.180005310
mov eax, 2
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.18017ae80
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov rsi, qword [0x180254170]
test edi, edi
jle 0x180002e9c
mov eax, edi
nop dword [rax]
nop dword [rax + rax]
movsxd rdx, ebx
xor r9d, r9d
add rdx, rbp
mov r8d, eax
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x180003034
add ebx, eax
mov eax, edi
sub eax, ebx
cmp ebx, edi
jl 0x180002e70
mov edi, dword [rsp + 0x24]
movzx eax, byte [rsp + 0x20]
cmp al, 0x55
jne 0x180002ebc
mov rdx, qword [rsp + 0x28]
mov r8d, edi
mov rcx, rbp
call fcn.180020450
xor eax, eax
jmp 0x180002e35
cmp al, 0x70
jne 0x180002f5c
mov rsi, qword [rsp + 0x28]
lea rcx, [0x1802541e0]
call fcn.180156e98
test eax, eax
jne 0x18000306f
cmp dword [0x18025422c], 0x7fffffff
je 0x18000307a
mov rax, qword [0x1802542a0]
mov rbx, qword [rax]
cmp rbx, rax
je 0x180002f49
nop dword [rax]
mov rcx, qword [rbx + 0x10]
cmp qword [rcx], rsi
je 0x180002f24
mov rbx, qword [rbx]
cmp rbx, rax
jne 0x180002f00
lea rcx, [0x1802541e0]
call fcn.180156ea0
xor eax, eax
jmp 0x180002e35
mov rcx, qword [rcx + 8]
xor r9d, r9d
mov r8d, edi
mov rdx, rbp
call qword [sym.imp.WS2_32.dll_send]
test edi, edi
jne 0x180002f49
mov rcx, qword [rbx + 0x10]
mov rcx, qword [rcx + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
lea rcx, [0x1802541e0]
call fcn.180156ea0
xor eax, eax
jmp 0x180002e35
lea rdx, str.unk___n
lea rcx, [0x180252080]
call fcn.180005310
xor eax, eax
jmp 0x180002e35
lea rdx, str.error_4_:
lea rcx, [0x180252080]
call fcn.180005310
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.1800030e0
mov rcx, rax
lea rdx, reloc.WS2_32.dll_ioctlsocket
call fcn.180005310
lea rdx, str.error_2_n
lea rcx, [0x180252080]
call fcn.180005310
call fcn.180002b10
int3
lea rdx, str.error_4_:
lea rcx, [0x180252080]
call fcn.180005310
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.1800030e0
mov rcx, rax
lea rdx, reloc.WS2_32.dll_ioctlsocket
call fcn.180005310
lea rdx, str.error_1
lea rcx, [0x180252080]
call fcn.180005310
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.1800030e0
mov rcx, rax
lea rdx, reloc.WS2_32.dll_ioctlsocket
call fcn.180005310
call fcn.180002b10
int3
lea rdx, str.error_4_:
lea rcx, [0x180252080]
call fcn.180005310
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.1800030e0
mov rcx, rax
lea rdx, reloc.WS2_32.dll_ioctlsocket
call fcn.180005310
call fcn.180002b10
int3
mov ecx, 5
call fcn.18015721c
int3
mov ecx, 6
mov dword [0x18025422c], 0x7ffffffe
call fcn.18015721c
int3
lea rdx, str.error_4_:
lea rcx, [0x180252080]
call fcn.180005310
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.1800030e0
mov rcx, rax
lea rdx, reloc.WS2_32.dll_ioctlsocket
call fcn.180005310
lea rdx, str.error_3_n
lea rcx, [0x180252080]
call fcn.180005310
call fcn.180002b10
int3