Function at 0x10055860
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0xdc
push esi
mov dword [ebp - 4], ecx
mov eax, dword [0x100c4970]
mov ecx, dword [eax + 0x16e8]
mov edx, dword [eax + 0x16ec]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], edx
movzx eax, byte [ebx + 0x14]
mov ecx, dword [0x100c4970]
movzx edx, byte [ecx + 0x1425]
and eax, edx
mov byte [ebx + 0x14], al
movzx eax, byte [ebx + 0x14]
test eax, eax
je 0x10055e74
movss xmm0, dword [0x100bce08]
movss dword [ebp - 0xdc], xmm0
mov ecx, dword [ebx + 0x10]
and ecx, 0xffffff
mov dword [ebp - 0xb0], ecx
mov edx, dword [ebx + 0xc]
sub edx, 2
imul eax, edx, 3
imul ecx, dword [ebx + 0xc], 6
add eax, ecx
mov dword [ebp - 0xa0], eax
mov edx, dword [ebx + 0xc]
shl edx, 1
mov dword [ebp - 0x70], edx
mov eax, dword [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0xa0]
push ecx
mov ecx, dword [ebp - 4]
call fcn.10053320
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x28]
add edx, 1
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x18], 2
jmp 0x1005592f
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebx + 0xc]
jge 0x10055994
mov edx, 2
imul eax, edx, 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x30]
mov cx, word [ebp - 0x14]
mov word [eax + edx], cx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
lea ecx, [eax + edx*2 - 2]
mov edx, 2
shl edx, 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov word [edx + eax], cx
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
lea eax, [edx + ecx*2]
mov ecx, 2
shl ecx, 1
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x30]
mov word [ecx + edx], ax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x30]
add ecx, 6
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], ecx
jmp 0x10055926
mov eax, dword [ebx + 0xc]
shl eax, 3
call fcn.100852b0
mov dword [ebp - 0xa8], esp
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebx + 0xc]
sub ecx, 1
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x1c], 0
jmp 0x100559db
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0xac], edx
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0xac]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebx + 0xc]
jge 0x10055aa3
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebx + 8]
lea edx, [ecx + eax*8]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebx + 8]
lea edx, [ecx + eax*8]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x54]
movss xmm0, dword [eax]
subss xmm0, dword [ecx]
movss dword [ebp - 0x74], xmm0
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x54]
movss xmm0, dword [edx + 4]
subss xmm0, dword [eax + 4]
movss dword [ebp - 0x78], xmm0
movss xmm0, dword [ebp - 0x74]
movss dword [ebp - 0x3c], xmm0
movss xmm0, dword [ebp - 0x78]
movss dword [ebp - 0x38], xmm0
push ecx
movss xmm0, dword [0x100bce08]
movss dword [esp], xmm0
lea ecx, [ebp - 0x3c]
push ecx
call fcn.10049eb0
add esp, 8
fstp dword [ebp - 0x58]
movss xmm0, dword [ebp - 0x3c]
mulss xmm0, dword [ebp - 0x58]
movss dword [ebp - 0x3c], xmm0
movss xmm0, dword [ebp - 0x38]
mulss xmm0, dword [ebp - 0x58]
movss dword [ebp - 0x38], xmm0
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
movss xmm0, dword [ebp - 0x38]
movss dword [eax + edx*8], xmm0
movss xmm0, dword [ebp - 0x3c]
xorps xmm0, xmmword [0x100bd000]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
movss dword [edx + ecx*8 + 4], xmm0
jmp 0x100559c0
mov eax, dword [ebx + 0xc]
sub eax, 1
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], 0
jmp 0x10055aca
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebx + 0xc]
jge 0x10055e5f
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
lea ecx, [eax + edx*8]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x2c]
lea ecx, [eax + edx*8]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x60]
movss xmm0, dword [edx]
addss xmm0, dword [eax]
movss dword [ebp - 0x80], xmm0
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x60]
movss xmm0, dword [ecx + 4]
addss xmm0, dword [edx + 4]
movss dword [ebp - 0x84], xmm0
movss xmm0, dword [ebp - 0x80]
movss dword [ebp - 0xb8], xmm0
movss xmm0, dword [ebp - 0x84]
movss dword [ebp - 0xb4], xmm0
movss xmm0, dword [ebp - 0xb8]
mulss xmm0, dword [0x100bcdb4]
movss dword [ebp - 0x88], xmm0
movss xmm0, dword [ebp - 0xb4]
mulss xmm0, dword [0x100bcdb4]
movss dword [ebp - 0x8c], xmm0
movss xmm0, dword [ebp - 0x88]
movss dword [ebp - 0x10], xmm0
movss xmm0, dword [ebp - 0x8c]
movss dword [ebp - 0xc], xmm0
movss xmm0, dword [ebp - 0x10]
mulss xmm0, dword [ebp - 0x10]
movss xmm1, dword [ebp - 0xc]
mulss xmm1, dword [ebp - 0xc]
addss xmm0, xmm1
movss dword [ebp - 0x64], xmm0
movss xmm0, dword [ebp - 0x64]
comiss xmm0, dword [0x100bccf0]
jbe 0x10055bf6
movss xmm0, dword [0x100bce08]
divss xmm0, dword [ebp - 0x64]
movss dword [ebp - 0x30], xmm0
movss xmm0, dword [ebp - 0x30]
comiss xmm0, dword [0x100bcf0c]
jbe 0x10055bd8
movss xmm0, dword [0x100bcf0c]
movss dword [ebp - 0x30], xmm0
movss xmm0, dword [ebp - 0x10]
mulss xmm0, dword [ebp - 0x30]
movss dword [ebp - 0x10], xmm0
movss xmm0, dword [ebp - 0xc]
mulss xmm0, dword [ebp - 0x30]
movss dword [ebp - 0xc], xmm0
movss xmm0, dword [ebp - 0x10]
mulss xmm0, dword [0x100bcdb4]
movss dword [ebp - 0x10], xmm0
movss xmm0, dword [ebp - 0xc]
mulss xmm0, dword [0x100bcdb4]
movss dword [ebp - 0xc], xmm0
mov eax, dword [ebp - 8]
mov ecx, dword [ebx + 8]
lea edx, [ecx + eax*8]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
movss xmm0, dword [eax]
subss xmm0, dword [ebp - 0x10]
movss dword [ebp - 0x90], xmm0
mov ecx, dword [ebp - 0x68]
movss xmm0, dword [ecx + 4]
subss xmm0, dword [ebp - 0xc]
movss dword [ebp - 0x94], xmm0
movss xmm0, dword [ebp - 0x90]
movss dword [ebp - 0xc0], xmm0
movss xmm0, dword [ebp - 0x94]
movss dword [ebp - 0xbc], xmm0
mov edx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xc8], edx
mov dword [ebp - 0xc4], eax
mov ecx, 0x14
imul edx, ecx, 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2c]
mov eax, dword [ebp - 0xc8]
mov dword [ecx + edx], eax
mov eax, dword [ebp - 0xc4]
mov dword [ecx + edx + 4], eax
mov ecx, 0x14
imul edx, ecx, 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2c]
mov eax, dword [ebp - 0x4c]
mov dword [ecx + edx + 8], eax
mov eax, dword [ebp - 0x48]
mov dword [ecx + edx + 0xc], eax
mov ecx, 0x14
imul edx, ecx, 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2c]
mov eax, dword [ebx + 0x10]
mov dword [ecx + edx + 0x10], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebx + 8]
lea eax, [edx + ecx*8]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
movss xmm0, dword [ecx]
addss xmm0, dword [ebp - 0x10]
movss dword [ebp - 0x98], xmm0
mov edx, dword [ebp - 0x6c]
movss xmm0, dword [edx + 4]
addss xmm0, dword [ebp - 0xc]
movss dword [ebp - 0x9c], xmm0
movss xmm0, dword [ebp - 0x98]
movss dword [ebp - 0xd0], xmm0
movss xmm0, dword [ebp - 0x9c]
movss dword [ebp - 0xcc], xmm0
mov eax, dword [ebp - 0xd0]
mov ecx, dword [ebp - 0xcc]
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xd4], ecx
mov edx, 0x14
shl edx, 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2c]
mov eax, dword [ebp - 0xd8]
mov dword [ecx + edx], eax
mov eax, dword [ebp - 0xd4]
mov dword [ecx + edx + 4], eax
mov ecx, 0x14
shl ecx, 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x2c]
mov edx, dword [ebp - 0x4c]
mov dword [eax + ecx + 8], edx
mov edx, dword [ebp - 0x48]
mov dword [eax + ecx + 0xc], edx
mov eax, 0x14
shl eax, 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x2c]
mov ecx, dword [ebp - 0xb0]
mov dword [edx + eax + 0x10], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x2c]
add eax, 0x28
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x2c], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
lea ecx, [eax + edx*2]
mov edx, 2
imul eax, edx, 0
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x30]
mov word [eax + edx], cx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + eax*2]
mov eax, 2
shl eax, 0
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x30]
mov word [eax + ecx], dx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x40]
lea ecx, [eax + edx*2]
mov edx, 2
shl edx, 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov word [edx + eax], cx
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x40]
lea eax, [edx + ecx*2]
mov ecx, 2
imul edx, ecx, 3
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x30]
mov word [edx + ecx], ax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x40]
lea ecx, [eax + edx*2]
mov edx, 2
shl edx, 2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov word [edx + eax], cx
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
lea eax, [edx + ecx*2]
mov ecx, 2
imul edx, ecx, 5
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x30]
mov word [edx + ecx], ax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x30]
add eax, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x30], eax
jmp 0x10055ab5
movzx edx, word [ebp - 0x70]
mov eax, dword [ebp - 4]
add edx, dword [eax + 0x28]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x28], edx
jmp 0x10055fa7
mov edx, dword [ebx + 0xc]
sub edx, 2
imul eax, edx, 3
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp - 0xa4]
push eax
mov ecx, dword [ebp - 4]
call fcn.10053320
mov dword [ebp - 0x34], 0
jmp 0x10055eae
mov ecx, dword [ebp - 0x34]
add ecx, 1
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
cmp edx, dword [ebp - 0x44]
jge 0x10055f1a
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebx + 8]
mov edx, dword [ecx + eax*8]
mov eax, dword [ecx + eax*8 + 4]
mov ecx, 0x14
imul ecx, ecx, 0
mov esi, dword [ebp - 4]
mov esi, dword [esi + 0x2c]
mov dword [esi + ecx], edx
mov dword [esi + ecx + 4], eax
mov edx, 0x14
imul eax, edx, 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x2c]
mov ecx, dword [ebp - 0x4c]
mov dword [edx + eax + 8], ecx
mov ecx, dword [ebp - 0x48]
mov dword [edx + eax + 0xc], ecx
mov edx, 0x14
imul eax, edx, 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x2c]
mov ecx, dword [ebx + 0x10]
mov dword [edx + eax + 0x10], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x2c]
add eax, 0x14
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x2c], eax
jmp 0x10055ea5
mov dword [ebp - 0x24], 2
jmp 0x10055f2c
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebx + 0xc]
jge 0x10055f97
mov ecx, 2
imul edx, ecx, 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x30]
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x28]
mov word [edx + ecx], ax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x28]
mov eax, dword [ebp - 0x24]
lea ecx, [edx + eax - 1]
mov edx, 2
shl edx, 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov word [edx + eax], cx
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x28]
add edx, dword [ebp - 0x24]
mov eax, 2
shl eax, 1
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x30]
mov word [eax + ecx], dx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x30]
add eax, 6
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x30], eax
jmp 0x10055f23
movzx edx, word [ebp - 0x44]
mov eax, dword [ebp - 4]
add edx, dword [eax + 0x28]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x28], edx
lea esp, [ebp - 0xe0]
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10