Function at 0x4a9c83e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 0x20], ecx
mov byte [ebp - 9], 0
mov byte [ebp - 1], 0
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0x30]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
cdq
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
cmp eax, dword [edx + 0x54]
jl 0x4a9c8434
jg 0x4a9c8425
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
cmp edx, dword [ecx + 0x50]
jb 0x4a9c8434
mov eax, dword [ebp - 0x20]
mov byte [eax + 0x90], 1
jmp 0x4a9c8570
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
movzx eax, word [edx + ecx*2]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
and ecx, 0xfffff800
cmp ecx, 0xd800
jne 0x4a9c851a
mov edx, dword [ebp - 0x10]
and edx, 0x400
jne 0x4a9c84bf
mov eax, dword [ebp + 8]
add eax, 1
cdq
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
cmp eax, dword [edx + 0x50]
jne 0x4a9c848a
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x30]
cmp edx, dword [ecx + 0x54]
je 0x4a9c84bd
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dx, word [ecx + eax*2 + 2]
mov word [ebp - 0x14], dx
movzx eax, word [ebp - 0x14]
and eax, 0xfffffc00
cmp eax, 0xdc00
jne 0x4a9c84bd
mov ecx, dword [ebp - 0x10]
shl ecx, 0xa
movzx edx, word [ebp - 0x14]
lea eax, [ecx + edx - 0x35fdc00]
mov dword [ebp - 0x10], eax
jmp 0x4a9c851a
mov eax, dword [ebp + 8]
cdq
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x3c]
cmp eax, dword [edx + 0x4c]
jl 0x4a9c851a
jg 0x4a9c84e7
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x40]
cmp edx, dword [ecx + 0x48]
jbe 0x4a9c851a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dx, word [ecx + eax*2 - 2]
mov word [ebp - 0x14], dx
movzx eax, word [ebp - 0x14]
and eax, 0xfffffc00
cmp eax, 0xd800
jne 0x4a9c851a
movzx ecx, word [ebp - 0x14]
shl ecx, 0xa
mov edx, dword [ebp - 0x10]
lea eax, [ecx + edx - 0x35fdc00]
mov dword [ebp - 0x10], eax
push 0xb
mov ecx, dword [ebp - 0x10]
push ecx
call sub.icuuc51.dll_u_hasBinaryProperty_51
add esp, 8
movsx edx, al
test edx, edx
jne 0x4a9c8543
mov eax, dword [ebp - 0x10]
push eax
call sub.icuuc51.dll_u_charType_51
add esp, 4
movsx ecx, al
cmp ecx, 0x10
jne 0x4a9c854a
xor al, al
jmp 0x4a9c8694
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 0x54]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + 0x54]
mov ecx, dword [ecx + 4]
mov edx, dword [eax]
mov eax, dword [edx + 0x18]
call eax
mov byte [ebp - 1], al
mov byte [ebp - 0xa], 0
mov eax, dword [ebp + 8]
cdq
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x48]
cmp eax, dword [edx + 0x4c]
jg 0x4a9c85a1
jl 0x4a9c859c
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
cmp edx, dword [ecx + 0x48]
ja 0x4a9c85a1
jmp 0x4a9c8684
mov eax, dword [ebp + 8]
sub eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
movzx eax, word [edx + ecx*2]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
and ecx, 0xfffffc00
cmp ecx, 0xdc00
jne 0x4a9c862c
mov eax, dword [ebp + 8]
cdq
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x54]
cmp eax, dword [edx + 0x4c]
jl 0x4a9c862c
jg 0x4a9c85f0
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x58]
cmp edx, dword [ecx + 0x48]
jbe 0x4a9c862c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dx, word [ecx + eax*2 - 2]
mov word [ebp - 0x1c], dx
movzx eax, word [ebp - 0x1c]
and eax, 0xfffffc00
cmp eax, 0xd800
jne 0x4a9c862c
mov ecx, dword [ebp + 8]
sub ecx, 1
mov dword [ebp + 8], ecx
movzx edx, word [ebp - 0x1c]
shl edx, 0xa
mov eax, dword [ebp - 0x18]
lea ecx, [edx + eax - 0x35fdc00]
mov dword [ebp - 0x18], ecx
push 0xb
mov edx, dword [ebp - 0x18]
push edx
call sub.icuuc51.dll_u_hasBinaryProperty_51
add esp, 8
movsx eax, al
test eax, eax
jne 0x4a9c867f
mov ecx, dword [ebp - 0x18]
push ecx
call sub.icuuc51.dll_u_charType_51
add esp, 4
movsx edx, al
cmp edx, 0x10
je 0x4a9c867f
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 4]
mov eax, dword [edx + 0x54]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 4]
mov edx, dword [eax + 0x54]
mov eax, dword [edx + 4]
mov edx, dword [ecx]
mov ecx, eax
mov eax, dword [edx + 0x18]
call eax
mov byte [ebp - 0xa], al
jmp 0x4a9c8684
jmp 0x4a9c8574
movsx ecx, byte [ebp - 1]
movsx edx, byte [ebp - 0xa]
xor ecx, edx
mov byte [ebp - 9], cl
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret 4