Function at 0x434770
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [eax + 4]
mov dword [ebp - 4], esi
test esi, esi
jns 0x4347a8
cmp dword [eax], 0
jg 0x4347a8
push dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
add eax, ecx
push eax
push ecx
call fcn.00433260
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [eax], edx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x24]
mov ecx, dword [ebp + 0x14]
push ebx
push edi
add ecx, eax
mov dword [ebp - 0x30], eax
push edx
push ecx
push eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call fcn.0043eb00
mov edx, dword [ebp - 0x30]
add esp, 0xc
xor ebx, ebx
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x20], 0
cmp edx, dword [ebp - 0x2c]
je 0x434894
nop dword [eax]
mov dword [ebp - 0xc], ebx
cmp ebx, esi
jne 0x4347ff
test esi, esi
jns 0x434894
mov edi, dword [ebp - 0x24]
cmp edi, 0x25fd
jae 0x43482d
mov eax, 1
mov ecx, 0x4f1478
cmp edi, dword [ecx]
jb 0x434867
add ecx, 4
xor eax, 3
cmp ecx, str.Unmatched__in_format_string.
jne 0x434814
mov eax, 1
jmp 0x434867
mov eax, 0x4f1478
mov edx, 0xca
mov esi, edx
shr esi, 1
cmp edi, dword [eax + esi*4]
lea ecx, [eax + esi*4]
jae 0x434847
mov edx, esi
jmp 0x434851
lea eax, [ecx + 4]
or ecx, 0xffffffff
sub ecx, esi
add edx, ecx
test edx, edx
jg 0x434837
mov esi, dword [ebp - 4]
sub eax, 0x4f1478
mov edx, dword [ebp - 0x30]
sar eax, 2
and eax, 1
inc eax
mov ecx, 0x7fffffff
sub ecx, eax
cmp ecx, ebx
jl 0x434900
add ebx, eax
cmp ebx, esi
jle 0x434880
test esi, esi
jns 0x4348fb
lea ecx, [ebp - 0x30]
call fcn.0043deb0
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp - 0x2c]
jne 0x4347f0
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0x10]
xor esi, esi
mov ecx, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], 1
mov dword [ebp - 4], esi
mov al, byte [eax + 9]
test al, al
movzx edx, al
cmove edx, dword [ebp - 0xc]
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 0x18]
mov edx, dword [edx]
cmp ebx, edx
jge 0x43490f
mov eax, dword [ebp - 0xc]
movzx eax, al
sub eax, 1
je 0x434972
sub eax, 1
je 0x43490b
sub eax, 1
jne 0x43490f
mov eax, edx
sub eax, ebx
cdq
sub eax, edx
mov edi, eax
mov eax, dword [ebp + 0x18]
sar edi, 1
mov esi, dword [eax]
sub esi, edi
sub esi, ebx
mov dword [ebp - 4], esi
jmp 0x434912
mov ebx, dword [ebp - 0xc]
jmp 0x434894
test esi, esi
jns 0x434894
mov ebx, 0x7fffffff
jmp 0x434897
mov edi, edx
sub edi, ebx
mov eax, dword [ebp + 0x18]
lea ebx, [eax + 0xf]
movzx eax, byte [eax + 0xe]
mov dword [ebp + 0x18], eax
test edi, edi
jle 0x434938
lea esi, [eax + ebx]
push ecx
push esi
push ebx
call fcn.00433260
dec edi
add esp, 0xc
mov ecx, edx
test edi, edi
jg 0x434923
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 8]
sub edx, eax
push ecx
add edx, eax
push edx
push eax
call fcn.00433260
add esp, 0xc
test esi, esi
jle 0x434966
add edi, ebx
push edx
push edi
push ebx
call fcn.00433260
dec esi
add esp, 0xc
test esi, esi
jg 0x434956
mov eax, dword [ebp + 8]
pop edi
pop ebx
pop esi
mov dword [eax], edx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x18]
mov esi, edx
sub esi, ebx
movzx edi, byte [eax + 0xe]
lea ebx, [eax + 0xf]
jmp 0x43493b