Function at 0x101f6320
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
call dword [sym.imp.api_ms_win_crt_locale_l1_1_0.dll_localeconv]
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [eax]
movsx ecx, byte [eax + edx]
mov dword [ebp - 0x18], ecx
xorps xmm0, xmm0
movsd qword [ebp - 0x28], xmm0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [edx], eax
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx]
movzx eax, byte [edx + 0x102dc331]
and eax, 8
je 0x101f6386
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
jmp 0x101f6369
lea edx, [ebp + 8]
push edx
call fcn.101f5430
add esp, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
cmp ecx, 0x30
jne 0x101f63b8
mov edx, dword [ebp + 8]
movsx eax, byte [edx + 1]
cmp eax, 0x78
je 0x101f63bf
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx + 1]
cmp edx, 0x58
je 0x101f63bf
fldz
jmp 0x101f6577
mov eax, dword [ebp + 8]
add eax, 2
mov dword [ebp + 8], eax
jmp 0x101f63d3
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
cmp eax, dword [ebp - 0x18]
jne 0x101f63f7
cmp dword [ebp - 0x10], 0
je 0x101f63eb
jmp 0x101f648a
mov dword [ebp - 0x10], 1
jmp 0x101f6485
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx]
movzx eax, byte [edx + 0x102dc331]
and eax, 0x10
je 0x101f6483
cmp dword [ebp - 8], 0
jne 0x101f6425
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
cmp edx, 0x30
jne 0x101f6425
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
jmp 0x101f6472
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0x1e
jg 0x101f6469
movsd xmm0, qword [ebp - 0x28]
mulsd xmm0, qword [0x102af938]
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
push eax
movsd qword [ebp - 0x30], xmm0
call fcn.101f5a60
add esp, 4
cvtsi2sd xmm0, eax
movsd xmm1, qword [ebp - 0x30]
addsd xmm1, xmm0
movsd qword [ebp - 0x28], xmm1
jmp 0x101f6472
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 0x10], 0
je 0x101f6481
mov edx, dword [ebp - 4]
sub edx, 1
mov dword [ebp - 4], edx
jmp 0x101f6485
jmp 0x101f648a
jmp 0x101f63ca
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 8]
jne 0x101f6499
fldz
jmp 0x101f6577
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
shl eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
cmp edx, 0x70
je 0x101f64c4
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
cmp ecx, 0x50
jne 0x101f6546
mov dword [ebp - 0xc], 0
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
lea eax, [ebp + 8]
push eax
call fcn.101f5430
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx]
movzx eax, byte [edx + 0x102dc331]
and eax, 2
jne 0x101f64f9
fldz
jmp 0x101f6577
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx]
movzx eax, byte [edx + 0x102dc331]
and eax, 2
je 0x101f6527
imul ecx, dword [ebp - 0xc], 0xa
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
lea ecx, [ecx + eax - 0x30]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
jmp 0x101f64f9
cmp dword [ebp - 0x1c], 0
je 0x101f6535
mov eax, dword [ebp - 0xc]
neg eax
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [edx], eax
cmp dword [ebp - 0x20], 0
je 0x101f655d
movsd xmm0, qword [ebp - 0x28]
xorps xmm0, xmmword [0x102b99d0]
movsd qword [ebp - 0x28], xmm0
mov ecx, dword [ebp - 4]
push ecx
sub esp, 8
movsd xmm0, qword [ebp - 0x28]
movsd qword [esp], xmm0
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_ldexp]
add esp, 0xc
mov esp, ebp
pop ebp
ret