Function at 0x14004efb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, r8
mov rcx, qword [rcx + 0x10]
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x14004effe
cmp qword [rcx + 0x18], 0x10
jb 0x14004efd7
mov rcx, qword [rcx]
lea r9, str.ygx_kservice.msg.CMD_KSVR_CLI_REPORTCLIENTEVENT_request.name
mov r8d, 1
mov edx, eax
call fcn.1400ed210
mov rcx, qword [rdi + 0x10]
lea rdx, [rbx + 1]
mov byte [rbx], 0xa
call fcn.1400ceec0
mov rbx, rax
movsxd rax, dword [rdi + 0x30]
test eax, eax
je 0x14004f03c
mov byte [rbx], reloc.WS2_32.dll_recv
mov rcx, rax
inc rbx
cmp rax, 0x80
jb 0x14004f037
nop word [rax + rax]
movzx eax, cl
shr rcx, 7
or al, 0x80
mov byte [rbx], al
inc rbx
cmp rcx, 0x80
jae 0x14004f020
mov byte [rbx], cl
inc rbx
movsxd rax, dword [rdi + 0x34]
test eax, eax
je 0x14004f07c
mov byte [rbx], 0x18
mov rcx, rax
inc rbx
cmp rax, 0x80
jb 0x14004f077
nop word [rax + rax]
movzx eax, cl
shr rcx, 7
or al, 0x80
mov byte [rbx], al
inc rbx
cmp rcx, 0x80
jae 0x14004f060
mov byte [rbx], cl
inc rbx
movsxd rax, dword [rdi + 0x38]
test eax, eax
je 0x14004f0bc
mov byte [rbx], 0x20
mov rcx, rax
inc rbx
cmp rax, 0x80
jb 0x14004f0b7
nop word [rax + rax]
movzx eax, cl
shr rcx, 7
or al, 0x80
mov byte [rbx], al
inc rbx
cmp rcx, 0x80
jae 0x14004f0a0
mov byte [rbx], cl
inc rbx
mov ecx, dword [rdi + 0x3c]
test ecx, ecx
je 0x14004f0eb
mov byte [rbx], 0x28
inc rbx
cmp ecx, 0x80
jb 0x14004f0e6
movzx eax, cl
shr ecx, 7
or al, 0x80
mov byte [rbx], al
inc rbx
cmp ecx, 0x80
jae 0x14004f0d1
mov byte [rbx], cl
inc rbx
mov ecx, dword [rdi + 0x40]
test ecx, ecx
je 0x14004f11a
mov byte [rbx], 0x30
inc rbx
cmp ecx, 0x80
jb 0x14004f115
movzx eax, cl
shr ecx, 7
or al, 0x80
mov byte [rbx], al
inc rbx
cmp ecx, 0x80
jae 0x14004f100
mov byte [rbx], cl
inc rbx
mov rcx, qword [rdi + 0x18]
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x14004f158
cmp qword [rcx + 0x18], 0x10
jb 0x14004f131
mov rcx, qword [rcx]
lea r9, str.ygx_kservice.msg.CMD_KSVR_CLI_REPORTCLIENTEVENT_request.content
mov r8d, 1
mov edx, eax
call fcn.1400ed210
mov rcx, qword [rdi + 0x18]
lea rdx, [rbx + 1]
mov byte [rbx], 0x3a
call fcn.1400ceec0
mov rbx, rax
mov rcx, qword [rdi + 0x20]
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x14004f196
cmp qword [rcx + 0x18], 0x10
jb 0x14004f16f
mov rcx, qword [rcx]
lea r9, str.ygx_kservice.msg.CMD_KSVR_CLI_REPORTCLIENTEVENT_request.server
mov r8d, 1
mov edx, eax
call fcn.1400ed210
mov rcx, qword [rdi + 0x20]
lea rdx, [rbx + 1]
mov byte [rbx], 0x42
call fcn.1400ceec0
mov rbx, rax
mov rcx, qword [rdi + 0x28]
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x14004f1d4
cmp qword [rcx + 0x18], 0x10
jb 0x14004f1ad
mov rcx, qword [rcx]
lea r9, str.ygx_kservice.msg.CMD_KSVR_CLI_REPORTCLIENTEVENT_request.mac
mov r8d, 1
mov edx, eax
call fcn.1400ed210
mov rcx, qword [rdi + 0x28]
lea rdx, [rbx + 1]
mov byte [rbx], 0x4a
call fcn.1400ceec0
mov rbx, rax
test byte [rdi + 8], 1
je 0x14004f1fd
cmp byte [0x14024a158], 0
je 0x14004f1fd
mov rcx, qword [rdi + 8]
mov rdx, rbx
and rcx, 0xfffffffffffffffe
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400ea080
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret