Function at 0x607bd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1000
or dword [esp], 0
sub esp, 0x6c
mov esi, eax
mov dword [esp + 0x48], eax
mov eax, dword [0x7bb044]
mov dword [esp + 0x105c], eax
xor eax, eax
mov edi, dword [esi + 4]
mov esi, dword [esi]
mov eax, 0x15
mov dword [esp + 0x4c], edx
cmp eax, esi
mov eax, 0
sbb eax, edi
jae 0x607dfd
mov dword [esp + 8], 0xfffff000
mov dword [esp + 0xc], 0xffffffff
mov dword [esp], esi
mov dword [esp + 4], edi
call fcn.004026b0
xor ecx, ecx
mov ebp, eax
mov ebx, edx
xor eax, eax
cmp ebp, ecx
sbb ebx, eax
cmovge ecx, ebp
cmovge eax, edx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
lea esi, [esi]
nop
sub esi, dword [esp + 0x40]
mov eax, 0x1000
lea ecx, [esp + 0x5c]
sbb edi, dword [esp + 0x44]
xor edx, edx
cmp eax, esi
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x48]
sbb edx, edi
mov edx, dword [esp + 0x44]
cmovb esi, eax
mov eax, dword [esp + 0x40]
mov dword [esp + 8], edx
mov dword [esp + 0x10], esi
mov dword [esp + 4], eax
mov eax, dword [ecx + 0x44]
mov dword [esp], eax
call dword [ecx + 0x38]
cmp esi, eax
jne 0x607dfd
mov dword [esp + 4], 0xfffffffc
mov dword [esp], esi
call fcn.00402690
mov ebx, eax
test eax, eax
js 0x607d80
lea esi, [esp + 0x5c]
lea eax, [esi + eax]
mov esi, ebx
movzx ecx, byte [eax + 3]
sar esi, 0x1f
add ebx, dword [esp + 0x40]
adc esi, dword [esp + 0x44]
movzx ebp, byte [eax + 2]
mov dword [esp + 0x38], ebx
mov byte [esp + 0x30], cl
movzx ecx, byte [eax + 1]
mov dword [esp + 0x3c], esi
mov byte [esp + 0x28], cl
jmp 0x607d07
mov ecx, ebp
mov ebp, edi
lea edi, [esp + 0x5c]
add dword [esp + 0x38], 0xffffffff
mov byte [esp + 0x30], cl
lea edx, [eax - 1]
adc dword [esp + 0x3c], 0xffffffff
cmp eax, edi
je 0x607d80
mov eax, edx
movzx edi, byte [esp + 0x28]
movzx edx, byte [eax]
mov ecx, edi
mov byte [esp + 0x28], dl
movzx ecx, cl
shl ecx, 8
or ecx, edx
mov edx, ebp
movzx edx, dl
shl edx, 0x10
or edx, ecx
mov ecx, dword [esp + 0x30]
shl ecx, 0x18
or edx, ecx
cmp edx, 0x6054b50
jne 0x607ce8
mov ecx, dword [esp + 0x48]
mov esi, 0x15
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x30], edx
sub edx, dword [esp + 0x38]
mov dword [esp + 0x34], ecx
sbb ecx, dword [esp + 0x3c]
cmp esi, edx
mov esi, 0
sbb esi, ecx
jae 0x607ce8
mov eax, dword [esp + 0x4c]
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
mov dword [eax], ebx
mov dword [eax + 4], esi
mov eax, 1
jmp 0x607dff
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
or esi, eax
je 0x607dfd
mov eax, dword [esp + 0x48]
mov ecx, 0x10014
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov eax, esi
sub eax, dword [esp + 0x40]
mov edx, edi
sbb edx, dword [esp + 0x44]
mov ebx, eax
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x2c], edx
cmp ecx, ebx
sbb eax, dword [esp + 0x2c]
jb 0x607dfd
mov ecx, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
mov eax, ecx
xor eax, 0xffd
or eax, ebx
je 0x607de8
add ecx, 0xfffff003
adc ebx, 0xffffffff
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ebx
jmp 0x607c50
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
jmp 0x607c50
xor eax, eax
mov edx, dword [esp + 0x105c]
sub edx, dword [0x7bb044]
jne 0x607e19
add esp, 0x106c
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.00401690
nop
nop