Function at 0x180002c80
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 [0x180240300]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [0x180251320]
xor ebx, ebx
mov rbp, rcx
mov edi, ebx
mov ecx, 4
nop word [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 0x180002f24
add edi, eax
mov ecx, 4
sub ecx, edi
cmp edi, 4
jl 0x180002cc0
mov rsi, qword [0x180251320]
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 0x180002ed6
add edi, eax
mov ecx, 8
sub ecx, edi
cmp edi, 8
jl 0x180002d00
mov rsi, qword [0x180251320]
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 0x180002fef
add edi, eax
mov ecx, 1
sub ecx, edi
cmp edi, 1
jl 0x180002d40
mov edi, dword [rsp + 0x24]
cmp edi, 0x1f40
jle 0x180002db7
lea rdx, str.invalid_packet_n
lea rcx, [0x18024f1a0]
call fcn.180005290
mov eax, 2
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.18017b580
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov rsi, qword [0x180251320]
test edi, edi
jle 0x180002dfc
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 0x180002f94
add ebx, eax
mov eax, edi
sub eax, ebx
cmp ebx, edi
jl 0x180002dd0
mov edi, dword [rsp + 0x24]
movzx eax, byte [rsp + 0x20]
cmp al, 0x55
jne 0x180002e1c
mov rdx, qword [rsp + 0x28]
mov r8d, edi
mov rcx, rbp
call fcn.1800208c0
xor eax, eax
jmp 0x180002d95
cmp al, 0x70
jne 0x180002ebc
mov rsi, qword [rsp + 0x28]
lea rcx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.180157fb8
test eax, eax
jne 0x180002fcf
cmp dword [0x1802410dc], 0x7fffffff
je 0x180002fda
mov rax, qword [0x1802517a0]
mov rbx, qword [rax]
cmp rbx, rax
je 0x180002ea9
nop dword [rax]
mov rcx, qword [rbx + 0x10]
cmp qword [rcx], rsi
je 0x180002e84
mov rbx, qword [rbx]
cmp rbx, rax
jne 0x180002e60
lea rcx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.180157fc0
xor eax, eax
jmp 0x180002d95
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 0x180002ea9
mov rcx, qword [rbx + 0x10]
mov rcx, qword [rcx + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
lea rcx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.180157fc0
xor eax, eax
jmp 0x180002d95
lea rdx, str.unk___n
lea rcx, [0x18024f1a0]
call fcn.180005290
xor eax, eax
jmp 0x180002d95
lea rdx, str.error_4_:
lea rcx, [0x18024f1a0]
call fcn.180005290
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.180003040
mov rcx, rax
lea rdx, reloc.WS2_32.dll_ioctlsocket
call fcn.180005290
lea rdx, str.error_2_n
lea rcx, [0x18024f1a0]
call fcn.180005290
call fcn.180002a70
int3
lea rdx, str.error_4_:
lea rcx, [0x18024f1a0]
call fcn.180005290
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.180003040
mov rcx, rax
lea rdx, reloc.WS2_32.dll_ioctlsocket
call fcn.180005290
lea rdx, str.error_1
lea rcx, [0x18024f1a0]
call fcn.180005290
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.180003040
mov rcx, rax
lea rdx, reloc.WS2_32.dll_ioctlsocket
call fcn.180005290
call fcn.180002a70
int3
lea rdx, str.error_4_:
lea rcx, [0x18024f1a0]
call fcn.180005290
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.180003040
mov rcx, rax
lea rdx, reloc.WS2_32.dll_ioctlsocket
call fcn.180005290
call fcn.180002a70
int3
mov ecx, 5
call fcn.1801576b4
int3
mov ecx, 6
mov dword [0x1802410dc], 0x7ffffffe
call fcn.1801576b4
int3
lea rdx, str.error_4_:
lea rcx, [0x18024f1a0]
call fcn.180005290
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.180003040
mov rcx, rax
lea rdx, reloc.WS2_32.dll_ioctlsocket
call fcn.180005290
lea rdx, str.error_3_n
lea rcx, [0x18024f1a0]
call fcn.180005290
call fcn.180002a70
int3