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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa0
push ebx
push ebp
push esi
push edi
xor edi, edi
push 0x40
lea eax, [esp + 0x64]
push edi
xor esi, esi
push eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], edi
call fcn.00436440
fld dword [0x465f70]
fadd qword [0x4517d0]
add esp, 0xc
call fcn.00436cf0
cmp eax, 0xa
jge 0x40190c
mov dword [esp + 0x18], 0x96
jmp 0x40192d
cmp eax, 0xc
jle 0x40191b
mov dword [esp + 0x18], 0x14
jmp 0x40192d
mov ecx, 0xe
sub ecx, eax
lea eax, [ecx + ecx*4]
add eax, eax
add eax, eax
mov dword [esp + 0x18], eax
fldz
fcomp dword [0x4ac414]
fnstsw ax
test ah, 0x44
jnp 0x401944
mov dword [esp + 0x18], 0x50
movzx ecx, word [0x4ac486]
sub ecx, 0xe
cmp ecx, 0xe
mov dword [esp + 0x20], 0xe
mov dword [esp + 0x14], ecx
jle 0x401b82
movzx eax, word [0x466040]
cmp eax, 0xa
mov dword [esp + 0x1c], 0xa
jle 0x401b67
mov edi, 0xffffffec
mov dword [esp + 0x28], edi
xor esi, esi
mov edx, dword [esp + 0x20]
mov ecx, esi
sar ecx, 1
lea eax, [ecx + edx]
lea ecx, [eax*4]
and ecx, 0x1c
mov edx, edi
and edx, 2
add ecx, edx
mov edx, dword [0x466120]
shr edx, cl
movzx ecx, word [0x4ac426]
mov ebx, esi
and ebx, 1
add ebx, dword [esp + 0x1c]
sar eax, cl
sar ebx, cl
movzx ecx, word [0x466104]
imul eax, ecx
mov ecx, dword [0x4ac418]
and edx, 3
add ebx, eax
lea eax, [edx + ebx*4]
movzx eax, word [ecx + eax*2]
mov ecx, esi
and ecx, 4
add ecx, edx
inc esi
sub edi, 2
cmp esi, 8
mov dword [esp + ecx*4 + 0x40], eax
jl 0x401986
xor eax, eax
mov ecx, dword [esp + eax*4 + 0x40]
cmp ecx, 0x96
jl 0x401b3e
cmp ecx, 0x5dc
jg 0x401b3e
inc eax
cmp eax, 8
jl 0x4019f0
xor ecx, ecx
mov eax, dword [esp + ecx*4 + 0x40]
sub eax, dword [esp + ecx*4 + 0x50]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x32
jg 0x401b3e
inc ecx
cmp ecx, 4
jl 0x401a14
mov ebx, dword [esp + 0x18]
lea edx, [esp + 0x38]
lea eax, [esp + 0xa0]
xor ebp, ebp
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], eax
lea esi, [esp + 0x40]
xor ecx, ecx
nop
mov edi, dword [esi]
mov eax, dword [esi + 4]
sub eax, edi
shl eax, 0xa
cdq
idiv edi
mov edx, ecx
sar edx, 1
add edx, ebp
add ecx, 2
add esi, 8
cmp ecx, 4
mov dword [esp + edx*4 + 0xa0], eax
jl 0x401a50
mov edi, dword [esp + 0x24]
call fcn.004017c0
mov ecx, dword [esp + 0x2c]
add dword [esp + 0x24], 8
mov dword [ecx], eax
add ebp, 2
add ecx, 4
cmp ebp, 4
mov dword [esp + 0x2c], ecx
jl 0x401a4d
mov esi, dword [esp + 0x3c]
or esi, dword [esp + 0x38]
cmp esi, 1
jg 0x401b3e
xor ecx, ecx
lea edx, [esp + 0xa4]
lea eax, [esp + 0x44]
cmp dword [esp + ecx*4 + 0x38], 0
je 0x401ae1
mov edi, dword [edx - 4]
add edi, 0x400
imul edi, dword [eax - 4]
sar edi, 0xa
mov dword [eax], edi
mov edi, dword [edx]
add edi, 0x400
imul edi, dword [eax + 4]
sar edi, 0xa
mov dword [eax + 8], edi
inc ecx
add edx, 8
add eax, 0x10
cmp ecx, 2
jl 0x401ab6
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov eax, esi
shl eax, 5
add dword [esp + eax + 0x60], ecx
add dword [esp + eax + 0x64], edx
mov ecx, dword [esp + 0x48]
add dword [esp + eax + 0x68], ecx
mov edx, dword [esp + 0x4c]
add dword [esp + eax + 0x6c], edx
mov ecx, dword [esp + 0x50]
add dword [esp + eax + 0x70], ecx
mov edx, dword [esp + 0x54]
add dword [esp + eax + 0x74], edx
mov ecx, dword [esp + 0x58]
add dword [esp + eax + 0x78], ecx
mov edx, dword [esp + 0x5c]
add dword [esp + eax + 0x7c], edx
inc dword [esp + esi*4 + 0x30]
lea eax, [esp + eax + 0x7c]
lea eax, [esp + esi*4 + 0x30]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x28]
movzx eax, word [0x466040]
add ecx, 2
sub edi, 4
cmp ecx, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], edi
jl 0x401984
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add edx, 4
cmp edx, ecx
mov dword [esp + 0x20], edx
jl 0x40196a
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
mov eax, edi
or eax, esi
je 0x401c02
imul esi, esi, 0xc8
xor eax, eax
cmp esi, edi
setl al
shl eax, 5
mov ecx, dword [esp + eax + 0x70]
add ecx, dword [esp + eax + 0x60]
mov edx, dword [esp + eax + 0x74]
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
add edx, dword [esp + eax + 0x64]
fld1
mov ecx, dword [esp + eax + 0x78]
fld st(0)
mov dword [esp + 0x14], edx
fdivrp st(2)
add ecx, dword [esp + eax + 0x68]
mov edx, dword [esp + eax + 0x7c]
add edx, dword [esp + eax + 0x6c]
fxch st(1)
fstp dword [0x486150]
fild dword [esp + 0x14]
mov dword [esp + 0x14], ecx
fdivr st(1)
fstp dword [0x486154]
fild dword [esp + 0x14]
mov dword [esp + 0x14], edx
fdivr st(1)
fstp dword [0x486158]
fild dword [esp + 0x14]
fdivp st(1)
fstp dword [0x48615c]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret