Function at 0x42bb30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0x2c
mov eax, dword [eax + 0x24]
mov edx, dword [edi + 0x6c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], edx
jmp 0x42bc17
test ecx, ecx
jne 0x42bc3a
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
jne 0x42bc3a
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
lea esi, [esi]
mov ebx, dword [edi]
mov eax, dword [ebx + 4]
test eax, eax
je 0x42bcec
mov edx, dword [edi + 0x30]
add dword [ebp - 0x20], edx
mov edx, dword [edi + 0x6c]
mov esi, dword [ebp - 0x20]
add esi, edx
cmp eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], esi
mov esi, dword [ebp - 0x10]
cmovbe esi, eax
xor ecx, ecx
test esi, esi
je 0x42bbcf
sub eax, esi
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x42bd00
mov edx, dword [ebx]
mov dword [esp + 8], esi
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
add dword [ebx], esi
mov ecx, esi
mov edx, dword [edi + 0x6c]
add dword [ebx + 8], esi
lea esi, [edx + ecx]
cmp esi, 2
mov dword [ebp - 0x1c], esi
mov dword [edi + 0x6c], esi
jbe 0x42bbfe
mov ebx, dword [edi + 0x64]
mov edx, dword [edi + 0x30]
mov ecx, dword [edi + 0x50]
movzx eax, byte [ebx + edx]
mov dword [edi + 0x40], eax
shl eax, cl
movzx ecx, byte [edx + ebx + 1]
mov ebx, dword [edi + 0x4c]
xor eax, ecx
and eax, ebx
mov dword [edi + 0x40], eax
cmp esi, 0x105
ja 0x42bcec
mov eax, dword [edi]
mov esi, dword [eax + 4]
test esi, esi
je 0x42bcec
mov esi, dword [edi + 0x34]
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x64]
sub esi, ebx
sub esi, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x10], esi
je 0x42bb50
cmp dword [ebp - 0x10], 0xffffffff
je 0x42bcf4
mov eax, dword [ebp - 0x14]
mov esi, dword [edi + 0x24]
add eax, esi
sub eax, 0x106
cmp dword [ebp - 0x20], eax
jb 0x42bb70
mov esi, dword [edi + 0x30]
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x14]
mov dword [esp], esi
add eax, esi
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp - 0x14]
mov edx, dword [edi + 0x64]
mov esi, dword [edi + 0x44]
sub dword [edi + 0x68], ecx
mov ebx, dword [edi + 0x3c]
sub edx, ecx
sub dword [edi + 0x54], ecx
mov dword [ebp - 0x20], edx
lea ecx, [ebx + esi*2]
mov dword [edi + 0x64], edx
nop
lea esi, [esi]
sub ecx, 2
xor ebx, ebx
movzx edx, word [ecx]
mov eax, edx
sub eax, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x14]
cmovb eax, ebx
dec esi
mov word [ecx], ax
jne 0x42bc90
mov esi, dword [ebp - 0x14]
mov eax, dword [edi + 0x38]
lea ecx, [eax + esi*2]
lea esi, [esi]
lea edi, [edi]
sub ecx, 2
xor ebx, ebx
movzx edx, word [ecx]
mov eax, edx
sub eax, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x14]
cmovb eax, ebx
dec esi
mov word [ecx], ax
jne 0x42bcc0
mov ebx, dword [edi]
mov ecx, dword [ebp - 0x14]
add dword [ebp - 0x10], ecx
mov eax, dword [ebx + 4]
test eax, eax
jne 0x42bb7d
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x10], 0xfffffffe
jmp 0x42bb70
mov dword [esp + 8], esi
mov ecx, dword [ebx]
mov dword [esp + 4], ecx
mov edx, dword [ebx + 0x30]
mov dword [esp], edx
call fcn.0042a6b0
mov dword [ebx + 0x30], eax
jmp 0x42bbb0