Function at 0x48fa15
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f4798
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x5466b0]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
push edi
mov eax, dword [0x5466b0]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 1
cmp eax, 8
jne 0x48fb77
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
jbe 0x48fd46
cmp edi, ebx
je 0x48fd46
cmp dword [edi], ebx
je 0x48fd46
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x248], ebx
cmp eax, ebx
je 0x48fab4
push ebx
push ebx
call fcn.00431050
jmp 0x48fab6
xor eax, eax
or dword [esp + 0x248], 0xffffffff
push eax
mov ecx, esi
call fcn.0040ed50
cmp dword [esi + 4], ebx
je 0x48fd46
push 0x104
lea eax, [esp + 0x28]
push ebx
push eax
call fcn.004d7710
add esp, 0xc
push ebx
push 0x10
lea eax, [esp + 0x2c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x48fb20
push dword [edi]
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x48fb20
mov esi, dword [esi + 4]
push ebx
push 1
call fcn.0040c130
mov esi, dword [esp + 0x20]
mov eax, dword [esi + 4]
call fcn.0048f48c
test al, al
je 0x48fd46
push ebx
push 0x19
lea eax, [esp + 0x2c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x48fd46
push dword [edi]
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x48fd46
mov esi, dword [esi + 4]
push ebx
push 1
call fcn.0040c130
jmp 0x48fd46
cmp eax, 7
jne 0x48fc49
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
jbe 0x48fd46
cmp edi, ebx
je 0x48fd46
cmp dword [edi], ebx
je 0x48fd46
push 0x104
lea eax, [esp + 0x28]
push ebx
push eax
mov dword [esp + 0x20], ebx
call fcn.004d7710
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
add esp, 0xc
push ebx
push 0x10
lea eax, [esp + 0x2c]
push eax
push ebx
call esi
test eax, eax
je 0x48fbe1
push dword [edi]
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [esp + 0x24]
call fcn.0048fd70
mov dword [esp + 0x14], eax
push ebx
push 0x19
lea eax, [esp + 0x2c]
push eax
push ebx
call esi
test eax, eax
je 0x48fc0a
push dword [edi]
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [esp + 0x24]
call fcn.0048fd70
add dword [esp + 0x14], eax
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x248], 1
cmp eax, ebx
je 0x48fc3d
mov eax, dword [esp + 0x14]
cdq
push edx
push eax
mov eax, dword [esp + 0x20]
call fcn.00431050
jmp 0x48fc3f
xor eax, eax
mov ecx, dword [esp + 0x20]
push eax
jmp 0x48fd28
cmp eax, 9
jne 0x48fd37
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
jbe 0x48fd46
cmp edi, ebx
je 0x48fd46
push 0x104
lea eax, [esp + 0x130]
push ebx
push eax
call fcn.004d7710
add esp, 0xc
push ebx
push 0x10
lea eax, [esp + 0x134]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x48fcf2
push dword [edi]
lea eax, [esp + 0x130]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [esp + 0x12c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x48fcf2
push ebx
push 0x19
lea eax, [esp + 0x134]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x48fcf2
push dword [edi]
lea eax, [esp + 0x130]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [esp + 0x12c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x48fcf2
mov byte [esp + 0x12c], bl
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
mov edi, eax
pop ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x248], 2
cmp edi, ebx
je 0x48fd25
mov dword [edi], ebx
lea ebx, [esp + 0x12c]
call fcn.0040c040
mov ebx, edi
push ebx
mov ecx, esi
or dword [esp + 0x24c], 0xffffffff
call fcn.0040ed50
jmp 0x48fd46
push esi
push dword [ebp + 0x10]
push edi
push eax
call fcn.00466419
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.004cb38b
mov esp, ebp
pop ebp
ret 0x10