Function at 0x42e702
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc40
mov eax, dword [0x5afee0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
xor eax, eax
mov dword [ebp - 0xc40], edi
mov dword [ebp - 0xc3c], eax
cmp edi, eax
je 0x42e9eb
cmp word [edi], ax
je 0x42e9eb
push ebx
push esi
mov esi, 0x206
push esi
push eax
lea eax, [ebp - 0x61a]
xor ecx, ecx
push eax
mov word [ebp - 0x61c], cx
call fcn.00537010
push edi
mov ebx, 0x57cb68
push ebx
mov edi, 0x103
lea eax, [ebp - 0x61c]
push edi
push eax
call fcn.00532a01
add esp, 0x1c
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
xor eax, eax
push esi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00537010
add esp, 0xc
push dword [ebp - 0xc40]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push ebx
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00532a01
xor eax, eax
push esi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00537010
xor eax, eax
push esi
push eax
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push eax
call fcn.00537010
lea eax, [ebp - 0x20c]
push 0x580130
push eax
call fcn.00534006
add esp, 0x30
jmp 0x42e81d
push 0x5f
pop ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push 0x580130
push eax
call fcn.00534006
pop ecx
pop ecx
test eax, eax
jne 0x42e804
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x580020
lea eax, [ebp - 0x414]
push eax
push 0x58002c
lea eax, [ebp - 0x824]
push edi
push eax
call fcn.00532a01
add esp, 0x14
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42e883
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42e9c7
xor eax, eax
push esi
push eax
mov word [ebp - 0xa2c], ax
lea eax, [ebp - 0xa2a]
push eax
mov dword [ebp - 0xc3c], 1
call fcn.00537010
xor eax, eax
push esi
push eax
mov word [ebp - 0xc34], ax
lea eax, [ebp - 0xc32]
push eax
call fcn.00537010
lea eax, [ebp - 0x20c]
push 0x2e
push eax
call fcn.00532331
mov esi, eax
add esp, 0x20
test esi, esi
je 0x42e903
lea ecx, [ebp - 0x20c]
sub eax, ecx
sar eax, 1
push eax
mov eax, ecx
push eax
lea eax, [ebp - 0xa2c]
push 0x104
push eax
call fcn.00531bbd
lea eax, [ebp - 0xc34]
push esi
push eax
call fcn.0042f3a3
add esp, 0x18
jmp 0x42e91e
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xa2c]
push 0x104
push eax
call fcn.005337a4
add esp, 0xc
mov dword [ebp - 0xc38], 1
lea eax, [ebp - 0xc34]
push eax
push dword [ebp - 0xc38]
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0x61c]
push eax
push str._s_s__d__s
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.00532a01
push 0x580020
lea eax, [ebp - 0x414]
push eax
push 0x58002c
lea eax, [ebp - 0x824]
push edi
push eax
call fcn.00532a01
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x30
lea eax, [ebp - 0x414]
push eax
call esi
test eax, eax
jne 0x42e996
lea eax, [ebp - 0x824]
push eax
call esi
test eax, eax
je 0x42e9a8
inc dword [ebp - 0xc38]
cmp dword [ebp - 0xc38], 0x3e8
jl 0x42e928
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push ebx
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00532a01
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push eax
push dword [ebp - 0xc40]
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov eax, dword [ebp - 0xc3c]
pop esi
pop ebx
jmp 0x42e9ed
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0052f7d0
leave
ret