Function at 0x426100
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x444
lea eax, [esp + 0x3c]
push ebx
push esi
mov ecx, dword [0x4d6e30]
push edi
push ebp
push 0
mov ebx, dword [ecx]
push eax
call dword [ebx + 0x10]
test eax, eax
je 0x4264d4
lea eax, [esp + 0x18]
lea ecx, [esp + 0x50]
push eax
mov edx, dword [0x4d6e44]
push ecx
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0x10]
test eax, eax
je 0x4264d4
mov eax, dword [0x4d6e44]
xor ecx, ecx
mov cl, byte [eax + 0xd]
mov dword [esp + 0x20], ecx
xor ecx, ecx
mov cl, byte [eax + 0x10]
mov dword [esp + 0x24], ecx
xor ecx, ecx
mov cl, byte [eax + 0x13]
mov dword [esp + 0x28], ecx
xor ecx, ecx
mov cl, byte [eax + 0xe]
mov dword [esp + 0x34], ecx
xor ecx, ecx
mov cl, byte [eax + 0x11]
mov dword [esp + 0x38], ecx
xor ecx, ecx
mov cl, byte [eax + 0x14]
mov eax, dword [0x4d6e34]
and eax, 0xff0000
mov dword [esp + 0x3c], ecx
shr eax, 0x10
mov dword [esp + 0x14], eax
xor eax, eax
mov al, byte [0x4d6e35]
mov dword [esp + 0x10], eax
mov eax, dword [0x4d6e34]
and eax, 0xff
mov dword [esp + 0x30], eax
mov eax, dword [0x4d6e34]
and eax, 0xffffff
cmp eax, 0xffffff
je 0x426246
lea ebx, [esp + 0x54]
mov edi, dword [esp + 0x18]
mov esi, dword [edi]
mov cl, byte [esp + 0x28]
mov eax, esi
add ebx, 4
sar eax, cl
and eax, dword [esp + 0x3c]
add edi, 4
imul eax, dword [esp + 0x30]
cdq
and edx, 0xff
add eax, edx
sar eax, 8
mov ebp, eax
mov eax, esi
shl ebp, cl
mov cl, byte [esp + 0x24]
sar eax, cl
and eax, dword [esp + 0x38]
imul eax, dword [esp + 0x10]
cdq
and edx, 0xff
add eax, edx
sar eax, 8
shl eax, cl
or ebp, eax
mov cl, byte [esp + 0x20]
sar esi, cl
and esi, dword [esp + 0x34]
imul esi, dword [esp + 0x14]
mov eax, esi
cdq
and edx, 0xff
add eax, edx
sar eax, 8
shl eax, cl
or ebp, eax
lea eax, [esp + 0x454]
mov dword [ebx - 4], ebp
cmp ebx, eax
jb 0x4261c5
lea eax, [esp + 0x54]
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], 0
mov eax, dword [0x4d6e34]
shr eax, 0x18
cmp dword [0x4d6e48], 0
mov dword [esp + 0x1c], eax
jle 0x4264b2
mov eax, dword [0x4d6e30]
mov ecx, dword [0x4ae0bc]
movsx esi, word [eax + 0x1e]
mov eax, dword [0x4ae0c0]
add eax, dword [esp + 0x2c]
imul esi, eax
mov eax, dword [0x4ae0c8]
lea esi, [esi + ecx*4]
add esi, dword [esp + 0x4c]
add eax, dword [esp + 0x2c]
imul eax, dword [0x4d6e2c]
cdq
idiv dword [0x4d6e3c]
mov ecx, dword [0x4d6e54]
add ecx, eax
mov eax, dword [0x4d6e44]
movsx edx, word [eax + 0x1e]
imul ecx, edx
add ecx, dword [esp + 0x50]
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x10], ecx
jne 0x426306
xor edi, edi
cmp dword [0x4d6e4c], edi
jle 0x42649e
mov eax, dword [0x4ae0c4]
xor ecx, ecx
add eax, edi
mov edx, dword [esp + 0x10]
mov ebx, dword [eax*4 + 0x4d4e28]
mov eax, dword [esp + 0x18]
mov cl, byte [ebx + edx]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x4262f5
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [0x4d6e4c], edi
jg 0x4262d1
jmp 0x42649e
cmp dword [esp + 0x1c], 0x80
jne 0x42638a
mov cl, byte [esp + 0x28]
mov edi, 1
mov ebx, 1
mov edx, 1
shl edi, cl
mov cl, byte [esp + 0x24]
shl ebx, cl
or edi, ebx
mov cl, byte [esp + 0x20]
shl edx, cl
or edi, edx
xor ecx, ecx
not edi
cmp dword [0x4d6e4c], ecx
jle 0x42649e
mov eax, dword [0x4ae0c4]
mov edx, dword [esp + 0x10]
add eax, ecx
mov ebx, dword [eax*4 + 0x4d4e28]
xor eax, eax
mov al, byte [ebx + edx]
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx + eax*4]
test eax, eax
je 0x426379
mov edx, edi
and edx, eax
mov eax, dword [esi]
shr edx, 1
and eax, edi
shr eax, 1
add eax, edx
mov dword [esi], eax
inc ecx
add esi, 4
cmp ecx, dword [0x4d6e4c]
jl 0x426345
jmp 0x42649e
mov dword [esp + 0x48], 0
cmp dword [0x4d6e4c], 0
jle 0x42649e
mov eax, dword [0x4ae0c4]
xor ecx, ecx
add eax, dword [esp + 0x48]
mov edx, dword [esp + 0x10]
mov ebx, dword [eax*4 + 0x4d4e28]
mov eax, dword [esp + 0x18]
mov cl, byte [ebx + edx]
mov ebx, dword [eax + ecx*4]
test ebx, ebx
je 0x426487
mov al, byte [esp + 0x20]
mov edx, ebx
mov cl, al
mov edi, ebx
mov ebp, dword [esi]
mov byte [esp + 0x40], al
shr edx, cl
and edx, dword [esp + 0x34]
mov al, byte [esp + 0x24]
mov cl, al
mov byte [esp + 0x44], al
shr edi, cl
and edi, dword [esp + 0x38]
mov al, byte [esp + 0x28]
mov cl, al
mov byte [esp + 0x14], al
shr ebx, cl
and ebx, dword [esp + 0x3c]
mov eax, ebp
mov cl, byte [esp + 0x40]
sar eax, cl
and eax, dword [esp + 0x34]
mov cl, byte [esp + 0x44]
sub eax, edx
imul eax, dword [esp + 0x1c]
shl edx, 8
add eax, edx
cdq
and edx, 0xff
add eax, edx
sar eax, 8
mov dword [esp + 0x30], eax
mov eax, ebp
sar eax, cl
and eax, dword [esp + 0x38]
mov cl, byte [esp + 0x14]
sar ebp, cl
sub eax, edi
and ebp, dword [esp + 0x3c]
imul eax, dword [esp + 0x1c]
shl edi, 8
sub ebp, ebx
shl ebx, 8
add eax, edi
cdq
imul ebp, dword [esp + 0x1c]
and edx, 0xff
add eax, edx
sar eax, 8
mov edi, eax
lea eax, [ebp + ebx]
cdq
and edx, 0xff
add eax, edx
mov edx, dword [esp + 0x30]
sar eax, 8
shl eax, cl
mov cl, byte [esp + 0x40]
shl edx, cl
or eax, edx
mov cl, byte [esp + 0x44]
shl edi, cl
or eax, edi
mov dword [esi], eax
add esi, 4
inc dword [esp + 0x48]
mov eax, dword [esp + 0x48]
cmp dword [0x4d6e4c], eax
jg 0x42639f
inc dword [esp + 0x2c]
mov eax, dword [esp + 0x2c]
cmp eax, dword [0x4d6e48]
jl 0x426267
mov eax, dword [0x4d6e30]
mov ecx, eax
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov ecx, dword [0x4d6e44]
mov eax, dword [ecx]
call dword [eax + 0x14]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x444
ret
push str.failed_the_Lock_sprite_texutre._sp_trans32src8
call fcn.0043d360
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x444
ret