Function at 0x1800029b0
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 [0x1801d72c0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [0x1801e4050]
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 0x180002c54
add edi, eax
mov ecx, 4
sub ecx, edi
cmp edi, 4
jl 0x1800029f0
mov rsi, qword [0x1801e4050]
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 0x180002c06
add edi, eax
mov ecx, 8
sub ecx, edi
cmp edi, 8
jl 0x180002a30
mov rsi, qword [0x1801e4050]
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 0x180002d1f
add edi, eax
mov ecx, 1
sub ecx, edi
cmp edi, 1
jl 0x180002a70
mov edi, dword [rsp + 0x24]
cmp edi, 0x1f40
jle 0x180002ae7
lea rdx, str.invalid_packet_n
lea rcx, [0x1801e2480]
call fcn.180004d80
mov eax, 2
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1801525e0
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov rsi, qword [0x1801e4050]
test edi, edi
jle 0x180002b2c
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 0x180002cc4
add ebx, eax
mov eax, edi
sub eax, ebx
cmp ebx, edi
jl 0x180002b00
mov edi, dword [rsp + 0x24]
movzx eax, byte [rsp + 0x20]
cmp al, 0x55
jne 0x180002b4c
mov rdx, qword [rsp + 0x28]
mov r8d, edi
mov rcx, rbp
call fcn.18001ea20
xor eax, eax
jmp 0x180002ac5
cmp al, 0x70
jne 0x180002bec
mov rsi, qword [rsp + 0x28]
lea rcx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.18014f528
test eax, eax
jne 0x180002cff
cmp dword [0x1801d7fdc], 0x7fffffff
je 0x180002d0a
mov rax, qword [0x1801e44d0]
mov rbx, qword [rax]
cmp rbx, rax
je 0x180002bd9
nop dword [rax]
mov rcx, qword [rbx + 0x10]
cmp qword [rcx], rsi
je 0x180002bb4
mov rbx, qword [rbx]
cmp rbx, rax
jne 0x180002b90
lea rcx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.18014f530
xor eax, eax
jmp 0x180002ac5
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 0x180002bd9
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.18014f530
xor eax, eax
jmp 0x180002ac5
lea rdx, str.unk___n
lea rcx, [0x1801e2480]
call fcn.180004d80
xor eax, eax
jmp 0x180002ac5
lea rdx, str.error_4_:
lea rcx, [0x1801e2480]
call fcn.180004d80
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.180002d70
mov rcx, rax
lea rdx, reloc.WS2_32.dll_ioctlsocket
call fcn.180004d80
lea rdx, str.error_2_n
lea rcx, [0x1801e2480]
call fcn.180004d80
call fcn.1800027a0
int3
lea rdx, str.error_4_:
lea rcx, [0x1801e2480]
call fcn.180004d80
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.180002d70
mov rcx, rax
lea rdx, reloc.WS2_32.dll_ioctlsocket
call fcn.180004d80
lea rdx, str.error_1
lea rcx, [0x1801e2480]
call fcn.180004d80
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.180002d70
mov rcx, rax
lea rdx, reloc.WS2_32.dll_ioctlsocket
call fcn.180004d80
call fcn.1800027a0
int3
lea rdx, str.error_4_:
lea rcx, [0x1801e2480]
call fcn.180004d80
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.180002d70
mov rcx, rax
lea rdx, reloc.WS2_32.dll_ioctlsocket
call fcn.180004d80
call fcn.1800027a0
int3
mov ecx, 5
call fcn.18014ecd4
int3
mov ecx, 6
mov dword [0x1801d7fdc], 0x7ffffffe
call fcn.18014ecd4
int3
lea rdx, str.error_4_:
lea rcx, [0x1801e2480]
call fcn.180004d80
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.180002d70
mov rcx, rax
lea rdx, reloc.WS2_32.dll_ioctlsocket
call fcn.180004d80
lea rdx, str.error_3_n
lea rcx, [0x1801e2480]
call fcn.180004d80
call fcn.1800027a0
int3