Function at 0x1015344
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x1035030]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov dword [ebp - 0x210], eax
xor esi, esi
xor eax, eax
lea edi, [ebp - 0x218]
push 0x206
mov dword [ebp - 0x21c], esi
stosd dword es:[edi], eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
mov dword [ebp - 0x214], esi
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x57
pop edi
cmp ebx, esi
jne 0x10153d3
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1015604
test byte [eax + 0x1c], 1
je 0x1015604
push 0x10035d0
push 0x41
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004e8e
jmp 0x1015604
cmp dword [ebp + 0x18], esi
jne 0x10153fb
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1015604
test byte [eax + 0x1c], 1
je 0x1015604
push 0x10035d0
push 0x42
jmp 0x10153c3
test byte [ebp + 0x10], 0x10
lea eax, [ebp - 0x20c]
je 0x10154b9
push esi
push esi
push eax
push 0x10022ac
call fcn.01014d1d
cmp eax, esi
jge 0x101544b
mov ecx, dword [0x1035014]
cmp ecx, 0x1035014
je 0x1015443
test byte [ecx + 0x1c], 1
je 0x1015443
push eax
push 0x10035d0
push 0x43
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01004eb4
push 3
pop edi
jmp 0x1015604
push dword [ebp - 0x210]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp eax, esi
jne 0x1015481
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1015604
test byte [eax + 0x1c], 1
je 0x1015604
push 0x10035d0
push 0x44
jmp 0x10153c3
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
jne 0x1015502
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1015604
test byte [eax + 0x1c], 1
je 0x1015604
push 0x10035d0
push 0x45
jmp 0x10153c3
push dword [ebp - 0x210]
push 0x104
push eax
call fcn.010069ac
cmp eax, esi
jge 0x1015502
mov ecx, dword [0x1035014]
cmp ecx, 0x1035014
je 0x1015604
test byte [ecx + 0x1c], 1
je 0x1015604
push eax
push 0x10035d0
push 0x46
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01004eb4
jmp 0x1015604
cmp dword [ebp + 0xc], esi
jbe 0x101559e
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x18]
push ebx
call fcn.01006a35
add esp, 0x10
test eax, eax
jl 0x10155e1
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1015602
test byte [ebp + 0x10], 1
jne 0x1015602
test byte [ebp + 0x10], 2
je 0x1015594
lea eax, [ebp - 0x240]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x1015594
test esi, esi
je 0x1015576
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jle 0x1015594
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x218], eax
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x101550b
test byte [ebp + 0x10], 2
je 0x1015604
push dword [ebp - 0x214]
push dword [ebp - 0x210]
push dword [ebp + 0x18]
push ebx
call fcn.01006a35
add esp, 0x10
test eax, eax
jge 0x1015602
mov ecx, dword [0x1035014]
cmp ecx, 0x1035014
je 0x1015604
test byte [ecx + 0x1c], 1
je 0x1015604
push eax
push 0x10035d0
push 0x48
jmp 0x10154f2
mov ecx, dword [0x1035014]
cmp ecx, 0x1035014
je 0x1015604
test byte [ecx + 0x1c], 1
je 0x1015604
push eax
push 0x10035d0
push 0x47
jmp 0x10154f2
xor edi, edi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01011f27
leave
ret 0x14