Function at 0x101f4a8
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x108c
call fcn.0102c870
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
cmp ebx, edi
je 0x101f6f9
cmp word [ebx], di
je 0x101f6f9
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x101f6f9
cmp word [eax], di
je 0x101f6f9
push esi
push 0x2c
push ebx
mov word [ebp - 0x824], di
mov word [ebp - 0x61c], di
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov esi, eax
cmp esi, edi
je 0x101f524
sub eax, ebx
sar eax, 1
inc eax
push eax
push ebx
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
add esi, 2
push esi
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
cmp word [ebp - 0x824], di
je 0x101f6f8
cmp word [ebp - 0x61c], di
je 0x101f6f8
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x824]
push eax
push 0x10042a8
mov esi, 0x104
lea eax, [ebp - 0xe84]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
push 0xa28
push 0x40
mov dword [ebp + 8], 0x514
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
cmp ebx, edi
je 0x101f6f8
push 0x10027b0
push 0x108f0b0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0xa74]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_Ordinal_65]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x101f6cc
push 0x1004294
push 0x103d3b8
lea eax, [ebp - 0xc7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x103c550
lea eax, [ebp - 0xc7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0xa48]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push 0x1004288
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xc7c]
push eax
lea eax, [ebp - 0x108c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x108c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x101f6ab
lea eax, [ebp - 0xa48]
push eax
lea eax, [ebp - 0xe84]
push eax
push 0x10041f8
lea eax, [ebp - 0x414]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp + 8]
lea eax, [eax + edi + 1]
dec ecx
cmp eax, ecx
jle 0x101f689
add dword [ebp + 8], esi
push 0x40
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
test eax, eax
je 0x101f6c3
mov ebx, eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebx + edi*2]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + eax + 1]
lea eax, [ebp - 0xa74]
push eax
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_Ordinal_341]
test eax, eax
jne 0x101f5e5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
cmp ebx, esi
je 0x101f6f8
cmp word [ebx], si
je 0x101f6f1
push dword [ebp + 0xc]
push ebx
push 0x10041dc
call fcn.0102d31d
push dword [ebp + 0xc]
push esi
push esi
push esi
call dword [sym.imp.SHLWAPI.dll_Ordinal_298]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
pop edi
pop ebx
leave
ret 8