Function at 0x108ef31
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 [0x111124c]
mov esi, 0x111124c
cmp eax, esi
je 0x108ef6b
test byte [eax + 0x1c], 2
je 0x108ef6b
cmp byte [eax + 0x19], 4
jb 0x108ef6b
push 0x1008be8
push 0x27
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x108ef86
push 0x10078b4
push 0x43d
push 0x1008c14
call fcn.0107b4be
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.0107cfe1
mov ebx, eax
cmp ebx, edi
jl 0x108f01d
lea eax, [ebp - 8]
push eax
push dword [0x11115b8]
push dword [ebp - 0xc]
call fcn.0107c90e
mov ebx, eax
cmp ebx, edi
jl 0x108f01d
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 0x108f070
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x108f027
mov eax, dword [0x111124c]
cmp eax, esi
je 0x108f1ce
test byte [eax + 0x1c], 2
je 0x108f1ce
cmp byte [eax + 0x19], 4
jb 0x108f1ce
push dword [ebp - 8]
push 0x1008be8
push 0x28
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
mov eax, dword [0x111124c]
jmp 0x108f1ce
cmp eax, edi
jle 0x108f035
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
mov eax, dword [0x111124c]
cmp eax, esi
je 0x108f1ce
test byte [eax + 0x1c], 2
je 0x108f1ce
cmp byte [eax + 0x19], 2
jb 0x108f1ce
push ebx
push dword [ebp - 8]
push 0x1008be8
push 0x29
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
jmp 0x108f01d
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 [0x11115b8]
push dword [ebp + 8]
call fcn.0108de8e
mov ebx, eax
cmp ebx, edi
jge 0x108f1b7
mov edi, 0x80070002
cmp ebx, edi
je 0x108f0ef
cmp ebx, 0x80070003
je 0x108f0ef
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x108f1bc
test byte [eax + 0x1c], 2
je 0x108f1bc
cmp byte [eax + 0x19], 2
jb 0x108f1bc
push ebx
push dword [0x11115b8]
push 0x1008be8
push 0x2b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
jmp 0x108f1b7
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x108f120
test byte [eax + 0x1c], 1
je 0x108f120
cmp byte [eax + 0x19], 3
jb 0x108f120
push dword [0x11115b8]
push ebx
push 0x1008be8
push 0x2a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010194be
push dword [ebp - 4]
call esi
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 4]
push eax
push dword [0x11115bc]
push dword [ebp + 8]
call fcn.0108de8e
mov ebx, eax
test ebx, ebx
jge 0x108f1b7
cmp ebx, edi
je 0x108f17b
cmp ebx, 0x80070003
je 0x108f17b
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x108f1bc
test byte [eax + 0x1c], 2
je 0x108f1bc
cmp byte [eax + 0x19], 2
jb 0x108f1bc
push ebx
push dword [0x11115bc]
push 0x1008be8
push 0x2d
jmp 0x108f0df
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x108f1ac
test byte [eax + 0x1c], 1
je 0x108f1ac
cmp byte [eax + 0x19], 3
jb 0x108f1ac
push dword [0x11115bc]
push ebx
push 0x1008be8
push 0x2c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010194be
mov eax, dword [ebp + 0xc]
mov dword [eax], 1
xor ebx, ebx
mov eax, dword [0x111124c]
cmp dword [ebp - 4], 0xffffffff
je 0x108f1cc
push dword [ebp - 4]
call esi
mov eax, dword [0x111124c]
xor edi, edi
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0xc], edi
je 0x108f1e3
push dword [ebp - 0xc]
call esi
mov eax, dword [0x111124c]
cmp dword [ebp - 8], edi
je 0x108f1f2
push dword [ebp - 8]
call esi
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x108f217
test byte [eax + 0x1c], 2
je 0x108f217
cmp byte [eax + 0x19], 4
jb 0x108f217
push 0x1008be8
push 0x2e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8