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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
push ebx
push esi
push edi
mov eax, dword [ebp + 0x40]
fldz
mov ecx, dword [eax + 0x24]
fstp dword [esp + 0x30]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov ebx, dword [edx + 8]
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 8]
mov eax, dword [edx + 8]
mov edx, dword [ebp + 0x30]
mov dword [esp + 0x54], ecx
mov ecx, dword [ebp + 0x24]
mov dword [esp + 0x88], eax
mov eax, 1
shl eax, cl
add edx, 3
sar edx, 2
xor esi, esi
test edx, edx
lea ecx, [eax + eax]
mov byte [esp + 0x10], 0
mov byte [esp + 0x11], 0
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
mov byte [esp + 0xd], 0x2e
mov byte [esp + 0xf], 0
mov dword [esp + 0x60], ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x94], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], esi
jle 0x100047d9
lea eax, [edx - 1]
cmp esi, eax
jge 0x10004292
mov dword [esp + 0x2c], 4
jmp 0x100042a7
lea eax, [edx*4]
mov ecx, eax
mov eax, dword [ebp + 0x30]
sub eax, ecx
add eax, 4
mov dword [esp + 0x2c], eax
cmp dword [ebp + 0x2c], 0
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
lea edi, [ebx + 4]
mov dword [esp + 0x38], 0
jle 0x100047c6
add esi, esi
add esi, esi
mov edx, 0x1c
sub edx, esi
mov esi, dword [esp + 0x88]
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x54]
sub esi, edx
sub edx, ebx
mov dword [esp + 0x8c], edx
mov edx, 4
sub edx, ebx
mov dword [esp + 0x70], edx
mov edx, 0xfffffffc
sub edx, ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x84], esi
mov dword [esp + 0x6c], edx
jmp 0x1000431f
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x68]
mov esi, dword [esp + 0x84]
mov edx, ecx
mov ecx, dword [edi + 4]
mov dword [esp + 0x80], eax
or eax, ecx
or eax, edx
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x68], ecx
lea ecx, [edx + edi]
mov esi, dword [ecx + esi]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x78]
shr esi, cl
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x34], eax
and esi, 0xf
cmp esi, dword [ecx*4 + 0x1009b100]
mov dword [esp + 0x40], esi
je 0x100047a3
mov edx, dword [esp + 0x18]
or ebx, 0xffffffff
cmp edx, 7
mov byte [esp + 0xe], 1
je 0x10004390
mov edi, dword [esp + 0x20]
add edx, edx
add edx, edx
mov ecx, 0x1b
sub ecx, edx
shr eax, cl
test al, 0x3f
jmp 0x10004392
test al, 0x1f
jne 0x10004529
cmp dword [esp + 0x2c], 4
jne 0x10004529
test esi, esi
jne 0x10004529
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x6c]
mov esi, dword [esp + 0x3c]
add eax, eax
add eax, eax
mov ebx, dword [ecx + eax*4 + 4]
add edi, edx
mov edx, dword [ecx + eax*4]
test dword [edi + edx], esi
mov byte [esp + 0xe], 0
setne dl
test dword [edi + ebx], esi
mov ebx, dword [ecx + eax*4 + 8]
mov eax, dword [ecx + eax*4 + 0xc]
setne byte [esp + 0x11]
test dword [edi + ebx], esi
movzx ecx, byte [esp + 0x11]
setne bl
test dword [edi + eax], esi
movzx esi, dl
setne al
add esi, esi
or esi, ecx
mov byte [esp + 0x10], dl
movzx edx, bl
add esi, esi
mov byte [esp + 0x13], al
or esi, edx
movzx eax, al
add esi, esi
or esi, eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov byte [esp + 0x12], bl
jne 0x1000443a
add ecx, 0x11
push ecx
mov ecx, dword [ebp + 0x40]
add edx, 0x11
push edx
push 0
call fcn.10003160
mov edi, dword [esp + 0x20]
jmp 0x1000479f
add ecx, 0x11
push ecx
mov ecx, dword [ebp + 0x40]
add edx, 0x11
push edx
push 1
call fcn.10003160
mov ebx, dword [esi*4 + 0x1009b158]
mov esi, dword [ebp + 0x40]
test ebx, 0xfffffffe
setne dl
lea eax, [esp + 0xf]
push eax
lea ecx, [esp + 0x11]
push ecx
mov ecx, esi
push edx
call fcn.10003160
lea eax, [esp + 0xf]
push eax
movzx edx, bl
lea ecx, [esp + 0x11]
push ecx
and edx, 0xffffff01
push edx
mov ecx, esi
call fcn.10003160
mov edx, dword [esp + 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax + edi + 4]
add edx, edx
add edx, edx
mov ecx, 0x1f
sub ecx, ebx
sub ecx, edx
shr eax, cl
mov ecx, dword [ebp + 0x38]
lea edi, [ebx + edx]
mov edx, dword [ecx + edi*4]
and al, 1
mov byte [esp + 0x5c], al
mov eax, dword [esp + 0x38]
lea eax, [edx + eax*8]
add dword [0x1009fa24], 1
fld qword [eax]
fstp dword [esp + 0x4c]
fld dword [esp + 0x4c]
fadd dword [esp + 0x30]
fstp dword [esp + 0x30]
fild dword [esp + 0x3c]
fsubr qword [eax]
fstp qword [eax]
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [esp + 0x5c]
add ecx, 9
push ecx
add edx, 9
push edx
push eax
mov ecx, esi
call fcn.10003160
mov esi, dword [esp + 0x40]
mov ecx, edi
mov edi, dword [esp + 0x20]
mov eax, 0x80000000
shr eax, cl
mov ecx, dword [esp + 0x14]
or ecx, eax
or dword [esp + 0x34], ecx
cmp byte [esp + 0x5c], 0
mov dword [esp + 0x14], ecx
je 0x10004529
mov ecx, dword [esp + 0x28]
or dword [ecx], eax
mov edx, dword [esp + 0x18]
mov eax, dword [edi]
add edx, edx
add edx, edx
mov ecx, 0x1c
sub ecx, edx
shr eax, cl
add ebx, 1
mov dword [esp + 0x50], ebx
and eax, 0xf
or esi, eax
cmp ebx, dword [esp + 0x2c]
mov dword [esp + 0x40], esi
jae 0x10004799
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x6c]
add ecx, edi
add eax, edi
mov dword [esp + 0x74], ecx
lea edi, [ebx + edx]
lea ecx, [esp + 0x10]
mov dword [esp + 0x48], eax
lea eax, [edi*4]
sub ecx, edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], ecx
cmp byte [ebx + esi*4 + 0x1009b118], 0
jne 0x1000477a
mov ebx, dword [eax + section..data]
test dword [esp + 0x34], ebx
je 0x100045dc
mov ecx, dword [eax + 0x1009b080]
mov esi, ebx
and esi, dword [esp + 0x80]
mov edx, ebx
and edx, dword [esp + 0x14]
shr esi, cl
shr edx, cl
add esi, esi
add esi, esi
add esi, esi
or esi, edx
mov edx, ebx
and edx, dword [esp + 0x68]
add esi, esi
add esi, esi
shr edx, cl
add esi, esi
or esi, edx
cmp edi, 0x1f
jne 0x100045d4
add esi, esi
mov ecx, dword [ebp + 0x1c]
mov ecx, dword [ecx + esi*4]
jmp 0x100045e0
xor esi, esi
xor ecx, ecx
cmp byte [esp + 0xe], 0
mov dword [esp + 0x28], ecx
je 0x1000460a
mov edx, dword [ebp + 0xc]
mov eax, dword [eax + edx]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x3c]
test dword [ecx + eax], edx
mov ecx, dword [esp + 0x4c]
setne al
mov byte [ecx + edi], al
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x4c]
mov al, byte [edx + edi]
mov edx, dword [esp + 0x24]
mov edx, dword [edx + 4]
add edx, ecx
push edx
mov edx, dword [esp + 0x28]
mov edx, dword [edx]
add edx, ecx
mov ecx, dword [ebp + 0x40]
push edx
push eax
mov byte [esp + 0x9c], al
call fcn.10003160
cmp byte [esp + 0x90], 0
je 0x1000476e
add dword [0x1009fa24], 1
mov ecx, edi
mov eax, 0x80000000
shr eax, cl
mov ecx, dword [esp + 0x14]
or ecx, eax
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x34]
or eax, ecx
test eax, ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x34], eax
je 0x100046e7
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x48]
mov eax, dword [edx + ecx]
mov edx, dword [edx + ecx + 4]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x74]
mov ecx, dword [edx + ecx]
mov edx, ecx
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x28]
or edx, ecx
or edx, eax
test ebx, edx
je 0x100046cd
lea edx, [esp + 0x64]
push edx
mov edx, dword [esp + 0x3c]
push edi
push edx
mov edx, dword [esp + 0x88]
push esi
push edx
push ecx
push eax
call fcn.10003a20
mov eax, dword [ebp + 0x20]
mov ecx, dword [esp + 0x80]
mov edx, dword [eax + ecx*4]
mov al, dl
add esp, 0x1c
and al, 1
shr edx, 1
jmp 0x100046ee
mov eax, dword [ebp + 0x20]
and esi, 0xaa
mov ecx, esi
mov edx, dword [eax + ecx*4]
mov al, dl
and al, 1
mov dword [esp + 0x64], esi
shr edx, 1
jmp 0x100046ee
mov edx, 9
xor al, al
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx + 8]
mov esi, dword [esp + 0x18]
add esi, esi
mov ecx, 0x1f
sub ecx, dword [esp + 0x50]
add esi, esi
sub ecx, esi
mov esi, dword [esp + 0x48]
mov ebx, dword [ebx + esi + 4]
shr ebx, cl
mov ecx, dword [esp + 0x24]
mov esi, dword [ecx + 4]
mov ecx, dword [ecx]
and bl, 1
xor al, bl
add esi, edx
push esi
add ecx, edx
push ecx
mov ecx, dword [ebp + 0x40]
push eax
call fcn.10003160
test bl, bl
je 0x10004742
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x48]
or dword [eax + ecx + 4], edx
mov eax, dword [ebp + 0x38]
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx + eax]
mov eax, dword [esp + 0x38]
fld qword [edx + eax*8]
lea eax, [edx + eax*8]
fstp dword [esp + 0x58]
fld dword [esp + 0x58]
fadd dword [esp + 0x30]
fstp dword [esp + 0x30]
fild dword [esp + 0x3c]
fsubr qword [eax]
fstp qword [eax]
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x50]
mov esi, dword [esp + 0x40]
add ebx, 1
add eax, 4
add edi, 1
cmp ebx, dword [esp + 0x2c]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x44], eax
jb 0x10004582
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov dword [edi], ecx
mov ebx, dword [esp + 0x60]
mov eax, dword [esp + 0x38]
add eax, 1
add edi, 4
cmp eax, dword [ebp + 0x2c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], edi
jl 0x10004310
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
add esi, 1
cmp esi, edx
mov dword [esp + 0x18], esi
jl 0x10004281
mov eax, dword [esp + 0x3c]
mov edx, dword [0x1009fa24]
fld dword [esp + 0x30]
imul edx, eax
fld st(0)
mov dword [esp + 0x1c], edx
add eax, 0xffffffff
pop edi
fisub dword [esp + 0x18]
pop esi
pop ebx
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
mov dword [esp + 0x10], eax
fimul dword [esp + 0x10]
mov eax, dword [ebp + 0x34]
fmul dword [ebp + 0x3c]
fild dword [esp + 0x88]
fmulp st(2)
faddp st(1)
fsubr qword [eax]
fstp qword [eax]
mov esp, ebp
pop ebp
ret