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

Disassembly:
push 0x2bc
mov eax, 0x474e02
call fcn.0044b825
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x488b44
mov ecx, edi
mov dword [ebp - 0x2c8], edi
mov dword [ebp - 0x2c4], ebx
call fcn.00403309
xor eax, eax
mov dword [ebp - 4], ebx
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
mov dword [ebp - 0x2c4], 1
call fcn.0044bcb0
mov eax, dword [ebp + 0xc]
add esp, 0xc
sub eax, ebx
je 0x40fc8c
push 3
pop esi
sub eax, esi
je 0x40fc5f
dec eax
je 0x40fbfa
dec eax
je 0x40fb6b
dec eax
je 0x40fb0d
dec eax
je 0x40faad
dec eax
jne 0x40fcba
lea eax, [ebp - 0x234]
push esi
push eax
call fcn.0040f9b9
pop ecx
pop ecx
mov dword [ebp - 4], 9
xor eax, eax
push 0x492918
lea ecx, [ebp - 0x2a4]
mov dword [ebp - 0x290], 7
mov dword [ebp - 0x294], ebx
mov word [ebp - 0x2a4], ax
call fcn.004032e2
lea eax, [ebp - 0x2a4]
push eax
lea esi, [ebp - 0x234]
mov byte [ebp - 4], 0xa
call fcn.00414b87
pop ecx
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2a4]
jmp 0x40fbcb
lea eax, [ebp - 0x234]
push esi
push eax
call fcn.0040f9b9
pop ecx
pop ecx
push 7
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x2ac], eax
xor eax, eax
push 0x492910
lea ecx, [ebp - 0x2c0]
mov dword [ebp - 0x2b0], ebx
mov word [ebp - 0x2c0], ax
call fcn.004032e2
lea eax, [ebp - 0x2c0]
push eax
lea esi, [ebp - 0x234]
mov byte [ebp - 4], 8
call fcn.00414b87
pop ecx
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2c0]
jmp 0x40fbcb
lea eax, [ebp - 0x234]
push esi
push eax
call fcn.0040f9b9
pop ecx
pop ecx
mov dword [ebp - 4], esi
xor eax, eax
push 0x4928f8
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], ebx
mov word [ebp - 0x250], ax
call fcn.004032e2
lea eax, [ebp - 0x250]
push eax
lea esi, [ebp - 0x234]
mov byte [ebp - 4], 4
call fcn.00414b87
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x250]
jmp 0x40fbcb
lea eax, [ebp - 0x234]
push esi
push eax
call fcn.0040f9b9
pop ecx
pop ecx
mov dword [ebp - 4], 1
xor eax, eax
push 0x4928f0
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x258], 7
mov dword [ebp - 0x25c], ebx
mov word [ebp - 0x26c], ax
call fcn.004032e2
lea eax, [ebp - 0x26c]
push eax
lea esi, [ebp - 0x234]
mov byte [ebp - 4], 2
call fcn.00414b87
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x26c]
push ebx
push 1
call fcn.0040363d
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x234]
push eax
mov ecx, edi
call fcn.00403765
push ebx
push 1
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], bl
call fcn.0040363d
jmp 0x40fcba
lea eax, [ebp - 0x234]
push esi
push eax
call fcn.0040f9b9
pop ecx
pop ecx
mov dword [ebp - 4], 5
xor eax, eax
push 0x492904
lea ecx, [ebp - 0x288]
mov dword [ebp - 0x274], 7
mov dword [ebp - 0x278], ebx
mov word [ebp - 0x288], ax
call fcn.004032e2
lea eax, [ebp - 0x288]
push eax
lea esi, [ebp - 0x234]
mov byte [ebp - 4], 6
call fcn.00414b87
pop ecx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x288]
jmp 0x40fbcb
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x4928d0
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0044c112
add esp, 0xc
jmp 0x40fcac
push 0x104
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
mov ecx, edi
call fcn.004032e2
cmp dword [edi + 0x10], ebx
je 0x40fce9
cmp dword [edi + 0x14], 8
jb 0x40fcc9
mov eax, dword [edi]
jmp 0x40fccb
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40fce9
cmp dword [edi + 0x14], 8
jb 0x40fce0
mov eax, dword [edi]
jmp 0x40fce2
mov eax, edi
push eax
call fcn.004021cc
pop ecx
mov eax, edi
call fcn.0044b8a8
ret