Function at 0x417db0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push ebx
push esi
push edi
mov edi, dword [ecx + 4]
movzx edx, word [edi + 0x10]
shl edx, 8
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
mov ebx, 1
fild dword [esp + 0x28]
mov dword [esp + 0x10], ebx
fmul dword [0x784278]
fld dword [0x783bdc]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x417dfd
fstp st(0)
fld dword [0x783bdc]
movzx eax, word [edi + 0x14]
shl eax, 8
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
fmul dword [0x784278]
fchs
fsub dword [0x783be4]
fld st(1)
fchs
fst dword [esp + 0x48]
fxch st(1)
fstp dword [esp + 0x4c]
movzx edx, word [edi + 0x14]
shl edx, 8
mov dword [esp + 0x28], edx
fild dword [esp + 0x28]
fmul dword [0x784278]
fchs
fsub dword [0x783be0]
fld st(2)
fstp dword [esp + 0x40]
fstp dword [esp + 0x44]
movzx eax, word [edi + 0x16]
shl eax, 8
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
fmul dword [0x784278]
fadd dword [0x783be0]
fstp dword [esp + 0x28]
mov edx, dword [esp + 0x28]
fstp dword [esp + 0x58]
mov dword [esp + 0x5c], edx
movzx eax, word [edi + 0x16]
shl eax, 8
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
fmul dword [0x784278]
fadd dword [0x783be4]
fxch st(1)
fstp dword [esp + 0x50]
fstp dword [esp + 0x54]
movzx edx, word [edi + 0x16]
movzx eax, word [edi + 0x14]
shl edx, 8
mov dword [esp + 0x28], edx
shl eax, 8
fild dword [esp + 0x28]
mov dword [esp + 0x28], eax
fmul dword [0x784278]
fild dword [esp + 0x28]
fmul dword [0x784278]
fst dword [esp + 0x28]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x417edc
fstp st(0)
fld dword [esp + 0x28]
fadd dword [0x783be4]
mov edx, dword [ebp + 0xc]
xor eax, eax
cmp edx, ebx
fstp dword [esp + 0x30]
mov dword [esp + 0x28], eax
jle 0x418126
add ecx, 0x14
mov dword [esp + 0x1c], ecx
mov edi, edi
cmp eax, dword [0x88d218]
jge 0x418126
mov esi, dword [eax*4 + 0x88d21c]
cmp esi, dword [esp + 0x2c]
mov dword [esp + 0x24], esi
je 0x418112
mov ecx, dword [esp + 0x30]
push ecx
push edi
lea edx, [esi + 0x68]
push edx
lea eax, [esi + 0x60]
push eax
call fcn.0043d480
add esp, 0x10
test eax, eax
je 0x418112
cmp word [esi + 0x34], 0
mov dword [esp + 0x18], 0
jle 0x418112
jmp 0x417f60
mov esi, dword [esp + 0x24]
jmp 0x417f60
movsx edx, word [edi + 0x18]
mov ecx, dword [esp + 0x18]
movsx eax, word [edi + 0x1a]
imul ecx, ecx, 0x38
mov dword [esp + 0x20], edx
movsx edx, word [ecx + esi + 0xa6]
fild dword [esp + 0x20]
mov dword [esp + 0x20], eax
fmul dword [0x81e7fc]
lea esi, [ecx + esi + 0x8c]
movsx ecx, word [esi + 0x18]
fst dword [esp + 0x14]
mov dword [esp + 0x34], ecx
fild dword [esp + 0x20]
fmul dword [0x81e7fc]
fst dword [esp + 0x20]
fild dword [esp + 0x34]
mov dword [esp + 0x34], edx
fmul dword [0x81e7fc]
fild dword [esp + 0x34]
fmul dword [0x81e7fc]
fmul st(2)
fxch st(1)
fmul st(3)
faddp st(1)
fstp st(2)
fstp st(0)
fcom dword [0x7d7d3c]
fnstsw ax
test ah, 5
jp 0x417fe2
mov eax, 1
jmp 0x417fe4
xor eax, eax
mov ecx, dword [ebp + 8]
fabs
mov bl, byte [ecx + 8]
fcomp dword [0x783be8]
xor bl, al
fnstsw ax
test ah, 0x41
jne 0x41809c
test bl, bl
mov eax, dword [esi + 0xc]
je 0x41800b
shr eax, 0x19
jmp 0x41800e
shr eax, 0x1a
and eax, 1
test eax, eax
je 0x41809c
fld dword [esp + 0x14]
push 0
fld dword [esp + 0x24]
lea edx, [esp + 0x3c]
fld dword [esp + 0x18]
push edx
fld dword [esp + 0x28]
lea eax, [esp + 0x48]
fld dword [esi + 4]
push eax
fsub dword [edi + 4]
lea ecx, [esp + 0x54]
push ecx
fstp dword [esp + 0x24]
fld dword [esi]
fsub dword [edi]
fst dword [esp + 0x30]
fmul st(2)
fld dword [esp + 0x24]
fmul st(2)
faddp st(1)
fstp dword [esp + 0x48]
fstp st(0)
fstp st(0)
fld dword [esp + 0x30]
fmul st(1)
fld dword [esp + 0x24]
fmul st(3)
fsubp st(1)
fstp dword [esp + 0x4c]
fstp st(0)
fstp st(0)
call fcn.0043d480
add esp, 0x10
test eax, eax
jne 0x4180e7
push eax
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x64]
push ecx
call fcn.0043d480
add esp, 0x10
test eax, eax
jne 0x4180e7
fld dword [esi]
fsub dword [edi]
fld dword [esi + 4]
fsub dword [edi + 4]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
fstp st(2)
fstp st(0)
fmul dword [0x7851c0]
call fcn.0075bc00
cmp eax, 1
jge 0x4180cb
mov eax, 1
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
add ecx, eax
movsx eax, word [edx + 0x34]
cmp ecx, eax
mov dword [esp + 0x18], ecx
jl 0x417f54
jmp 0x41810e
mov ecx, dword [esp + 0x1c]
mov dword [ecx - 4], esi
mov ecx, esi
call fcn.005d8700
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
inc edx
mov dword [ecx - 8], eax
mov byte [ecx], bl
add ecx, 0xc
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], ecx
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
mov ecx, dword [ebp + 0xc]
inc eax
cmp ebx, ecx
mov dword [esp + 0x28], eax
jl 0x417f00
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8