Function at 0x4589b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
sub ebx, eax
shl eax, 8
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0xec]
shl ecx, 8
push edi
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0x38]
push edx
mov eax, edx
push eax
add ecx, 0x20
push ecx
call fcn.004376e0
mov edx, dword [esi + 0x38]
mov edi, dword [edx + 0x90]
add esp, 0xc
test edi, edi
je 0x458c35
fild dword [esp + 0x18]
mov eax, edx
fmul qword [0x540d28]
fstp qword [esp + 0x40]
fild dword [esp + 0x1c]
fmul qword [0x540d28]
fild dword [eax + 0x20]
fmul qword [0x540d30]
fild dword [eax + 0x24]
movsx eax, word [eax + 0x96]
mov dword [esp + 0x10], eax
fmul qword [0x540d30]
fstp qword [esp + 0x38]
fild dword [esp + 0x10]
fmul qword [0x53d978]
fcom qword [0x540500]
fnstsw ax
test ah, 5
jp 0x458a62
fstp st(0)
fld qword [0x540500]
jmp 0x458a77
fcom qword [0x5404f8]
fnstsw ax
test ah, 0x41
jne 0x458a77
fstp st(0)
fld qword [0x5404f8]
fld st(0)
sub esp, 8
fmul st(1)
fsubr qword [0x53d648]
fdivr qword [0x53d648]
fst qword [esp + 0x18]
fld qword [esp + 0x48]
fsub st(2)
fst qword [esp + 0x38]
fmul st(1)
fmul st(2)
fstp qword [esp + 0x28]
fmulp st(1)
fmul st(1)
fst qword [esp + 0x48]
fld st(0)
fmulp st(1)
fadd st(0), st(0)
fld qword [esp + 0x40]
fmul qword [esp + 0x40]
fld st(2)
fmul st(3)
faddp st(1)
fmul qword [esp + 0x18]
fadd st(0), st(0)
fld qword [esp + 0x38]
fmul qword [esp + 0x38]
fld st(4)
fmul st(5)
faddp st(1)
fmul qword [esp + 0x18]
fld qword [esp + 0x28]
fmul qword [esp + 0x28]
faddp st(1)
fstp qword [esp + 0x30]
fld qword [esp + 0x38]
fmul st(3)
fld qword [esp + 0x40]
fmul st(5)
faddp st(1)
fmul qword [esp + 0x18]
fadd st(0), st(0)
fld st(1)
fmul qword [0x53d650]
faddp st(1)
fld qword [esp + 0x48]
fmul qword [esp + 0x28]
fadd st(0), st(0)
fld st(3)
fmul qword [0x53d650]
faddp st(1)
faddp st(1)
fstp qword [esp + 0x40]
fadd st(1)
fstp qword [esp + 0x58]
fstp st(0)
fstp st(0)
fstp st(0)
fld qword [esp + 0x30]
fstp qword [esp]
call fcn.004d4560
add esp, 8
fstp qword [esp + 0x30]
test ebx, ebx
je 0x458c35
mov esi, dword [ebp + 0x14]
test bl, 0x10
fld qword [esp + 0x28]
jne 0x458b71
fdiv qword [esp + 0x30]
fadd qword [esp + 0x30]
fmul qword [0x53d650]
fld qword [esp + 0x28]
fdiv st(1)
fadd st(1)
fmul qword [0x53d650]
fstp qword [esp + 0x30]
fstp st(0)
jmp 0x458b83
sub esp, 8
fstp qword [esp]
call fcn.004d4560
fstp qword [esp + 0x38]
add esp, 8
fld qword [esp + 0x30]
fadd qword [esp + 0x20]
fmul qword [str..sol]
fstp qword [esp + 0x48]
fld qword [esp + 0x48]
fistp dword [esp + 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x38]
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov cl, byte [edx + 0x94]
and ecx, 0xc
cmp ecx, 4
je 0x458bd2
cmp ecx, 8
je 0x458bdc
cmp eax, 0x100
jle 0x458bca
mov eax, pe_nt_image_headers32
jmp 0x458be1
test eax, eax
jge 0x458be1
xor eax, eax
jmp 0x458be1
test ah, 1
je 0x458bdc
xor eax, 0xff
and eax, 0xff
movzx cx, byte [edi + eax*4 + 3]
fld qword [esp + 0x40]
fadd qword [esp + 0x20]
mov word [esi + 6], cx
movzx dx, byte [edi + eax*4 + 2]
fstp qword [esp + 0x20]
fld qword [esp + 0x38]
mov word [esi + 4], dx
fadd qword [esp + 0x28]
movzx cx, byte [edi + eax*4 + 1]
fstp qword [esp + 0x28]
mov word [esi + 2], cx
movzx dx, byte [edi + eax*4]
fld qword [esp + 0x38]
fadd qword [esp + 0x50]
mov word [esi], dx
add esi, 8
fstp qword [esp + 0x38]
dec ebx
jne 0x458b44
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret