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

Disassembly:
sub esp, 0xb0
push ebx
push esi
push edi
xor ebx, ebx
push 0x40
lea eax, [esp + 0x70]
push ebx
xor edi, edi
push eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], ebx
call fcn.10057070
mov esi, dword [esp + 0xcc]
fld dword [esi + 0x658c]
add esp, 0xc
fadd qword [0x101a3838]
call fcn.10059580
cmp eax, 0xa
jge 0x100cdb4c
mov dword [esp + 0x24], 0x96
jmp 0x100cdb6d
cmp eax, 0xc
jle 0x100cdb5b
mov dword [esp + 0x24], 0x14
jmp 0x100cdb6d
mov ecx, 0xe
sub ecx, eax
lea eax, [ecx + ecx*4]
add eax, eax
add eax, eax
mov dword [esp + 0x24], eax
fldz
fcomp dword [esi + 0x6588]
fnstsw ax
test ah, 0x44
jnp 0x100cdb84
mov dword [esp + 0x24], 0x50
movzx eax, word [esi + 0x66b4]
sub eax, 0xe
cmp eax, 0xe
mov dword [esp + 0x10], 0xe
mov dword [esp + 0xc], eax
jle 0x100cdf18
movzx edx, word [esi + 0x66b6]
mov dword [esp + 0x68], edx
push ebp
nop
cmp edx, 0xa
mov dword [esp + 0x20], 0xa
jle 0x100cdefc
movzx ecx, word [esi + 0x66c0]
movzx edx, word [esi + 0x66bc]
mov eax, dword [esi + 0x66e0]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 0x65b0]
mov dword [esp + 0x24], ecx
mov ecx, 0x14
mov dword [esp + 0x1c], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], ecx
mov eax, 2
mov ebp, eax
sub ebp, ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x18], ebp
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x24]
lea esi, [eax - 2]
mov edx, esi
sar edx, 1
add edx, ecx
mov ecx, dword [esp + 0x1c]
mov edi, esi
and edi, 1
add edi, dword [esp + 0x20]
add ebp, 0xfffffffe
sar edi, cl
lea ecx, [edx*4]
and ecx, 0x1c
and ebp, 2
add ecx, ebp
shr ebx, cl
mov ecx, dword [esp + 0x1c]
sar edx, cl
mov ebp, dword [esp + 0x30]
and ebx, 3
and esi, 4
imul edx, dword [esp + 0x2c]
add edx, edi
lea edx, [ebx + edx*4]
movzx edx, word [ebp + edx*2]
add esi, ebx
mov dword [esp + esi*4 + 0x44], edx
mov esi, dword [esp + 0x14]
lea ebx, [eax - 1]
mov edx, ebx
sar edx, 1
add edx, esi
lea ebp, [edx*4]
lea esi, [eax - 1]
and esi, 1
add esi, dword [esp + 0x20]
and ebp, 0x1c
sar esi, cl
mov ecx, 0xfffffffe
sub ecx, dword [esp + 0x34]
and ebx, 4
and ecx, 2
add ecx, ebp
mov ebp, dword [esp + 0x24]
shr ebp, cl
mov ecx, dword [esp + 0x1c]
sar edx, cl
and ebp, 3
add ebx, ebp
imul edx, dword [esp + 0x2c]
add edx, esi
lea ecx, [ebp + edx*4]
mov edx, dword [esp + 0x30]
movzx ecx, word [edx + ecx*2]
mov ebp, dword [esp + 0x18]
mov dword [esp + ebx*4 + 0x44], ecx
mov ecx, dword [esp + 0x14]
mov edx, eax
sar edx, 1
add edx, ecx
lea ebx, [edx*4]
and ebx, 0x1c
lea ecx, [ebp - 2]
and ecx, 2
add ecx, ebx
mov ebx, dword [esp + 0x24]
shr ebx, cl
mov ecx, dword [esp + 0x1c]
sar edx, cl
mov ecx, dword [esp + 0x30]
and ebx, 3
imul edx, dword [esp + 0x2c]
add edx, edi
lea edx, [ebx + edx*4]
movzx edx, word [ecx + edx*2]
mov ecx, eax
and ecx, 4
add ecx, ebx
mov dword [esp + ecx*4 + 0x44], edx
lea edi, [eax + 1]
mov ecx, dword [esp + 0x14]
mov edx, edi
sar edx, 1
add edx, ecx
lea ecx, [edx*4]
and ecx, 0x1c
mov ebx, ebp
and ebx, 2
add ecx, ebx
mov ebx, dword [esp + 0x24]
add dword [esp + 0x34], 8
shr ebx, cl
mov ecx, dword [esp + 0x1c]
sar edx, cl
mov ecx, dword [esp + 0x30]
and ebx, 3
add eax, 4
imul edx, dword [esp + 0x2c]
add edx, esi
lea edx, [ebx + edx*4]
movzx edx, word [ecx + edx*2]
and edi, 4
add edi, ebx
sub ebp, 8
lea ecx, [eax - 2]
cmp ecx, 8
mov dword [esp + edi*4 + 0x44], edx
mov dword [esp + 0x18], ebp
jl 0x100cdc05
xor eax, eax
jmp 0x100cdd70
mov ecx, dword [esp + eax*4 + 0x44]
cmp ecx, 0x96
jl 0x100cdecf
cmp ecx, 0x5dc
jg 0x100cdecf
inc eax
cmp eax, 8
jl 0x100cdd70
xor ecx, ecx
mov eax, dword [esp + ecx*4 + 0x44]
sub eax, dword [esp + ecx*4 + 0x54]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x32
jg 0x100cdecf
inc ecx
cmp ecx, 4
jl 0x100cdd94
lea edx, [esp + 0x64]
xor ebx, ebx
mov dword [esp + 0x18], edx
lea ebp, [esp + 0xb0]
lea esi, [esp + 0x44]
xor ecx, ecx
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, ebx
add ecx, 2
add esi, 8
cmp ecx, 4
mov dword [esp + edx*4 + 0xb0], eax
jl 0x100cddc7
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0xc4]
push eax
push ebp
push ecx
call fcn.100cd9f0
mov ecx, dword [esp + 0x24]
mov dword [ecx], eax
add ebx, 2
add ecx, 4
add esp, 0xc
add ebp, 8
cmp ebx, 4
mov dword [esp + 0x18], ecx
jl 0x100cddc5
mov esi, dword [esp + 0x68]
or esi, dword [esp + 0x64]
cmp esi, 1
jg 0x100cdecf
xor ecx, ecx
lea edx, [esp + 0xb4]
lea eax, [esp + 0x48]
cmp dword [esp + ecx*4 + 0x64], 0
je 0x100cde63
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 0x100cde38
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov eax, esi
shl eax, 5
add dword [esp + eax + 0x70], edx
add dword [esp + eax + 0x74], ecx
mov edx, dword [esp + 0x4c]
add dword [esp + eax + 0x78], edx
mov ecx, dword [esp + 0x50]
add dword [esp + eax + 0x7c], ecx
mov edx, dword [esp + 0x54]
add dword [esp + eax + 0x80], edx
mov ecx, dword [esp + 0x58]
add dword [esp + eax + 0x84], ecx
mov edx, dword [esp + 0x5c]
add dword [esp + eax + 0x88], edx
mov ecx, dword [esp + 0x60]
add dword [esp + eax + 0x8c], ecx
inc dword [esp + esi*4 + 0x3c]
lea eax, [esp + eax + 0x8c]
lea eax, [esp + esi*4 + 0x3c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x6c]
add eax, 2
add ecx, 4
cmp eax, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x38], ecx
jl 0x100cdbf4
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0xc4]
mov ecx, dword [esp + 0x14]
add ecx, 4
cmp ecx, eax
mov dword [esp + 0x14], ecx
jl 0x100cdbb0
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
pop ebp
mov edx, ebx
or edx, edi
je 0x100cdf9f
imul edi, edi, 0xc8
xor eax, eax
cmp edi, ebx
setl al
shl eax, 5
mov ecx, dword [esp + eax + 0x7c]
add ecx, dword [esp + eax + 0x6c]
mov edx, dword [esp + eax + 0x80]
mov dword [esp + 0xc], ecx
fild dword [esp + 0xc]
add edx, dword [esp + eax + 0x70]
fld1
mov ecx, dword [esp + eax + 0x84]
fld st(0)
mov dword [esp + 0xc], edx
fdivrp st(2)
add ecx, dword [esp + eax + 0x74]
mov edx, dword [esp + eax + 0x88]
add edx, dword [esp + eax + 0x78]
fxch st(1)
fstp dword [esi + 0xe784]
fild dword [esp + 0xc]
mov dword [esp + 0xc], ecx
fdivr st(1)
fstp dword [esi + 0xe788]
fild dword [esp + 0xc]
mov dword [esp + 0xc], edx
fdivr st(1)
fstp dword [esi + 0xe78c]
fidiv dword [esp + 0xc]
fstp dword [esi + 0xe790]
pop edi
pop esi
pop ebx
add esp, 0xb0
ret