Function at 0x45f0f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
lea edx, [esp + 0x1c]
push edi
mov ecx, dword [esi + 0xc]
push edx
add ecx, 0x248
lea edx, [esp + 0x28]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi + 0xa0]
xor ebp, ebp
cmp edi, 3
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], 0x100
jne 0x45f18a
mov eax, dword [esi + 0xa8]
mov ebx, 0x80
cdq
mov ecx, eax
xor ecx, edx
sub ecx, edx
cmp ecx, 0x80
jg 0x45f146
mov ebx, ecx
mov edx, dword [esi + 0xe0]
mov eax, 0x190
sub eax, edx
cdq
sub eax, edx
sar eax, 1
imul eax, ebx
shl eax, 1
cdq
and edx, 0xff
add eax, edx
sar eax, 8
cmp ecx, 0x80
mov dword [esp + 0x18], eax
jle 0x45f17a
mov ecx, 0x80
mov eax, 0x80
sub eax, ecx
shl eax, 1
mov dword [esp + 0x1c], eax
cmp edi, 3
jle 0x45f1a6
mov ebx, dword [esi + 0xe0]
mov eax, 0x190
sub eax, ebx
mov dword [esp + 0x1c], ebp
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x18], eax
mov ecx, dword [esi + 0xb4]
mov edi, dword [esi + 0xe0]
mov eax, ecx
cdq
and edx, 0xff
add eax, edx
sar eax, 8
cdq
idiv edi
mov dword [esp + 0x10], eax
mov eax, ecx
cdq
and edx, 0xff
add eax, edx
sar eax, 8
neg eax
cdq
idiv edi
mov edi, dword [esp + 0x2c]
mov ebp, edx
cmp ebp, 0x320
mov dword [esp + 0x14], ebp
jge 0x45f2f5
mov eax, dword [esi + 0xc8]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x10]
cmp eax, ecx
sete cl
and ecx, 0xff
xor ebx, ebx
add ecx, 0x19
cmp edx, eax
jge 0x45f216
mov ebx, dword [esp + 0x18]
jle 0x45f21e
mov ebx, dword [esp + 0x18]
neg ebx
cmp eax, edx
jne 0x45f26b
mov eax, dword [esp + 0x1c]
cmp eax, 0x100
jge 0x45f26b
test eax, eax
je 0x45f2d4
push ecx
lea ecx, [esi + 0x10]
call fcn.00417f40
mov ecx, dword [esp + 0x1c]
push 0
push 0
push 0
push ecx
mov ecx, dword [esi + 0xf4]
push ecx
mov ecx, dword [esi + 0xe0]
mov edx, dword [edi]
sub ebx, ecx
sub ebx, ebp
mov ecx, edi
add ebx, 0x320
push ebx
push eax
call dword [edx + 0x18]
jmp 0x45f2d4
lea ebp, [esi + 0x10]
mov dword [esp + 0x2c], ecx
lea eax, [esp + 0x2c]
mov ecx, dword [ebp + 0x50]
push eax
mov edx, dword [ecx]
call dword [edx]
mov eax, dword [esp + 0x2c]
mov edx, dword [ebp]
push 0xffffffffffffffff
push eax
mov ecx, ebp
call dword [edx + 8]
mov ecx, dword [ebp + 0x28]
mov edx, dword [esp + 0x2c]
push 0
push 0
mov dword [ecx + edx*4], 0
mov ecx, dword [esi + 0xf4]
mov edx, dword [esp + 0x1c]
push 0
push ecx
mov ecx, dword [esi + 0xe0]
mov eax, dword [edi]
sub ebx, ecx
mov ecx, dword [esp + 0x3c]
sub ebx, edx
mov edx, dword [ebp + 0x60]
add ebx, 0x320
push ebx
mov edx, dword [edx + ecx*8 + 4]
mov ecx, edi
push edx
call dword [eax + 0xc]
mov ebp, dword [esp + 0x14]
mov ecx, dword [esi + 0xe0]
mov edx, dword [esp + 0x10]
add ebp, ecx
inc edx
cmp ebp, 0x320
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebp
jl 0x45f1f0
mov ebx, dword [esi + 0xac]
mov ebp, dword [esi + 0xe0]
mov eax, ebx
cdq
and edx, 0xff
add eax, edx
sar eax, 8
cdq
idiv ebp
mov ecx, eax
mov eax, ebx
cdq
and edx, 0xff
mov dword [esp + 0x10], ecx
add eax, edx
sar eax, 8
neg eax
cdq
idiv ebp
cmp edx, 0x320
mov dword [esp + 0x14], edx
jge 0x45f482
mov eax, ecx
mov ebx, 3
cdq
idiv ebx
mov eax, dword [esi + 0xc4]
xor ebp, ebp
add edx, 2
cmp ecx, eax
lea edx, [edx + edx*4]
jge 0x45f35f
mov ebp, dword [esp + 0x18]
neg ebp
cmp ecx, eax
jle 0x45f365
mov ebp, dword [esp + 0x18]
cmp eax, ecx
jne 0x45f408
mov ebx, dword [esi + 0xa0]
cmp ebx, 2
je 0x45f38b
cmp ebx, 1
jne 0x45f387
mov ebx, dword [esi + 0xb0]
test ebx, ebx
jne 0x45f38b
xor ebx, ebx
jmp 0x45f390
mov ebx, 1
cmp eax, ecx
lea edx, [edx + ebx + 1]
jne 0x45f408
mov eax, dword [esp + 0x1c]
cmp eax, 0x100
jge 0x45f408
test eax, eax
je 0x45f462
mov ecx, dword [esi + 0x60]
lea ebx, [esi + 0x10]
mov dword [esp + 0x2c], edx
lea edx, [esp + 0x2c]
mov eax, dword [ecx]
push edx
call dword [eax]
mov ecx, dword [esp + 0x2c]
mov eax, dword [ebx]
push 0xffffffffffffffff
push ecx
mov ecx, ebx
call dword [eax + 8]
mov edx, dword [ebx + 0x28]
mov eax, dword [esp + 0x2c]
push 0
push 0
mov dword [edx + eax*4], 0
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0xfc]
push 0
push eax
mov eax, dword [esp + 0x24]
mov edx, dword [edi]
push ecx
mov ecx, dword [ebx + 0x60]
add ebp, eax
mov eax, dword [esp + 0x40]
push ebp
mov ecx, dword [ecx + eax*8 + 4]
push ecx
mov ecx, edi
call dword [edx + 0x18]
jmp 0x45f45e
mov ecx, dword [esi + 0x60]
lea ebx, [esi + 0x10]
mov dword [esp + 0x2c], edx
lea eax, [esp + 0x2c]
mov edx, dword [ecx]
push eax
call dword [edx]
mov eax, dword [esp + 0x2c]
mov edx, dword [ebx]
push 0xffffffffffffffff
push eax
mov ecx, ebx
call dword [edx + 8]
mov ecx, dword [ebx + 0x28]
mov edx, dword [esp + 0x2c]
push 0
push 0
mov dword [ecx + edx*4], 0
mov ecx, dword [esi + 0xfc]
mov edx, dword [esp + 0x1c]
mov eax, dword [edi]
push 0
push ecx
mov ecx, dword [ebx + 0x60]
add ebp, edx
mov edx, dword [esp + 0x3c]
push ebp
mov ecx, dword [ecx + edx*8 + 4]
push ecx
mov ecx, edi
call dword [eax + 0xc]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebx, dword [esi + 0xe0]
add eax, ebx
inc ecx
cmp eax, 0x320
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jl 0x45f33b
mov ecx, dword [esi + 0xa0]
cmp ecx, 5
jl 0x45f87c
jne 0x45f4b1
mov ebx, dword [esi + 0xa8]
mov eax, 0x80
sub eax, ebx
mov edx, 0
shl eax, 1
sets dl
dec edx
and edx, eax
mov ebp, edx
jmp 0x45f4b3
xor ebp, ebp
cmp ecx, 5
jne 0x45f65a
cmp dword [esi + 0xa8], 0x80
jge 0x45f65a
mov ecx, dword [esi + 0x60]
lea ebx, [esi + 0x10]
mov dword [esp + 0x2c], 0x21
lea edx, [esp + 0x2c]
mov eax, dword [ecx]
push edx
call dword [eax]
mov ecx, dword [esp + 0x2c]
mov eax, dword [ebx]
push 0xffffffffffffffff
push ecx
mov ecx, ebx
call dword [eax + 8]
mov edx, dword [ebx + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, 0xc8
push 0x10000
mov dword [edx + eax*4], 0
lea eax, [ebp + ebp*4]
push 0x5a
lea eax, [eax + eax*4]
shl eax, 3
cdq
and edx, 0xff
add eax, edx
mov edx, dword [esi + 0xf4]
sar eax, 8
sub ecx, eax
push edx
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x60]
mov dword [esp + 0x28], ecx
push ecx
mov ecx, dword [esp + 0x3c]
mov edx, dword [eax + ecx*8 + 4]
push edx
push edi
call fcn.004226c0
mov ecx, dword [ebx + 0x50]
add esp, 0x18
mov dword [esp + 0x2c], 0x21
lea edx, [esp + 0x2c]
mov eax, dword [ecx]
push edx
call dword [eax]
mov ecx, dword [esp + 0x2c]
mov eax, dword [ebx]
push 0xffffffffffffffff
push ecx
mov ecx, ebx
call dword [eax + 8]
mov edx, dword [ebx + 0x28]
mov eax, dword [esp + 0x2c]
push 0x10000
push 0x5a
mov dword [edx + eax*4], 0
mov ecx, dword [esi + 0xfc]
mov edx, dword [esp + 0x24]
mov eax, dword [ebx + 0x60]
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [eax + ecx*8 + 4]
push edx
push edi
call fcn.004226c0
mov ecx, dword [ebx + 0x50]
add esp, 0x18
mov dword [esp + 0x2c], 0x21
lea edx, [esp + 0x2c]
mov eax, dword [ecx]
push edx
call dword [eax]
mov ecx, dword [esp + 0x2c]
mov eax, dword [ebx]
push 0xffffffffffffffff
push ecx
mov ecx, ebx
call dword [eax + 8]
mov edx, dword [ebx + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov dword [edx + eax*4], 0
mov edx, dword [esi + 0xf4]
push 0x10000
lea eax, [ecx + 0x226]
mov ecx, dword [esp + 0x30]
push 0x5a
push edx
mov dword [esp + 0x28], eax
push eax
mov eax, dword [ebx + 0x60]
mov edx, dword [eax + ecx*8 + 4]
push edx
push edi
call fcn.004226c0
mov ecx, dword [ebx + 0x50]
add esp, 0x18
mov dword [esp + 0x2c], 0x21
lea edx, [esp + 0x2c]
mov eax, dword [ecx]
push edx
call dword [eax]
mov ecx, dword [esp + 0x2c]
mov eax, dword [ebx]
push 0xffffffffffffffff
push ecx
mov ecx, ebx
call dword [eax + 8]
mov edx, dword [ebx + 0x28]
mov eax, dword [esp + 0x2c]
push 0x10000
push 0x5a
mov dword [edx + eax*4], 0
mov ecx, dword [esi + 0xfc]
mov edx, dword [esp + 0x24]
mov eax, dword [ebx + 0x60]
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [eax + ecx*8 + 4]
push edx
push edi
call fcn.004226c0
add esp, 0x18
mov eax, dword [esi + 0x18]
lea ebx, [esi + 0x10]
mov dword [esp + 0x2c], 0x27
mov ecx, dword [eax + 0x13c]
lea eax, [esp + 0x2c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebx + 0x50]
push eax
mov edx, dword [ecx]
call dword [edx]
mov eax, dword [esp + 0x2c]
mov edx, dword [ebx]
push 0xffffffffffffffff
push eax
mov ecx, ebx
call dword [edx + 8]
mov ecx, dword [ebx + 0x28]
mov edx, dword [esp + 0x2c]
lea ebp, [ebp + ebp*4]
push 0
mov dword [ecx + edx*4], 0
push 0
lea eax, [ebp + ebp*4]
push 0
shl eax, 3
cdq
and edx, 0xff
mov ecx, dword [edi]
add eax, edx
mov ebp, eax
mov eax, dword [esi + 0xf4]
push eax
mov eax, 0x10624dd3
imul dword [esp + 0x2c]
sar edx, 6
mov eax, edx
mov dword [esp + 0x2c], ecx
shr eax, 0x1f
sar ebp, 8
add edx, eax
mov eax, ebp
neg eax
sub eax, edx
mov edx, dword [ebx + 0x60]
push eax
mov eax, dword [esp + 0x40]
mov ecx, edi
mov edx, dword [edx + eax*8 + 4]
mov eax, dword [esp + 0x30]
push edx
call dword [eax + 8]
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x2c], 0x27
mov edx, dword [ecx + 0x13c]
mov ecx, dword [ebx + 0x50]
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x2c]
mov eax, dword [ecx]
push edx
call dword [eax]
mov ecx, dword [esp + 0x2c]
mov eax, dword [ebx]
push 0xffffffffffffffff
push ecx
mov ecx, ebx
call dword [eax + 8]
mov edx, dword [ebx + 0x28]
mov eax, dword [esp + 0x2c]
push 0
push 0
mov dword [edx + eax*4], 0
mov edx, dword [esi + 0xfc]
push 0
mov eax, 0x10624dd3
push edx
imul dword [esp + 0x2c]
mov ecx, dword [edi]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ebp
mov dword [esp + 0x2c], ecx
neg eax
sub eax, edx
mov edx, dword [ebx + 0x60]
push eax
mov eax, dword [esp + 0x40]
mov ecx, edi
mov edx, dword [edx + eax*8 + 4]
mov eax, dword [esp + 0x30]
push edx
call dword [eax + 8]
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x2c], 0x28
mov edx, dword [ecx + 0x144]
mov ecx, dword [ebx + 0x50]
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x2c]
mov eax, dword [ecx]
push edx
call dword [eax]
mov ecx, dword [esp + 0x2c]
mov eax, dword [ebx]
push 0xffffffffffffffff
push ecx
mov ecx, ebx
call dword [eax + 8]
mov edx, dword [ebx + 0x28]
mov eax, dword [esp + 0x2c]
push 0
push 0
mov dword [edx + eax*4], 0
mov edx, dword [esi + 0xf4]
push 0
mov eax, 0x10624dd3
push edx
imul dword [esp + 0x2c]
sar edx, 6
mov eax, edx
mov ecx, dword [edi]
shr eax, 0x1f
add edx, eax
mov eax, ebp
sub eax, edx
mov edx, dword [esi + 0xf0]
add eax, edx
mov edx, dword [ebx + 0x60]
push eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x30], ecx
mov ecx, edi
mov edx, dword [edx + eax*8 + 4]
mov eax, dword [esp + 0x30]
push edx
call dword [eax + 8]
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x2c], 0x28
mov edx, dword [ecx + 0x144]
mov ecx, dword [ebx + 0x50]
mov dword [esp + 0x1c], edx
lea edx, [esp + 0x2c]
mov eax, dword [ecx]
push edx
call dword [eax]
mov ecx, dword [esp + 0x2c]
mov eax, dword [ebx]
push 0xffffffffffffffff
push ecx
mov ecx, ebx
call dword [eax + 8]
mov edx, dword [ebx + 0x28]
mov eax, dword [esp + 0x2c]
push 0
push 0
mov dword [edx + eax*4], 0
mov edx, dword [esi + 0xfc]
mov ecx, dword [edi]
push 0
mov eax, 0x10624dd3
push edx
imul dword [esp + 0x2c]
sar edx, 6
mov eax, edx
mov dword [esp + 0x2c], ecx
shr eax, 0x1f
add edx, eax
mov eax, dword [esi + 0xf0]
sub ebp, edx
mov edx, dword [ebx + 0x60]
add ebp, eax
mov eax, dword [esp + 0x3c]
push ebp
mov ecx, edi
mov edx, dword [edx + eax*8 + 4]
mov eax, dword [esp + 0x30]
push edx
call dword [eax + 8]
mov ecx, dword [esi + 0x18]
lea ebx, [esi + 0x10]
mov dword [esp + 0x2c], 0
lea eax, [esp + 0x2c]
mov ebp, dword [ecx + 4]
mov ecx, dword [ebx + 0x50]
push eax
mov dword [esp + 0x20], ebp
mov edx, dword [ecx]
call dword [edx]
mov eax, dword [esp + 0x2c]
mov edx, dword [ebx]
push 0xffffffffffffffff
push eax
mov ecx, ebx
call dword [edx + 8]
mov ecx, dword [ebx + 0x28]
mov edx, dword [esp + 0x2c]
mov eax, ebp
mov ebp, 0x3e8
mov dword [ecx + edx*4], 0
push 0
cdq
idiv ebp
push 0
push 0
mov eax, 0x10624dd3
mov ecx, dword [edi]
push edx
imul dword [esp + 0x2c]
sar edx, 6
mov eax, edx
mov dword [esp + 0x2c], ecx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x3c]
push edx
mov edx, dword [ebx + 0x60]
mov ecx, edi
mov edx, dword [edx + eax*8 + 4]
mov eax, dword [esp + 0x30]
push edx
call dword [eax + 0x4c]
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x2c], 3
lea eax, [esp + 0x2c]
mov ebp, dword [ecx + 0x1c]
mov ecx, dword [ebx + 0x50]
push eax
mov dword [esp + 0x20], ebp
mov edx, dword [ecx]
call dword [edx]
mov eax, dword [esp + 0x2c]
mov edx, dword [ebx]
push 0xffffffffffffffff
push eax
mov ecx, ebx
call dword [edx + 8]
mov ecx, dword [ebx + 0x28]
mov edx, dword [esp + 0x2c]
mov eax, ebp
mov ebp, 0x3e8
mov dword [ecx + edx*4], 0
push 0
cdq
idiv ebp
push 0
push 0
mov eax, 0x10624dd3
mov ecx, dword [edi]
push edx
imul dword [esp + 0x2c]
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x3c]
push edx
mov edx, dword [ebx + 0x60]
mov edx, dword [edx + eax*8 + 4]
push edx
mov eax, ecx
mov ecx, edi
call dword [eax + 0x4c]
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x2c], 2
lea eax, [esp + 0x2c]
mov ebp, dword [ecx + 0x14]
mov ecx, dword [ebx + 0x50]
push eax
mov dword [esp + 0x20], ebp
mov edx, dword [ecx]
call dword [edx]
mov eax, dword [esp + 0x2c]
mov edx, dword [ebx]
push 0xffffffffffffffff
push eax
mov ecx, ebx
call dword [edx + 8]
mov ecx, dword [ebx + 0x28]
mov edx, dword [esp + 0x2c]
mov eax, ebp
mov ebp, 0x3e8
mov dword [ecx + edx*4], 0
push 0
cdq
idiv ebp
push 0
push 0
mov eax, 0x10624dd3
mov ecx, dword [edi]
push edx
imul dword [esp + 0x2c]
sar edx, 6
mov eax, edx
mov dword [esp + 0x2c], ecx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x3c]
push edx
mov edx, dword [ebx + 0x60]
mov ecx, edi
mov edx, dword [edx + eax*8 + 4]
mov eax, dword [esp + 0x30]
push edx
call dword [eax + 0x4c]
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x2c], 5
lea eax, [esp + 0x2c]
mov esi, dword [ecx + 0x2c]
mov ecx, dword [ebx + 0x50]
push eax
mov edx, dword [ecx]
call dword [edx]
mov eax, dword [esp + 0x2c]
mov edx, dword [ebx]
push 0xffffffffffffffff
push eax
mov ecx, ebx
call dword [edx + 8]
mov ecx, dword [ebx + 0x28]
mov edx, dword [esp + 0x2c]
mov eax, esi
push 0
mov dword [ecx + edx*4], 0
mov ecx, 0x3e8
cdq
idiv ecx
push 0
push 0
mov eax, 0x10624dd3
mov ebp, dword [edi]
mov ecx, dword [ebx + 0x60]
push edx
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
push edx
mov edx, dword [esp + 0x40]
mov eax, dword [ecx + edx*8 + 4]
mov ecx, edi
push eax
call dword [ebp + 0x4c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4