Function at 0x180002280
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 [0x18004a1b0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [0x18004df70]
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 0x180002513
add edi, eax
mov ecx, 4
sub ecx, edi
cmp edi, 4
jl 0x1800022c0
mov rsi, qword [0x18004df70]
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 0x1800024c6
add edi, eax
mov ecx, 8
sub ecx, edi
cmp edi, 8
jl 0x180002300
mov rsi, qword [0x18004df70]
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 0x1800025c3
add edi, eax
mov ecx, 1
sub ecx, edi
cmp edi, 1
jl 0x180002340
mov edi, dword [rsp + 0x24]
cmp edi, 0x1f40
jle 0x1800023b7
lea rdx, str.invalid_packet_n
lea rcx, [0x18004c3a0]
call fcn.180004d70
mov eax, 2
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.18000e350
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov rsi, qword [0x18004df70]
test edi, edi
jle 0x1800023fc
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 0x180002581
add ebx, eax
mov eax, edi
sub eax, ebx
cmp ebx, edi
jl 0x1800023d0
mov edi, dword [rsp + 0x24]
movzx eax, byte [rsp + 0x20]
cmp al, 0x55
jne 0x18000241c
mov rdx, qword [rsp + 0x28]
mov r8d, edi
mov rcx, rbp
call fcn.180007620
xor eax, eax
jmp 0x180002395
cmp al, 0x70
jne 0x1800024ac
mov rsi, qword [rsp + 0x28]
lea rcx, [0x18004df90]
call fcn.18000a170
test eax, eax
jne 0x1800025bb
mov rax, qword [0x18004e030]
mov rbx, qword [rax]
cmp rbx, rax
je 0x180002499
nop dword [rax]
mov rcx, qword [rbx + 0x10]
cmp qword [rcx], rsi
je 0x180002474
mov rbx, qword [rbx]
cmp rbx, rax
jne 0x180002450
lea rcx, [0x18004df90]
call fcn.18000a194
xor eax, eax
jmp 0x180002395
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 0x180002499
mov rcx, qword [rbx + 0x10]
mov rcx, qword [rcx + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
lea rcx, [0x18004df90]
call fcn.18000a194
xor eax, eax
jmp 0x180002395
lea rdx, str.unk___n
lea rcx, [0x18004c3a0]
call fcn.180004d70
xor eax, eax
jmp 0x180002395
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.error_4_:
mov ebx, eax
lea rcx, [0x18004c3a0]
call fcn.180004d70
mov rcx, rax
mov edx, ebx
call fcn.180002610
mov rcx, rax
lea rdx, [0x180041b90]
call fcn.180004d70
lea rdx, str.error_2_n
lea rcx, [0x18004c3a0]
call fcn.180004d70
call fcn.1800020f0
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.error_4_:
mov ebx, eax
lea rcx, [0x18004c3a0]
call fcn.180004d70
mov rcx, rax
mov edx, ebx
call fcn.180002610
mov rcx, rax
lea rdx, [0x180041b90]
call fcn.180004d70
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.error_1
mov ebx, eax
lea rcx, [0x18004c3a0]
call fcn.180004d70
mov rcx, rax
mov edx, ebx
call fcn.180002610
mov rcx, rax
lea rdx, [0x180041b90]
call fcn.180004d70
call fcn.1800020f0
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.error_4_:
mov ebx, eax
lea rcx, [0x18004c3a0]
call fcn.180004d70
mov rcx, rax
mov edx, ebx
call fcn.180002610
mov rcx, rax
lea rdx, [0x180041b90]
call fcn.180004d70
call fcn.1800020f0
int3
mov ecx, eax
call fcn.18000c32c
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.error_4_:
mov ebx, eax
lea rcx, [0x18004c3a0]
call fcn.180004d70
mov rcx, rax
mov edx, ebx
call fcn.180002610
mov rcx, rax
lea rdx, [0x180041b90]
call fcn.180004d70
lea rdx, str.error_3_n
lea rcx, [0x18004c3a0]
call fcn.180004d70
call fcn.1800020f0
int3