Function at 0x10012dec
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x1005d876
call fcn.1003ef11
mov eax, ecx
mov dword [ebp - 0x14], eax
mov esi, dword [ebp + 0xc]
lea edi, [eax + 4]
mov ebx, dword [ebp + 8]
push edi
lea eax, [esi + 4]
mov ebx, dword [ebx + 0x10]
push eax
push 0
push str.path
push ebx
call fcn.10012ab4
push edi
push esi
push 0
push 0x10061628
push ebx
call fcn.10012ab4
push edi
lea eax, [esi + 8]
push eax
push 0
push 0x10061a80
push ebx
call fcn.10012ab4
add esp, 0x3c
lea ecx, [esi + 4]
call fcn.100100a8
lea ecx, [esi + 4]
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
mov eax, dword [ebp + 8]
je 0x10012e72
add eax, 0x18
mov dword [ebp + 0xc], eax
push dword [eax]
call fcn.1000acc6
test eax, eax
je 0x10012f8f
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 4]
jmp 0x10012e78
add eax, 0x18
mov dword [ebp + 0xc], eax
push eax
call fcn.1000dcf4
mov ecx, esi
call fcn.10009b84
lea ecx, [esi + 8]
call fcn.10009b84
mov eax, dword [ebp + 8]
add eax, 8
mov dword [ebp - 0x10], eax
mov eax, dword [eax]
cmp dword [eax - 0xc], 0x20
jne 0x10012ee0
mov eax, dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10012ee0
mov eax, dword [ebp + 8]
push dword [eax + 0x30]
push dword [eax + 8]
mov eax, dword [ebp + 0xc]
push dword [eax]
call fcn.1000ee18
add esp, 0xc
test eax, eax
je 0x10012ee0
mov eax, dword [ebp + 8]
mov ecx, esi
add eax, 4
push eax
call fcn.1000dcf4
push dword [ebp - 0x10]
lea ecx, [esi + 8]
call fcn.1000dcf4
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x10012f56
call fcn.1000ada5
push eax
lea ecx, [ebp - 0x10]
call fcn.1000a8c4
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
test dword [eax + 0x28], 0x2000
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 0xc]
push dword [eax]
je 0x10012f16
call fcn.1000ee6f
jmp 0x10012f1b
call fcn.1000eee4
pop ecx
pop ecx
test eax, eax
je 0x10012f3f
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.1000dcf4
push dword [ebp + 0xc]
lea ecx, [esi + 4]
call fcn.1000dcf4
lea ecx, [esi + 8]
call fcn.10009b84
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.10009de4
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x10012f8f
push eax
push 0x10061628
push ebx
mov ecx, edi
call fcn.10011676
push dword [esi + 4]
mov ecx, edi
push str.path
push ebx
call fcn.10011676
mov eax, dword [esi + 8]
mov ecx, edi
cmp dword [eax - 0xc], 0
je 0x10012f82
push eax
jmp 0x10012f84
push 0
push 0x10061a80
push ebx
call fcn.10011676
mov eax, dword [esi + 4]
cmp dword [eax - 0xc], 0
jle 0x10012ffe
push edi
lea eax, [esi + 0xc]
push eax
push 0
push str.pver
push ebx
call fcn.10012ab4
push edi
lea eax, [esi + 0x10]
push eax
push 0
push str.ppath
push ebx
call fcn.10012ab4
push edi
lea eax, [esi + 0x14]
push eax
push 0
push str.pmd5
push ebx
call fcn.10012ab4
mov ebx, dword [ebp + 8]
add esp, 0x3c
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebx + 0x30]
push esi
mov dword [esi + 0x18], eax
push dword [ebx + 0x10]
call fcn.10012ae5
mov ecx, dword [ebp - 0x14]
push esi
push dword [ebx + 0x10]
call fcn.10012ce0
mov ecx, dword [esi]
xor eax, eax
cmp dword [ecx - 0xc], eax
setg al
jmp 0x10013000
xor eax, eax
call fcn.1003eeda
ret 8