Function at 0x454a50
Capabilities:
Encrypt data using rc4 prga
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
cmp dword [0x5ba99c], 0
mov eax, edx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], eax
push edi
mov dword [ebp - 8], esi
jne 0x454a79
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [eax], 0
mov ecx, dword [esi + 0xf0]
cmp ecx, 1
mov al, byte [esi + 0x111]
sete byte [ebp - 0x18]
test al, al
je 0x454aae
xor ecx, 1
movzx eax, al
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0x18
add ecx, 0xf
add ecx, eax
mov dword [ebp - 4], ecx
jmp 0x454ab5
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x70]
or eax, dword [esi + 0x30]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x74]
or eax, dword [esi + 0x34]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x78]
or eax, dword [esi + 0x38]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x7c]
or eax, dword [esi + 0x3c]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x80]
or eax, dword [esi + 0x40]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x84]
or eax, dword [esi + 0x44]
test byte [esi + 0x110], 0xf
mov dword [ebp - 0x2c], eax
jne 0x454c79
mov ecx, dword [esi + 0x54]
mov edx, dword [esi + 0x4c]
mov ebx, dword [esi + 0x48]
movzx eax, byte [esi + 0x112]
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x340]
push ecx
push dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
push dword [ebp - 0x1c]
mov edi, dword [esi + 0x50]
push dword [ebp - 0x20]
or edx, dword [ecx + 0x8c]
push dword [ebp - 0x24]
or ebx, dword [ecx + 0x88]
push dword [ebp - 0x28]
mov esi, dword [esi + 0x58]
push dword [ebp - 0x2c]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x30]
mov eax, dword [ebp - 8]
push edx
push ebx
mov ebx, ecx
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x34]
mov eax, dword [eax + 0x5c]
or ecx, dword [ebx + 0x94]
or edi, dword [ebx + 0x90]
or eax, dword [ebx + 0x9c]
or esi, dword [ebx + 0x98]
push ecx
mov ecx, dword [ebp - 0xc]
push edi
push eax
push esi
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
push dword [ebx + 0x24]
push dword [ebx + 0x20]
call fcn.00472b40
mov esi, eax
add esp, 0x48
cmp esi, 0xffffffff
je 0x454c79
mov eax, dword [ebp - 0x10]
and esi, 0xf
xor edx, edx
mov dword [ebp - 0x14], 0
cmp byte [ebp + 0xc], dl
mov dword [ebp - 0x10], 0
mov ecx, dword [esi*4 + 0x488e80]
cmove edx, esi
mov dword [eax], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], edx
mov dword [eax + 0x800], eax
xor eax, eax
mov dword [ebp - 4], eax
nop dword [eax]
mov eax, dword [ebp + eax*4 - 0x340]
cmp eax, 0xffffffff
je 0x454c6d
mov esi, eax
mov edi, eax
shr esi, 0xa
mov ecx, eax
shr edi, 4
and ecx, 0xf
and esi, 0x3f
mov dword [ebp - 0x10], ecx
and edi, 0x3f
cmp ecx, edx
jb 0x454c5b
mov ecx, eax
and eax, 0x80000
shr ecx, 0x10
and ecx, 7
mov edx, dword [ecx*4 + 0x488e94]
movzx ecx, byte [edi + ebx + 0xa8]
shl edx, 3
or edx, ecx
movzx ecx, byte [esi + ebx + 0xa8]
shl edx, 3
or edx, ecx
mov ecx, dword [ebp - 0x10]
shl edx, 6
or edx, edi
shl edx, 4
mov ecx, dword [ecx*4 + 0x488e80]
or edx, eax
shl edx, 2
or edx, esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x800]
mov dword [eax], edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], ecx
add dword [esi + 0x800], 8
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, 0xc1
jl 0x454bd0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret