Function at 0x10059fd0
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, 0x50
push esi
mov esi, ecx
mov dword [ebp - 0x24], 1
xorps xmm2, xmm2
mov dword [ebp - 4], esi
mov eax, edx
movss dword [ebp - 0x1c], xmm2
push edi
mov ecx, dword [esi + 0x1c]
mov dword [ebp - 0x44], ecx
mov ecx, dword [esi + 0x20]
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebx + 8]
mov dword [ebp - 8], eax
movss xmm1, dword [ecx]
comiss xmm1, xmm2
jbe 0x1005a072
mov edi, dword [eax + 4]
mov edx, dword [eax + 0x1c]
mov eax, 0x100
cwde
movzx ecx, byte [edx + edi + 6]
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edx + edi + 7]
movzx edx, byte [edx + edi + 5]
add cx, ax
movsx esi, cx
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0x1c]
movzx ecx, byte [eax + edi + 4]
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
add dx, cx
movsx eax, dx
sub eax, esi
mov esi, dword [ebp - 4]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
jmp 0x1005a099
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 4]
movzx ecx, byte [edx + eax + 0x12]
movzx eax, byte [edx + eax + 0x13]
shl ecx, 8
add ecx, eax
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
xorps xmm1, xmmword [0x10145730]
mov edx, dword [ebx + 8]
movss xmm4, dword [0x10145040]
movss dword [ebp - 0xc], xmm1
movaps xmm1, xmm4
movzx edi, byte [edx + 0x14]
mov eax, edi
mov dword [esi + 0x1c], edi
movzx ecx, byte [edx + 0x15]
shr eax, 0x1f
movd xmm0, edi
cvtdq2pd xmm0, xmm0
mov dword [esi + 0x20], ecx
addsd xmm0, qword [eax*8 + 0x101456e0]
mov eax, ecx
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movd xmm0, ecx
movss dword [ebp - 0x38], xmm1
movss xmm1, dword [0x10144fec]
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x101456e0]
mov eax, 1
cvtpd2ps xmm0, xmm0
divss xmm4, xmm0
movss dword [ebp - 0x40], xmm4
test edi, edi
jne 0x1005a118
movss dword [ebp - 0x18], xmm2
jmp 0x1005a13d
movd xmm0, edi
movaps xmm3, xmm1
cvtdq2ps xmm0, xmm0
sub eax, edi
divss xmm3, xmm0
movd xmm0, eax
mov eax, 1
cvtdq2ps xmm0, xmm0
mulss xmm3, xmm0
movss dword [ebp - 0x18], xmm3
test ecx, ecx
je 0x1005a161
movd xmm0, ecx
movaps xmm2, xmm1
cvtdq2ps xmm0, xmm0
sub eax, ecx
divss xmm2, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm2, xmm0
movss dword [ebp - 0x1c], xmm2
xor ecx, ecx
mov dword [ebp - 0x20], ecx
cmp dword [edx + 0xc], ecx
jle 0x1005a466
mov edi, dword [ebx + 0x10]
add edi, 8
mov dword [ebp - 0x14], ecx
xor eax, eax
nop word [eax + eax]
cmp dword [edi + 4], 0
je 0x1005a449
cmp word [edi - 4], 0
je 0x1005a449
cmp word [edi - 2], 0
je 0x1005a449
mov eax, dword [edx + 0x10]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [edx + 8]
test eax, eax
jne 0x1005a1b7
mov edx, dword [edx + 4]
add edx, ecx
jmp 0x1005a1ba
mov edx, dword [eax + ecx*4]
mov ecx, dword [ebp - 8]
call fcn.10055250
movzx ecx, word [esi + 0x14]
add word [edi], cx
add word [edi + 2], cx
sub word [edi - 4], cx
sub word [edi - 2], cx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [edx + 0x1c]
mov ecx, dword [edx + 4]
mov esi, dword [edx + 4]
movzx ecx, byte [eax + ecx + 0x23]
movzx eax, byte [eax + esi + 0x22]
mov esi, dword [ebp - 4]
shl eax, 8
add eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
cmp ecx, eax
mov eax, dword [edx + 4]
jge 0x1005a221
lea edx, [eax + ecx*4]
mov eax, dword [ebp - 8]
add edx, dword [eax + 0x20]
mov eax, 0x100
cwde
movzx ecx, byte [edx]
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edx + 1]
jmp 0x1005a243
mov ecx, dword [ebp - 0x2c]
mov edx, dword [edx + 0x20]
lea esi, [eax + ecx*4]
mov eax, 0x100
movzx ecx, byte [esi + edx - 4]
cwde
movsx ecx, cx
imul ecx, eax
movzx eax, byte [esi + edx - 3]
mov esi, dword [ebp - 4]
add cx, ax
mov edx, dword [ebp - 0x10]
movzx eax, cx
cwde
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x4c]
mov ecx, dword [ebp - 8]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x34]
push eax
mov eax, dword [esi + 0x20]
sub esp, 8
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x101456e0]
mov eax, dword [esi + 0x1c]
cvtpd2ps xmm3, xmm0
movd xmm0, eax
mulss xmm3, dword [ebp - 0xc]
shr eax, 0x1f
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x101456e0]
cvtpd2ps xmm2, xmm0
mulss xmm2, dword [ebp - 0xc]
call fcn.10057a90
mov ecx, dword [esi + 0x20]
add esp, 0x18
mov edx, dword [esi + 0x1c]
mov eax, ecx
shr eax, 0x1f
mov esi, dword [esi + 0x10]
push dword [ebp - 0x10]
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
sub esp, 8
sub esp, 8
addsd xmm0, qword [eax*8 + 0x101456e0]
mov eax, edx
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [ebp - 0xc]
movss dword [esp + 4], xmm0
movd xmm0, edx
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x101456e0]
movzx eax, word [edi - 2]
sub eax, ecx
mov ecx, dword [ebp - 8]
inc eax
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [ebp - 0xc]
movss dword [esp], xmm0
push esi
push eax
movzx eax, word [edi - 4]
sub eax, edx
movzx edx, word [edi + 2]
imul edx, esi
inc eax
mov esi, dword [ebp - 4]
push eax
movzx eax, word [edi]
add edx, eax
add edx, dword [esi + 0x24]
call fcn.100598d0
mov eax, dword [esi + 0x1c]
add esp, 0x20
cmp eax, 1
jbe 0x1005a367
mov esi, dword [esi + 0x10]
movzx ecx, word [edi + 2]
movzx edx, word [edi - 4]
push eax
movzx eax, word [edi - 2]
imul ecx, esi
push esi
mov esi, dword [ebp - 4]
push eax
movzx eax, word [edi]
add ecx, eax
add ecx, dword [esi + 0x24]
call fcn.10059af0
add esp, 0xc
mov eax, dword [esi + 0x20]
cmp eax, 1
jbe 0x1005a397
mov esi, dword [esi + 0x10]
movzx ecx, word [edi + 2]
movzx edx, word [edi - 4]
push eax
movzx eax, word [edi - 2]
imul ecx, esi
push esi
push eax
movzx eax, word [edi]
add ecx, eax
mov eax, dword [ebp - 4]
add ecx, dword [eax + 0x24]
call fcn.10059d60
add esp, 0xc
mov esi, dword [ebp - 0x30]
movzx eax, word [edi]
movd xmm0, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x34]
cvtdq2ps xmm0, xmm0
mov word [esi], ax
movzx eax, word [edi + 2]
mov word [esi + 2], ax
movzx eax, word [edi]
add ax, word [edi - 4]
mulss xmm0, dword [ebp - 0xc]
mov edx, dword [ebp - 0x3c]
mov word [esi + 4], ax
movzx eax, word [edi - 2]
add ax, word [edi + 2]
movss dword [esi + 0x10], xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
mov word [esi + 6], ax
mulss xmm0, dword [ebp - 0x38]
addss xmm0, dword [ebp - 0x18]
movss dword [esi + 8], xmm0
movd xmm0, edx
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [ebp - 0x40]
addss xmm0, dword [ebp - 0x1c]
movss dword [esi + 0xc], xmm0
movzx eax, word [edi - 4]
add eax, ecx
mov ecx, dword [ebp - 0x20]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [ebp - 0x38]
addss xmm0, dword [ebp - 0x18]
movss dword [esi + 0x14], xmm0
movzx eax, word [edi - 2]
add eax, edx
mov edx, dword [ebx + 8]
movd xmm0, eax
mov eax, dword [ebp - 0x14]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [ebp - 0x40]
addss xmm0, dword [ebp - 0x1c]
movss dword [esi + 0x18], xmm0
mov esi, dword [ebp - 4]
jmp 0x1005a450
mov dword [ebp - 0x24], 0
inc ecx
add eax, 0x1c
add edi, 0x10
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], eax
cmp ecx, dword [edx + 0xc]
jl 0x1005a180
mov eax, dword [ebp - 0x44]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x48]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x24]
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret