Function at 0x108ef14
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov eax, dword [0x111024c]
mov esi, 0x111024c
cmp eax, esi
je 0x108ef4e
test byte [eax + 0x1c], 2
je 0x108ef4e
cmp byte [eax + 0x19], 4
jb 0x108ef4e
push 0x1008bf8
push 0x27
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x108ef69
push 0x10078c4
push 0x43d
push 0x1008c24
call fcn.0107b644
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call fcn.0107d16c
mov ebx, eax
cmp ebx, edi
jl 0x108f000
lea eax, [ebp - 8]
push eax
push dword [0x11105b8]
push dword [ebp - 0xc]
call fcn.0107ca99
mov ebx, eax
cmp ebx, edi
jl 0x108f000
push edi
push 0x80
push 3
push edi
push edi
push 0x80000000
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x108f053
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x108f00a
mov eax, dword [0x111024c]
cmp eax, esi
je 0x108f1b1
test byte [eax + 0x1c], 2
je 0x108f1b1
cmp byte [eax + 0x19], 4
jb 0x108f1b1
push dword [ebp - 8]
push 0x1008bf8
push 0x28
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
mov eax, dword [0x111024c]
jmp 0x108f1b1
cmp eax, edi
jle 0x108f018
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
mov eax, dword [0x111024c]
cmp eax, esi
je 0x108f1b1
test byte [eax + 0x1c], 2
je 0x108f1b1
cmp byte [eax + 0x19], 2
jb 0x108f1b1
push ebx
push dword [ebp - 8]
push 0x1008bf8
push 0x29
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
jmp 0x108f000
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 4]
push eax
push dword [0x11105b8]
push dword [ebp + 8]
call fcn.0108de71
mov ebx, eax
cmp ebx, edi
jge 0x108f19a
mov edi, 0x80070002
cmp ebx, edi
je 0x108f0d2
cmp ebx, 0x80070003
je 0x108f0d2
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x108f19f
test byte [eax + 0x1c], 2
je 0x108f19f
cmp byte [eax + 0x19], 2
jb 0x108f19f
push ebx
push dword [0x11105b8]
push 0x1008bf8
push 0x2b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
jmp 0x108f19a
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x108f103
test byte [eax + 0x1c], 1
je 0x108f103
cmp byte [eax + 0x19], 3
jb 0x108f103
push dword [0x11105b8]
push ebx
push 0x1008bf8
push 0x2a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019471
push dword [ebp - 4]
call esi
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 4]
push eax
push dword [0x11105bc]
push dword [ebp + 8]
call fcn.0108de71
mov ebx, eax
test ebx, ebx
jge 0x108f19a
cmp ebx, edi
je 0x108f15e
cmp ebx, 0x80070003
je 0x108f15e
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x108f19f
test byte [eax + 0x1c], 2
je 0x108f19f
cmp byte [eax + 0x19], 2
jb 0x108f19f
push ebx
push dword [0x11105bc]
push 0x1008bf8
push 0x2d
jmp 0x108f0c2
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x108f18f
test byte [eax + 0x1c], 1
je 0x108f18f
cmp byte [eax + 0x19], 3
jb 0x108f18f
push dword [0x11105bc]
push ebx
push 0x1008bf8
push 0x2c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019471
mov eax, dword [ebp + 0xc]
mov dword [eax], 1
xor ebx, ebx
mov eax, dword [0x111024c]
cmp dword [ebp - 4], 0xffffffff
je 0x108f1af
push dword [ebp - 4]
call esi
mov eax, dword [0x111024c]
xor edi, edi
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0xc], edi
je 0x108f1c6
push dword [ebp - 0xc]
call esi
mov eax, dword [0x111024c]
cmp dword [ebp - 8], edi
je 0x108f1d5
push dword [ebp - 8]
call esi
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x108f1fa
test byte [eax + 0x1c], 2
je 0x108f1fa
cmp byte [eax + 0x19], 4
jb 0x108f1fa
push 0x1008bf8
push 0x2e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8