Function at 0x49aee0
Capabilities:
Check if file exists
Enumerate files on windows
Get common file path
Get program files directory

Disassembly:
push 0xffffffffffffffff
push 0x5aae0b
mov eax, dword fs:[0]
push eax
mov eax, 0x2488
call fcn.004e6bc0
mov eax, dword [0x61ac94]
xor eax, esp
mov dword [esp + 0x2484], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61ac94]
xor eax, esp
push eax
lea eax, [esp + 0x249c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x24ac]
lea ecx, [esp + 0x28]
call fcn.00499ca0
push ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24a8], 0
call fcn.0049ad70
mov eax, dword [ebx + 0x14]
mov esi, dword [eax]
mov edi, dword [ebx]
mov byte [esp + 0x17], 0
mov ebp, dword [ebx + 0x14]
mov eax, dword [ebx]
test edi, edi
je 0x49af5d
cmp edi, eax
je 0x49af62
call fcn.004e73ca
cmp esi, ebp
je 0x49b033
test edi, edi
jne 0x49afea
call fcn.004e73ca
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x49af7f
call fcn.004e73ca
mov eax, dword [esi + 0xc]
cmp eax, 4
jne 0x49af8c
mov byte [esp + 0x17], 1
cmp eax, 0x41
jne 0x49afc2
cmp word [esi + 0x1bc], 0
lea eax, [esi + 0x1bc]
je 0x49afc2
lea ecx, [esi + 0x5cc]
xor edx, edx
cmp dx, word [ecx]
jne 0x49afc2
push eax
push str.__suninst.exe_
push 0x410
push ecx
call fcn.0041c900
add esp, 0x10
cmp byte [esp + 0x24b0], 0
je 0x49afee
cmp dword [esi + 0xc], 5
jne 0x49afee
push esi
push edi
lea eax, [esp + 0x28]
push eax
mov ecx, ebx
call fcn.0049aa10
mov edi, dword [eax]
mov esi, dword [eax + 4]
jmp 0x49af50
mov eax, dword [edi]
jmp 0x49af75
mov eax, dword [esi + 0xc]
cmp eax, 0xf
je 0x49b01b
cmp eax, 0x26
je 0x49b01b
test edi, edi
jne 0x49b017
call fcn.004e73ca
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x49b010
call fcn.004e73ca
mov esi, dword [esi]
jmp 0x49af50
mov eax, dword [edi]
jmp 0x49b006
push esi
push edi
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebx
call fcn.0049aa10
mov edi, dword [eax]
mov esi, dword [eax + 4]
jmp 0x49af50
cmp byte [esp + 0x17], 0
jne 0x49b326
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x2092]
push eax
mov word [esp + 0x2094], dx
call fcn.004e5fc0
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x22a6]
push edx
mov word [esp + 0x22a8], cx
call fcn.004e5fc0
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1ea2]
push ecx
mov word [esp + 0x1ea4], ax
call fcn.004e5fc0
mov ebp, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
add esp, 0x24
push 0
push 0x26
lea edx, [esp + 0x1e88]
push edx
push 0
call ebp
push 0x10
lea eax, [esp + 0x1e84]
push str.Rising
push eax
call fcn.004e6b29
push 0x250
lea ecx, [esp + 0x270]
push 0
push ecx
call fcn.004e5fc0
add esp, 0x18
lea edx, [esp + 0x260]
push edx
lea eax, [esp + 0x1e84]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, eax
cmp edi, 0xffffffff
je 0x49b22f
mov ecx, 0x2e
cmp cx, word [esp + 0x28c]
je 0x49b1e7
test byte [esp + 0x260], 0x10
je 0x49b1e7
lea edx, [esp + 0x28c]
push edx
push 0x5cc53c
call fcn.004e8728
add esp, 8
test eax, eax
je 0x49b1e7
lea eax, [esp + 0x28c]
push eax
push 0x5cc534
call fcn.004e8728
add esp, 8
test eax, eax
je 0x49b1e7
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x1c82]
push edx
mov word [esp + 0x1c84], cx
call fcn.004e5fc0
lea eax, [esp + 0x1e8c]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49b185
sub eax, edx
sar eax, 1
dec eax
push eax
lea eax, [esp + 0x1e84]
push eax
lea ecx, [esp + 0x1c80]
push ecx
call fcn.004e6b69
push 0x10
lea edx, [esp + 0x29c]
push edx
lea eax, [esp + 0x1c8c]
push eax
call fcn.004e6b29
push 0x10
lea ecx, [esp + 0x1c94]
push str.RsMain.exe
push ecx
call fcn.004e6b29
add esp, 0x24
lea edx, [esp + 0x1c78]
push edx
call esi
test eax, eax
jne 0x49b200
lea eax, [esp + 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x49b100
jmp 0x49b228
lea ecx, [esp + 0x1c78]
push ecx
push 0x208
lea edx, [esp + 0x2090]
push edx
call fcn.0041c6a0
lea eax, [esp + 0x2088]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esp + 0x2088], 0
je 0x49b326
lea ecx, [esp + 0x4b0]
call fcn.00499b90
push 0x10
lea ecx, [esp + 0x4d8]
push 0x5cc514
push ecx
mov dword [esp + 0x4c0], 4
mov dword [esp + 0x4c4], 1
call fcn.004e6b69
push 0x10
lea edx, [esp + 0x5ac]
push 0x5cc504
push edx
call fcn.004e6b69
add esp, 0x18
lea eax, [esp + 0x2088]
push eax
push 0x410
lea ecx, [esp + 0x66c]
push ecx
call fcn.0041c6a0
push 0
push 0x26
lea edx, [esp + 0x2298]
push edx
push 0
call ebp
push 0x40
lea eax, [esp + 0x2294]
push str.RisingRSDSetup.exe
push eax
call fcn.004e6b29
add esp, 0xc
lea ecx, [esp + 0x2290]
push ecx
call esi
test eax, eax
je 0x49b2fc
lea edx, [esp + 0x2290]
push edx
push str.__s___UNINSTALL__PRODUCTRAV
lea eax, [esp + 0xa7c]
push 0x410
push eax
call fcn.0041c900
add esp, 0x10
mov esi, dword [ebx + 0x14]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x4b0]
push ecx
push edx
push esi
mov ecx, ebx
call fcn.0049a990
push 1
mov ecx, ebx
mov edi, eax
call fcn.0049aa90
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
lea ecx, [esp + 0x28]
mov dword [esp + 0x24a4], 0xffffffff
call fcn.0049a660
mov ecx, dword [esp + 0x249c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2484]
xor ecx, esp
call fcn.004e5fb0
add esp, 0x2494
ret