Function at 0x108c6b8
Capabilities:
Check if file exists

Disassembly:
push 0x234
mov eax, 0x10ba49b
call fcn.010aac8f
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x220]
push eax
mov dword [ebp - 0x228], ecx
xor esi, esi
push 0x1021dc8
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x220], esi
call fcn.010ab82f
xor eax, eax
push 0x208
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push esi
push eax
mov dword [ebp - 4], esi
xor edi, edi
mov dword [ebp - 0x238], esi
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
mov dword [ebp - 0x224], esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x108c771
mov dword [ebp - 0x220], 0x80030002
mov eax, dword [section..data]
cmp eax, section..data
je 0x108c8a0
test byte [eax + 0x1c], 4
je 0x108c8a0
push 0x10218f8
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102fe95
cmp dword [ebp - 0x220], esi
jl 0x108c8a0
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov edi, eax
neg edi
sbb edi, edi
neg edi
cmp dword [ebp - 0x220], esi
jl 0x108c8a0
test byte [ebp + 0xc], 8
je 0x108c7c1
cmp edi, 1
jne 0x108c7ab
cmp dword [ebp - 0x234], esi
je 0x108c7b7
cmp edi, esi
jne 0x108c7c1
cmp dword [ebp - 0x22c], esi
jne 0x108c7c1
mov dword [ebp - 0x220], 0x80070057
cmp dword [ebp - 0x220], esi
jl 0x108c8a0
cmp edi, 1
jne 0x108c7da
mov dword [ebp - 0x224], ebx
jmp 0x108c826
push 0x104
push ebx
push 0x105
lea eax, [ebp - 0x21c]
push eax
call fcn.0103d897
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea ecx, [ebp - 0x21c]
cmp eax, ecx
je 0x108c80d
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x220], esi
jl 0x108c8a0
cmp edi, esi
jne 0x108c8a0
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x224]
mov dword [ebp - 0x230], esi
call fcn.01084802
mov ecx, dword [ebp - 0x228]
push eax
push dword [ebp - 0x224]
call fcn.01087227
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x230]
cmp eax, esi
je 0x108c89a
mov ecx, dword [ebp - 0x234]
mov dword [ebp - 0x238], 1
cmp ecx, esi
je 0x108c88e
mov dword [ecx], eax
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x220], esi
mov eax, dword [ebp + 0xc]
test al, 8
je 0x108c8ce
mov ecx, dword [ebp - 0x228]
cmp edi, 1
jne 0x108c953
push dword [ebp - 0x234]
push eax
push esi
push dword [ebp - 0x224]
call fcn.0108af48
jmp 0x108c967
cmp dword [ebp - 0x238], esi
jne 0x108c94d
cmp dword [ebp - 0x220], esi
jl 0x108c96d
cmp dword [ebp - 0x224], esi
je 0x108c905
mov ecx, dword [ebp - 0x228]
push esi
push eax
push 0xfffffffffffffffc
push dword [ebp - 0x224]
call fcn.0108af48
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], esi
jl 0x108c96d
push dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x228]
push dword [ebp - 0x234]
push dword [ebp + 0xc]
push ebx
call fcn.0108c5e6
mov dword [ebp - 0x220], eax
cmp eax, 1
jne 0x108c96d
test dword [ebp + 0xc], 0x80000
je 0x108c96d
push dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x228]
push dword [ebp + 0xc]
jmp 0x108c95a
mov ecx, dword [ebp - 0x228]
push dword [ebp - 0x22c]
push eax
push esi
push ebx
push dword [ebp - 0x224]
call fcn.0108c100
mov dword [ebp - 0x220], eax
mov esi, dword [ebp - 0x220]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x240]
call fcn.010ab876
mov eax, esi
call fcn.010aad21
ret 0x10