Function at 0x482a60
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], edx
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
cmp esi, edx
jne 0x482a84
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 1
jl 0x482a8e
cmp esi, 4
jle 0x482aae
push 0x6a4
push str.d:CProjectsSCUMSX2_srcImGuiFileDialog_stb_stb_image.h
push str.req_comp___1__req_comp___4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
test esi, esi
js 0x482e2d
test ebx, ebx
js 0x482e2d
je 0x482ac9
xor edx, edx
mov eax, 0x7fffffff
div ebx
cmp esi, eax
jg 0x482e2d
mov ecx, esi
imul ecx, ebx
mov dword [ebp - 0x18], ecx
test ecx, ecx
js 0x482e2d
mov eax, dword [ebp + 0x10]
test eax, eax
js 0x482e2d
je 0x482af8
xor edx, edx
mov eax, 0x7fffffff
div dword [ebp + 0x10]
cmp ecx, eax
jg 0x482e2d
mov eax, ecx
imul eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
je 0x482e2d
cmp dword [ebp + 0x10], 0
mov dword [ebp + 8], 0
jle 0x482dd6
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edi
lea ecx, [ecx*8 - 0xa]
add ecx, esi
mov esi, dword [ebp - 4]
imul esi, ebx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], esi
mov esi, edi
cmp ecx, 0x19
ja case.0x482b54.3
movzx ecx, byte [ecx + 0x482e88]
jmp dword [ecx*4 + 0x482e54]
lea edx, [ebx - 1]
test edx, edx
js 0x482dae
sub edx, 1
mov cl, byte [esi]
mov byte [eax], cl
lea esi, [esi + 1]
mov byte [eax + 1], 0xff
lea eax, [eax + 2]
jns 0x482b66
jmp 0x482dae
lea edx, [ebx - 1]
test edx, edx
js 0x482dae
nop dword [eax]
sub edx, 1
mov cl, byte [esi]
mov byte [eax + 2], cl
lea esi, [esi + 1]
mov byte [eax + 1], cl
lea eax, [eax + 3]
mov byte [eax - 3], cl
jns 0x482b90
jmp 0x482dae
lea edx, [ebx - 1]
test edx, edx
js 0x482dae
sub edx, 1
mov cl, byte [esi]
mov byte [eax + 2], cl
lea esi, [esi + 1]
mov byte [eax + 1], cl
lea eax, [eax + 4]
mov byte [eax - 4], cl
mov byte [eax - 1], 0xff
jns 0x482bb6
jmp 0x482dae
lea edx, [ebx - 1]
test edx, edx
js 0x482dae
sub edx, 1
mov cl, byte [esi]
mov byte [eax], cl
lea esi, [esi + 2]
lea eax, [eax + 1]
jns 0x482be0
jmp 0x482dae
lea edx, [ebx - 1]
test edx, edx
js 0x482dae
nop
sub edx, 1
mov cl, byte [esi]
mov byte [eax + 2], cl
lea esi, [esi + 2]
mov byte [eax + 1], cl
lea eax, [eax + 3]
mov byte [eax - 3], cl
jns 0x482c00
jmp 0x482dae
lea edx, [ebx - 1]
test edx, edx
js 0x482dae
sub edx, 1
mov cl, byte [esi]
mov byte [eax + 2], cl
lea esi, [esi + 2]
mov byte [eax + 1], cl
lea eax, [eax + 4]
mov byte [eax - 4], cl
movzx ecx, byte [esi - 1]
mov byte [eax - 1], cl
jns 0x482c26
jmp 0x482dae
lea edx, [ebx - 1]
test edx, edx
js 0x482dae
sub edx, 1
movzx ecx, byte [esi]
mov byte [eax], cl
lea esi, [esi + 3]
movzx ecx, byte [esi - 2]
lea eax, [eax + 4]
mov byte [eax - 3], cl
movzx ecx, byte [esi - 1]
mov byte [eax - 2], cl
mov byte [eax - 1], 0xff
jns 0x482c53
jmp 0x482dae
lea edi, [ebx - 1]
test edi, edi
js 0x482dae
nop word [eax + eax]
movzx ecx, byte [esi + 1]
lea esi, [esi + 3]
imul edx, ecx, 0x96
lea eax, [eax + 1]
movzx ecx, byte [esi - 1]
imul ecx, ecx, 0x1d
add edx, ecx
movzx ecx, byte [esi - 3]
imul ecx, ecx, 0x4d
add edx, ecx
shr edx, 8
sub edi, 1
mov byte [eax - 1], dl
jns 0x482c90
jmp 0x482dae
lea edi, [ebx - 1]
test edi, edi
js 0x482dae
nop dword [eax]
movzx ecx, byte [esi + 1]
lea esi, [esi + 3]
imul edx, ecx, 0x96
lea eax, [eax + 2]
movzx ecx, byte [esi - 1]
imul ecx, ecx, 0x1d
add edx, ecx
movzx ecx, byte [esi - 3]
imul ecx, ecx, 0x4d
mov byte [eax - 1], 0xff
add edx, ecx
shr edx, 8
sub edi, 1
mov byte [eax - 2], dl
jns 0x482cd0
jmp 0x482dae
lea edi, [ebx - 1]
test edi, edi
js 0x482dae
movzx ecx, byte [esi + 1]
lea esi, [esi + 4]
imul edx, ecx, 0x96
lea eax, [eax + 1]
movzx ecx, byte [esi - 2]
imul ecx, ecx, 0x1d
add edx, ecx
movzx ecx, byte [esi - 4]
imul ecx, ecx, 0x4d
add edx, ecx
shr edx, 8
sub edi, 1
mov byte [eax - 1], dl
jns 0x482d11
jmp 0x482dae
lea edi, [ebx - 1]
test edi, edi
js 0x482dae
nop word [eax + eax]
movzx ecx, byte [esi + 1]
lea esi, [esi + 4]
imul edx, ecx, 0x96
lea eax, [eax + 2]
movzx ecx, byte [esi - 2]
imul ecx, ecx, 0x1d
add edx, ecx
movzx ecx, byte [esi - 4]
imul ecx, ecx, 0x4d
add edx, ecx
shr edx, 8
sub edi, 1
mov byte [eax - 2], dl
mov cl, byte [esi - 1]
mov byte [eax - 1], cl
jns 0x482d50
jmp 0x482dae
lea edx, [ebx - 1]
test edx, edx
js 0x482dae
nop dword [eax]
sub edx, 1
movzx ecx, byte [esi]
mov byte [eax], cl
lea esi, [esi + 4]
movzx ecx, byte [esi - 3]
lea eax, [eax + 3]
mov byte [eax - 2], cl
movzx ecx, byte [esi - 2]
mov byte [eax - 1], cl
jns 0x482d90
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
inc ecx
mov eax, dword [ebp - 0xc]
add esi, dword [ebp - 4]
add eax, dword [ebp - 0x18]
cmp ecx, dword [ebp + 0x10]
mov dword [ebp + 8], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
jl 0x482b44
mov edi, dword [ebp - 0x10]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x6c1
push str.d:CProjectsSCUMSX2_srcImGuiFileDialog_stb_stb_image.h
push 0x4b4768
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call esi
push dword [ebp - 0x14]
call esi
mov eax, dword fs:[0x2c]
add esp, 0x14
mov eax, dword [eax]
pop edi
pop esi
pop ebx
mov dword [eax + 0xc], str.unsupported
xor eax, eax
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword fs:[0x2c]
add esp, 4
mov eax, dword [eax]
pop edi
pop esi
pop ebx
mov dword [eax + 0xc], str.outofmem
xor eax, eax
mov esp, ebp
pop ebp
ret