Function at 0x4107c0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push ebx
add eax, 0xfffffffd
cmp eax, 9
push esi
mov esi, ecx
ja case.0x4107d7.6
jmp dword [eax*4 + 0x410b28]
mov ecx, dword [esi]
push ecx
push 2
lea edx, [esp + 0x1c]
mov bl, 0xff
push 1
push edx
mov byte [esp + 0x24], bl
mov byte [esp + 0x25], bl
call fcn.00487020
add esp, 0x10
xor eax, eax
cmp word [esi + 4], 0x4949
jne 0x410823
mov ah, byte [esp + 0x15]
xor edx, edx
pop esi
pop ebx
mov al, byte [esp + 0xc]
mov dx, ax
mov dword [esp + 0xc], edx
fild dword [esp + 0xc]
add esp, 8
ret 4
movzx cx, byte [esp + 0x15]
mov ah, byte [esp + 0x14]
pop esi
pop ebx
or eax, ecx
xor edx, edx
mov dx, ax
mov dword [esp + 0xc], edx
fild dword [esp + 0xc]
add esp, 8
ret 4
mov eax, dword [esi]
push eax
push 4
mov bl, 0xff
lea ecx, [esp + 0x1c]
push 1
push ecx
mov byte [esp + 0x24], bl
mov byte [esp + 0x25], bl
mov byte [esp + 0x26], bl
mov byte [esp + 0x27], bl
call fcn.00487020
add esp, 0x10
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call fcn.004084a0
pop esi
mov dword [esp + 4], eax
mov dword [esp + 8], 0
fild qword [esp + 4]
pop ebx
add esp, 8
ret 4
mov eax, dword [esi]
push eax
push 4
mov bl, 0xff
lea ecx, [esp + 0x1c]
push 1
push ecx
mov byte [esp + 0x24], bl
mov byte [esp + 0x25], bl
mov byte [esp + 0x26], bl
mov byte [esp + 0x27], bl
call fcn.00487020
add esp, 0x10
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call fcn.004084a0
mov dword [esp + 8], eax
mov eax, dword [esi]
push eax
push 4
lea ecx, [esp + 0x1c]
push 1
push ecx
mov byte [esp + 0x24], bl
mov byte [esp + 0x25], bl
mov byte [esp + 0x26], bl
mov byte [esp + 0x27], bl
call fcn.00487020
add esp, 0x10
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call fcn.004084a0
test eax, eax
mov dword [esp + 0xc], eax
je 0x41090c
fild dword [esp + 8]
pop esi
pop ebx
fidiv dword [esp + 4]
add esp, 8
ret 4
fld qword [0x65c090]
pop esi
pop ebx
add esp, 8
ret 4
mov eax, dword [esi]
push eax
push 2
lea ecx, [esp + 0x1c]
mov bl, 0xff
push 1
push ecx
mov byte [esp + 0x24], bl
mov byte [esp + 0x25], bl
call fcn.00487020
add esp, 0x10
xor eax, eax
cmp word [esi + 4], 0x4949
jne 0x41095d
mov ah, byte [esp + 0x15]
pop esi
pop ebx
mov al, byte [esp + 0xc]
movsx eax, ax
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
add esp, 8
ret 4
movzx dx, byte [esp + 0x15]
mov ah, byte [esp + 0x14]
pop esi
pop ebx
or eax, edx
movsx eax, ax
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
add esp, 8
ret 4
mov ecx, dword [esi]
push ecx
push 4
mov bl, 0xff
lea edx, [esp + 0x1c]
push 1
push edx
mov byte [esp + 0x24], bl
mov byte [esp + 0x25], bl
mov byte [esp + 0x26], bl
mov byte [esp + 0x27], bl
call fcn.00487020
add esp, 0x10
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.004084a0
pop esi
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
pop ebx
add esp, 8
ret 4
mov ecx, dword [esi]
push ecx
push 4
mov bl, 0xff
lea edx, [esp + 0x1c]
push 1
push edx
mov byte [esp + 0x24], bl
mov byte [esp + 0x25], bl
mov byte [esp + 0x26], bl
mov byte [esp + 0x27], bl
call fcn.00487020
add esp, 0x10
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.004084a0
mov ecx, dword [esi]
push ecx
push 4
lea edx, [esp + 0x1c]
push 1
push edx
mov dword [esp + 0x18], eax
mov byte [esp + 0x24], bl
mov byte [esp + 0x25], bl
mov byte [esp + 0x26], bl
mov byte [esp + 0x27], bl
call fcn.00487020
movzx edx, byte [esp + 0x25]
movzx ecx, byte [esp + 0x26]
add esp, 0x10
cmp word [esi + 4], 0x4949
jne 0x410a45
movzx eax, byte [esp + 0x17]
shl eax, 8
or eax, ecx
movzx ecx, byte [esp + 0x14]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
jmp 0x410a5c
xor eax, eax
mov ah, byte [esp + 0x14]
or eax, edx
movzx edx, byte [esp + 0x17]
shl eax, 8
or eax, ecx
shl eax, 8
or eax, edx
test eax, eax
mov dword [esp + 0x14], eax
je 0x41090c
fild dword [esp + 8]
pop esi
pop ebx
fidiv dword [esp + 0xc]
add esp, 8
ret 4
mov eax, dword [esi]
push eax
push 4
mov bl, 0xff
lea ecx, [esp + 0x1c]
push 1
push ecx
mov byte [esp + 0x24], bl
mov byte [esp + 0x25], bl
mov byte [esp + 0x26], bl
mov byte [esp + 0x27], bl
call fcn.00487020
add esp, 0x10
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call fcn.004084a0
pop esi
mov dword [esp + 0x10], eax
fld dword [esp + 0x10]
pop ebx
add esp, 8
ret 4
push edi
push 0x1234
call dword [sym.imp.WS2_32.dll_ntohs]
sub ax, 0x1234
neg ax
sbb eax, eax
xor ebx, ebx
inc eax
cmp word [esi + 4], 0x4949
sete bl
sub ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
imul ebx, ebx, 7
xor edi, edi
mov eax, dword [esi]
push eax
call fcn.00487bf7
mov ecx, edi
xor ecx, ebx
add esp, 4
inc edi
cmp edi, 8
mov byte [esp + ecx + 0xc], al
jl 0x410ae7
fld qword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 8
ret 4
mov edx, dword [esi]
push edx
call fcn.00487bf7
add esp, 4
pop esi
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
pop ebx
add esp, 8
ret 4