Function at 0x42dbf9
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push 0xb0
mov eax, 0x493e27
call fcn.0047a3e2
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 4]
xor esi, esi
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x50], esi
cmp eax, esi
jle 0x42de96
mov dword [ebp - 0x4c], esi
xor edi, edi
cmp esi, edi
jl 0x42deb6
cmp esi, eax
jge 0x42deb6
mov eax, dword [ebx]
add eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x2c]
add eax, 0x28
push eax
call fcn.004016fa
mov dword [ebp - 4], edi
cmp dword [ebp - 0x18], 0x10
mov ecx, dword [ebp - 0x2c]
mov edx, ecx
jae 0x42de9e
lea edx, [ebp - 0x2c]
mov eax, edx
add eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], 0x10
jae 0x42dc6a
lea ecx, [ebp - 0x2c]
push edx
push eax
push ecx
lea eax, [ebp - 0x88]
push eax
call fcn.00419697
add esp, 0x10
cmp esi, dword [ebx + 4]
jge 0x42dea5
mov eax, dword [ebx]
add eax, dword [ebp - 0x4c]
mov edi, str.bitmap
mov ecx, dword [eax + 0x118]
mov dword [ebp - 0x80], ecx
mov ecx, dword [eax + 0x110]
add ecx, dword [eax + 0x118]
push edi
mov dword [ebp - 0x78], ecx
mov ecx, dword [eax + 0x114]
mov dword [ebp - 0x84], ecx
mov ecx, dword [eax + 0x10c]
add ecx, dword [eax + 0x114]
mov dword [ebp - 0x7c], ecx
call fcn.00473080
pop ecx
push edi
mov edi, eax
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
call fcn.00413022
test eax, eax
je 0x42dcfd
mov edi, 0x4a6ee0
push edi
call fcn.00473080
pop ecx
push edi
mov edi, eax
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
call fcn.00413022
test eax, eax
jne 0x42de5d
cmp esi, dword [ebx + 4]
jge 0x42dea5
mov eax, dword [ebx]
add eax, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x5c]
add eax, 0xc
push eax
lea esi, [edi + 0x144]
call fcn.0043b955
cmp eax, 0xffffffff
jle 0x42de5a
lea esi, [ebp - 0xbc]
call fcn.0041dd40
mov eax, edi
mov byte [ebp - 4], 1
push dword [eax + 4]
call dword [0x49e4d0]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebx + 4]
jge 0x42dea5
mov ebx, dword [ebx]
add ebx, dword [ebp - 0x4c]
lea eax, [edi + 0x144]
add ebx, 0xc
push ebx
lea ebx, [ebp - 0x48]
call fcn.0043b902
cmp dword [eax + 0x14], 8
jb 0x42dd6e
mov eax, dword [eax]
lea ecx, [ebp - 0xbc]
push ecx
mov ecx, eax
call fcn.0041e095
xor ebx, ebx
push ebx
push 1
lea ecx, [ebp - 0x48]
mov esi, eax
call fcn.0040bffa
cmp esi, ebx
jne 0x42de49
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x54], ebx
cmp eax, ebx
jle 0x42de1e
mov dword [ebp - 0x58], ebx
cmp dword [ebp - 0xac], ebx
jle 0x42de10
mov eax, dword [ebp - 0xa4]
imul eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0xa8]
imul ecx, dword [ebp - 0x58]
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, dword [ebp - 0xb4]
mov esi, 0xff
add ecx, eax
movzx edi, byte [ecx + 3]
movzx eax, byte [ecx]
imul eax, edi
cdq
mov ebx, esi
idiv ebx
mov byte [ecx], al
movzx eax, byte [ecx + 1]
imul eax, edi
cdq
idiv ebx
mov byte [ecx + 1], al
movzx eax, byte [ecx + 2]
imul eax, edi
cdq
idiv esi
inc dword [ebp - 0x58]
mov byte [ecx + 2], al
mov eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0xac]
jl 0x42ddab
xor ebx, ebx
inc dword [ebp - 0x54]
mov eax, dword [ebp - 0xb0]
cmp dword [ebp - 0x54], eax
jl 0x42dda0
push dword [ebp - 0x64]
dec eax
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0xac]
dec eax
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x74]
lea ecx, [ebp - 0x84]
lea edx, [ebp - 0xbc]
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
call fcn.0041dde1
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], bl
call fcn.0041ddac
mov ebx, dword [ebp - 0x60]
mov esi, dword [ebp - 0x50]
cmp esi, dword [ebx + 4]
jge 0x42dea5
mov eax, dword [ebx]
add eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x5c]
push eax
call fcn.0042dbf9
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040152e
mov eax, dword [ebx + 4]
add dword [ebp - 0x4c], 0x1f8
inc esi
mov dword [ebp - 0x50], esi
cmp esi, eax
jl 0x42dc24
call fcn.0047a465
ret 4
mov eax, ecx
jmp 0x42dc5e
push 0
push 0
push 1
push 0xc000008c
call dword [0x49e2f8]
push edi
push edi
jmp 0x42dea9