Function at 0x50bb10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x60
mov edi, ecx
mov ecx, dword [ebp + 0x14]
add edx, 4
cmp edx, 5
jae 0x50bb43
mov eax, 0x1d
bt eax, edx
mov al, 1
jb 0x50bff0
cmp ecx, 2
jne 0x50bb4e
jmp 0x50bff0
mov al, 1
cmp ecx, 2
je 0x50bff0
mov ecx, dword [ebp + 0xc]
mov ebx, 0xffffffff
mov eax, edi
nop dword [eax + eax]
mov esi, eax
mov eax, dword [eax + 0x1d8]
add ebx, 1
test eax, eax
jne 0x50bb60
xor edi, esi
sub ecx, dword [ebp + 8]
lea eax, [esi + 0x1f0]
mov dword [esp + 4], eax
lea eax, [esi + 0x1f8]
xor edx, edx
or edi, dword [ebp + 0x14]
setne dl
mov dword [esp + 0x24], eax
cmove eax, dword [esp + 4]
mov dword [esp + 0x20], eax
mov edi, ecx
sar edi, 0x1f
mov eax, dword [esi + edx*8 + 0x1f0]
mov dword [esp + 8], eax
mov eax, ecx
add eax, dword [esp + 8]
mov edx, dword [esi + edx*8 + 0x1f4]
mov eax, edi
adc eax, edx
jae 0x50bbc3
xor eax, eax
jmp 0x50bff0
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 8]
add eax, ecx
adc edi, edx
mov ecx, dword [esp + 0x20]
mov dword [ecx + 4], edi
mov dword [ecx], eax
mov eax, dword [esp + 4]
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov edi, dword [esp + 0x24]
mov ecx, dword [edi]
add ecx, eax
mov dword [esp + 4], ecx
mov ecx, dword [edi + 4]
adc ecx, edx
mov edi, eax
or edi, edx
je 0x50bc52
movd xmm0, dword [esp + 4]
movd xmm1, ecx
punpckldq xmm0, xmm1
movq qword [esp + 0x50], xmm0
mov edi, ecx
shr edi, 0x1f
fild qword [esp + 0x50]
fadd dword [edi*4 + 0x56c608]
fstp dword [esp + 0x34]
movss xmm0, dword [esp + 0x34]
movd xmm1, eax
movd xmm2, edx
punpckldq xmm1, xmm2
movq qword [esp + 0x48], xmm1
shr edx, 0x1f
fild qword [esp + 0x48]
fadd dword [edx*4 + 0x56c608]
fstp dword [esp + 0x30]
divss xmm0, dword [esp + 0x30]
jmp 0x50bc5a
movss xmm0, dword [0x56c600]
mov eax, dword [esp + 4]
cmp eax, dword [esi + 0x208]
mov al, 1
sbb ecx, dword [esi + 0x20c]
jb 0x50bc7c
movss xmm1, dword [esi + 0x204]
ucomiss xmm1, xmm0
setae al
cmp dword [esi + 0x200], 2
jl 0x50bff0
mov dword [esp + 4], eax
cmp dword [esi + 0x200], 0
jle 0x50bd6a
mov ecx, dword [esi + 0x1f0]
mov eax, dword [esi + 0x1f4]
mov edx, ecx
or edx, eax
je 0x50bd17
movd xmm0, ecx
add ecx, dword [esi + 0x1f8]
movd xmm1, ecx
mov ecx, dword [esi + 0x1fc]
adc ecx, eax
movd xmm2, ecx
punpckldq xmm1, xmm2
movd xmm2, eax
movq qword [esp + 0x40], xmm1
shr ecx, 0x1f
fild qword [esp + 0x40]
fadd dword [ecx*4 + 0x56c608]
punpckldq xmm0, xmm2
fstp dword [esp + 0x28]
movss xmm1, dword [esp + 0x28]
movq qword [esp + 0x38], xmm0
shr eax, 0x1f
fild qword [esp + 0x38]
fadd dword [eax*4 + 0x56c608]
fstp dword [esp + 0x2c]
divss xmm1, dword [esp + 0x2c]
xorps xmm0, xmm0
cvtss2sd xmm0, xmm1
jmp 0x50bd1f
movsd xmm0, qword [0x56c610]
movsd qword [esp + 8], xmm0
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
movups xmm0, xmmword [esi + 0x1f0]
sub esp, 0x28
movsd xmm1, qword [esp + 0x30]
movsd qword [esp + 0x1c], xmm1
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 0x24], 0x56d524
mov dword [esp + 4], str.expat:_Accounting__p_:_Direct__10llu__indirect__10llu__amplification__8.2f_s
call fcn.0050e880
add esp, 0x28
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
cmp dword [ebp + 0x14], 0
mov ecx, 0x56d59a
mov edx, 0x56d59e
cmove edx, ecx
push 0x56d524
push 0xa
push dword [ebp + 0x10]
push ebx
push edx
mov ebx, dword [esp + 0x30]
push ebx
push str.___6d_bytes__s_d__xmlparse.c:_d___s_
push eax
call fcn.0050e880
add esp, 0x20
mov byte [esp + 0x18], 0
mov dword [esp + 0x14], 0x5d2e2e5b
cmp ebx, 0x19
jl 0x50bf8e
cmp dword [esi + 0x200], 2
jg 0x50bf8e
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push 2
call edi
add esp, 4
mov esi, eax
mov ebx, dword [ebp + 8]
movzx eax, byte [ebx]
push eax
call fcn.00508c70
add esp, 4
push eax
push 0x56d5a7
push esi
call fcn.0050e880
add esp, 0xc
push 2
call edi
add esp, 4
mov esi, eax
movzx eax, byte [ebx + 1]
push eax
call fcn.00508c70
add esp, 4
push eax
push 0x56d5a7
push esi
call fcn.0050e880
add esp, 0xc
push 2
call edi
add esp, 4
mov esi, eax
movzx eax, byte [ebx + 2]
push eax
call fcn.00508c70
add esp, 4
push eax
push 0x56d5a7
push esi
call fcn.0050e880
add esp, 0xc
push 2
call edi
add esp, 4
mov esi, eax
movzx eax, byte [ebx + 3]
push eax
call fcn.00508c70
add esp, 4
push eax
push 0x56d5a7
push esi
call fcn.0050e880
add esp, 0xc
push 2
call edi
add esp, 4
mov esi, eax
movzx eax, byte [ebx + 4]
push eax
call fcn.00508c70
add esp, 4
push eax
push 0x56d5a7
push esi
call fcn.0050e880
add esp, 0xc
push 2
call edi
add esp, 4
mov esi, eax
movzx eax, byte [ebx + 5]
push eax
call fcn.00508c70
add esp, 4
push eax
push 0x56d5a7
push esi
call fcn.0050e880
add esp, 0xc
push 2
call edi
add esp, 4
mov esi, eax
movzx eax, byte [ebx + 6]
push eax
call fcn.00508c70
add esp, 4
push eax
push 0x56d5a7
push esi
call fcn.0050e880
add esp, 0xc
push 2
call edi
add esp, 4
mov esi, eax
movzx eax, byte [ebx + 7]
push eax
call fcn.00508c70
add esp, 4
push eax
push 0x56d5a7
push esi
call fcn.0050e880
add esp, 0xc
push 2
call edi
add esp, 4
mov esi, eax
movzx eax, byte [ebx + 8]
push eax
call fcn.00508c70
add esp, 4
push eax
push 0x56d5a7
push esi
call fcn.0050e880
add esp, 0xc
push 2
call edi
add esp, 4
mov esi, eax
movzx eax, byte [ebx + 9]
push eax
call fcn.00508c70
add esp, 4
push eax
push 0x56d5a7
push esi
call fcn.0050e880
add esp, 0xc
push 2
call edi
add esp, 4
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.0050e880
add esp, 8
mov eax, dword [ebp + 0xc]
lea ebx, [eax - 0xa]
nop dword [eax]
push 2
call edi
add esp, 4
mov esi, eax
movzx eax, byte [ebx]
push eax
call fcn.00508c70
add esp, 4
push eax
push 0x56d5a7
push esi
call fcn.0050e880
add esp, 0xc
add ebx, 1
cmp ebx, dword [ebp + 0xc]
jb 0x50bf60
jmp 0x50bfd3
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0xc]
jae 0x50bfd3
xor edi, edi
nop dword [eax + eax]
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov esi, eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax + edi]
push eax
call fcn.00508c70
add esp, 4
push eax
push 0x56d5a7
push esi
call fcn.0050e880
add esp, 0xc
add edi, 1
cmp ebx, edi
jne 0x50bfa0
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push 0x56d5aa
push eax
call fcn.0050e880
add esp, 8
mov eax, dword [esp + 4]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret