Function at 0x497cd0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, ecx
push edi
push str.map03.area
lea ecx, [esi + 0x58]
call fcn.0041a0a0
movaps xmm0, xmmword [0x54cc30]
lea ebx, [esi + 0x1ec]
mov eax, dword [ebp + 8]
mov dword [esi + 0x14c], 0
mov dword [ebx], 0
mov dword [esi + 0x150], 0
mov dword [esi + 0x1f0], 0
mov dword [esi + 0x154], 0
mov dword [esi + 0x1f4], 0
mov dword [esi + 0x158], 0
mov dword [esi + 0x1f8], 0
mov dword [esi + 0x15c], 0
mov dword [esi + 0x1fc], 0
mov dword [esi + 0x160], 0
mov dword [esi + 0x200], 0
mov dword [esi + 0x164], 0
mov dword [esi + 0x204], 0
mov dword [esi + 0x168], 0
mov dword [esi + 0x208], 0
mov dword [ebp - 8], 8
mov dword [ebp - 4], 9
movups xmmword [ebp - 0x28], xmm0
movaps xmm0, xmmword [0x54cc80]
movups xmmword [ebp - 0x18], xmm0
test eax, eax
jne 0x497eb9
xor edi, edi
mov dword [ebp + 8], edi
nop
mov eax, dword [esi]
mov ecx, esi
mov edi, dword [ebp + edi*4 - 0x28]
add edi, 0xa
push edi
mov eax, dword [eax + 0xbc]
call eax
xor edx, edx
movzx eax, al
mov ecx, 0x64
div ecx
push edi
neg edx
mov ecx, esi
sbb edx, edx
neg edx
mov dword [ebx - 0xa0], edx
mov eax, dword [esi]
mov eax, dword [eax + 0xbc]
call eax
mov edi, dword [ebp + 8]
movzx ecx, al
mov eax, 0x51eb851f
mul ecx
mov eax, dword [edi*4 + 0x53e63c]
mov ecx, esi
shr edx, 5
mov dword [ebx], edx
mov dword [ebx - 0x40], eax
mov eax, edi
push 0
push 0
or eax, 0x100
mov dword [ebx - 0x20], edi
push eax
call fcn.004977f0
mov ecx, dword [ebx - 0x114]
push 1
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ecx, dword [ebx - 0x114]
push 0xff
mov eax, dword [ecx]
call dword [eax + 0x38]
inc edi
lea ebx, [ebx + 4]
mov dword [ebp + 8], edi
cmp edi, 3
jl 0x497dc0
mov edx, dword [esi]
mov ecx, esi
mov eax, dword [ebp - 0x1c]
add eax, 0xa
push eax
mov eax, dword [edx + 0xbc]
call eax
test al, al
je 0x497fca
push 0
push 0
push 0x103
mov ecx, esi
mov dword [esi + 0x158], 1
mov dword [esi + 0x1d8], 3
mov dword [esi + 0x1b8], 0
call fcn.004977f0
mov ecx, dword [esi + 0xe4]
push 1
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ecx, dword [esi + 0xe4]
jmp 0x497fc0
cmp eax, 1
jne 0x497fca
mov edi, 4
lea ebx, [esi + 0x1fc]
mov dword [ebp + 8], edi
mov eax, dword [esi]
mov ecx, esi
mov edi, dword [ebp + edi*4 - 0x28]
add edi, 0xa
push edi
mov eax, dword [eax + 0xbc]
call eax
xor edx, edx
movzx eax, al
mov ecx, 0x64
div ecx
push edi
neg edx
mov ecx, esi
sbb edx, edx
neg edx
mov dword [ebx - 0xa0], edx
mov eax, dword [esi]
mov eax, dword [eax + 0xbc]
call eax
mov edi, dword [ebp + 8]
movzx ecx, al
mov eax, 0x51eb851f
mul ecx
mov eax, dword [edi*4 + 0x53e63c]
mov ecx, esi
shr edx, 5
mov dword [ebx], edx
mov dword [ebx - 0x40], eax
mov eax, edi
push 0
push 0
or eax, 0x100
mov dword [ebx - 0x20], edi
push eax
call fcn.004977f0
mov ecx, dword [ebx - 0x114]
push 1
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ecx, dword [ebx - 0x114]
push 0xff
mov eax, dword [ecx]
call dword [eax + 0x38]
inc edi
lea ebx, [ebx + 4]
mov dword [ebp + 8], edi
cmp edi, 7
jl 0x497ed0
mov edx, dword [esi]
mov ecx, esi
mov eax, dword [ebp - 0xc]
add eax, 0xa
push eax
mov eax, dword [edx + 0xbc]
call eax
test al, al
je 0x497fca
push 0
push 0
push 0x107
mov ecx, esi
mov dword [esi + 0x168], 1
mov dword [esi + 0x1e8], 7
mov dword [esi + 0x1c8], 0
call fcn.004977f0
mov ecx, dword [esi + 0xf4]
push 1
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ecx, dword [esi + 0xf4]
mov eax, dword [ecx]
push 0xff
call dword [eax + 0x38]
mov ecx, dword [esi + 0xb8]
push 1
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ecx, dword [esi + 0xb8]
push 0xff
mov eax, dword [ecx]
call dword [eax + 0x38]
call fcn.0042a8c0
push ecx
push 1
mov ecx, eax
call fcn.0042d240
pop edi
mov dword [esi + 0xfc], 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4