Function at 0x4a9df0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov ecx, dword [ebp + 8]
push ebx
mov eax, dword [ecx + 0x20]
xor edx, edx
push edi
mov edi, dword [ecx + 0x30]
div edi
xor edx, edx
mov dword [ebp - 0x2c], edi
mov ebx, eax
mov eax, dword [ecx + 0x24]
div edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], eax
test ebx, ebx
je 0x4aa070
test eax, eax
je 0x4aa070
mov eax, edi
imul eax, edi
mov dword [ebp - 0x44], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x4c], eax
mov al, byte [ecx + 0x28]
mov byte [ebp - 7], al
mov al, byte [ecx + 0x29]
mov byte [ebp - 2], al
mov al, byte [ecx + 0x2a]
mov byte [ebp - 6], al
mov al, byte [ecx + 0x2b]
mov byte [ebp - 1], al
mov al, byte [ecx + 0x2c]
mov edx, dword [ecx + 0x1c]
mov byte [ebp - 4], al
mov al, byte [ecx + 0x2d]
mov byte [ebp - 8], al
mov al, byte [ecx + 0xc]
mov byte [ebp - 9], al
mov al, byte [ecx + 0xd]
mov byte [ebp - 0xb], al
mov al, byte [ecx + 0xe]
mov byte [ebp - 0xa], al
mov al, byte [ecx + 0xf]
mov byte [ebp - 3], al
mov al, byte [ecx + 0x10]
mov byte [ebp - 5], al
mov al, byte [ecx + 0x11]
mov byte [ebp + 0xb], al
mov eax, edx
imul eax, edi
mov dword [ebp - 0x34], eax
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x10], eax
sub eax, dword [ebp - 0x34]
mov ebx, dword [ecx + 0x14]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x10]
imul eax, edi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x34]
imul eax, dword [ebp - 0x18]
sub dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x4c]
imul eax, dword [ebp - 0x18]
push esi
mov esi, dword [ecx]
mov ecx, dword [ecx + 4]
sub ecx, eax
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x14], edx
test ecx, ecx
je 0x4aa067
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4aa051
movzx ecx, byte [ebp + 0xb]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x7c], ecx
movzx ecx, byte [ebp - 0xa]
mov dword [ebp - 0x5c], ecx
movzx ecx, byte [ebp - 3]
mov dword [ebp - 0x70], ecx
movzx ecx, byte [ebp - 9]
mov dword [ebp - 0x78], ecx
movzx ecx, byte [ebp - 5]
mov dword [ebp - 0x60], ecx
movzx ecx, byte [ebp - 0xb]
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x40], eax
mov edi, edi
xor eax, eax
xorps xmm0, xmm0
movq qword [ebp - 0x8c], xmm0
mov ecx, dword [ebp - 0x8c]
mov esi, ebx
mov ebx, dword [ebp - 0x88]
mov dword [ebp - 0x38], eax
test edi, edi
je 0x4a9fde
movzx eax, byte [ebp - 7]
mov dword [ebp - 0x84], eax
movzx eax, byte [ebp - 1]
mov dword [ebp - 0x58], eax
movzx eax, byte [ebp - 2]
mov dword [ebp - 0x80], eax
movzx eax, byte [ebp - 4]
mov dword [ebp - 0x74], eax
movzx eax, byte [ebp - 6]
mov dword [ebp - 0x64], eax
movzx eax, byte [ebp - 8]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x30], ecx
lea esp, [esp]
push edx
lea eax, [ebp - 0x3c]
push esi
push eax
mov dword [ebp - 0x3c], 0
call fcn.006310a8
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x84]
mov eax, edx
shr eax, cl
mov ecx, dword [ebp - 0x58]
add esp, 0xc
shl eax, cl
mov ecx, dword [ebp - 0x80]
and eax, 0xff
add dword [ebp - 0x38], eax
mov eax, edx
shr eax, cl
mov ecx, dword [ebp - 0x74]
shl eax, cl
mov ecx, dword [ebp - 0x64]
shr edx, cl
mov ecx, dword [ebp - 0x24]
and eax, 0xff
add dword [ebp - 0x30], eax
shl edx, cl
and edx, 0xff
add ebx, edx
mov edx, dword [ebp - 0x14]
add esi, edx
dec edi
jne 0x4a9f70
add esi, dword [ebp - 0x6c]
dec dword [ebp - 0x48]
mov edi, dword [ebp - 0x2c]
jne 0x4a9f70
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x38]
xor edx, edx
div dword [ebp - 0x44]
xor edx, edx
mov edi, eax
mov eax, ecx
div dword [ebp - 0x44]
xor edx, edx
mov ecx, dword [ebp - 0x7c]
mov esi, eax
mov eax, ebx
div dword [ebp - 0x44]
shr eax, cl
mov ecx, dword [ebp - 0x5c]
shl eax, cl
mov ecx, dword [ebp - 0x60]
shr esi, cl
mov ecx, dword [ebp - 0x68]
shl esi, cl
mov ecx, dword [ebp - 0x70]
shr edi, cl
mov ecx, dword [ebp - 0x78]
or eax, esi
mov esi, dword [ebp - 0x28]
shl edi, cl
or eax, edi
mov edi, dword [ebp - 0x4c]
mov dword [ebp - 0x24], eax
push edi
lea eax, [ebp - 0x24]
push eax
push esi
call fcn.006310a8
mov ebx, dword [ebp - 0x20]
add ebx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x14]
add esi, edi
mov edi, dword [ebp - 0x2c]
add esp, 0xc
dec dword [ebp - 0x40]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x28], esi
jne 0x4a9f10
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
add ebx, dword [ebp - 0x10]
add esi, dword [ebp - 0x50]
dec ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x1c], ecx
jne 0x4a9ed6
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push dword [0x648fa4]
lea eax, [ebp - 0x54]
push 0
push eax
mov dword [ebp - 0x54], str.CommonSaveControlCreateTumb.cpp
mov dword [ebp - 0x50], 0x58
call fcn.00437d10
add esp, 0xc
mov eax, 0x80070057
pop edi
pop ebx
mov esp, ebp
pop ebp
ret