Function at 0x404740
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x20c
mov eax, dword [0x493008]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
push 0x48d624
push 0x560388
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40479f
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x48d420
push 0x55ff68
call esi
push 0x48d420
push 0x560388
call esi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00422d0c
add esp, 0x20c
ret
push ebx
push ebp
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push 0x560388
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4047ed
push 0x560388
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 0x560388]
push eax
push 0x560388
call dword [sym.imp.USER32.dll_CharPrevW]
cmp word [eax], 0x5c
jne 0x404887
push 0x104
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x10]
push eax
call ebp
push eax
push 0x560388
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str..ini
push 0x560388
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
push 0x560388
call esi
test eax, eax
je 0x404838
push 0x560388
call edi
test eax, eax
je 0x404887
push str.minipath.ini
push 0x560388
call ebp
push eax
call ebx
push 0x560388
call esi
test eax, eax
je 0x40485d
push 0x560388
call edi
test eax, eax
je 0x404887
lea eax, [esp + 0x10]
push eax
call ebp
push 0x560388
mov esi, eax
call ebp
push esi
push eax
call ebx
push str..ini
push 0x560388
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 0x560180
call edi
test eax, eax
jne 0x4048ba
push 0x560180
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 0x560180]
push eax
push 0x560180
call dword [sym.imp.USER32.dll_CharPrevW]
cmp word [eax], 0x5c
jne 0x404969
push 0x104
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x48d654
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [esp + 0x10]
push eax
call ebp
push eax
push 0x560180
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str..ini
push 0x560180
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
push 0x560180
call esi
test eax, eax
je 0x404920
push 0x560180
call edi
test eax, eax
je 0x404969
push str.notepad3.ini
push 0x560180
call ebp
push eax
call ebx
push 0x560180
call esi
test eax, eax
je 0x404945
push 0x560180
call edi
test eax, eax
je 0x404969
lea eax, [esp + 0x10]
push eax
call ebp
push 0x560180
mov esi, eax
call ebp
push esi
push eax
call ebx
push str..ini
push 0x560180
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 0x560180
call esi
test eax, eax
je 0x404990
push 0x560180
call edi
test eax, eax
jne 0x404990
push 0x560180
call edi
test eax, eax
je 0x40499c
push 0x48d420
push 0x560180
call ebx
push 0x560388
call esi
test eax, eax
je 0x4049b9
push 0x560388
call edi
test eax, eax
jne 0x4049b9
mov eax, 1
jmp 0x4049d3
push 0x560388
push 0x55ff68
call ebx
push 0x48d420
push 0x560388
call ebx
xor eax, eax
mov ecx, dword [esp + 0x218]
pop edi
pop ebp
pop ebx
pop esi
xor ecx, esp
call fcn.00422d0c
add esp, 0x20c
ret