Function at 0x108c6c8
Capabilities:
Check if file exists

Disassembly:
push 0x234
mov eax, 0x10ba4ac
call fcn.010aac9f
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.010ab83f
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 0x108c781
mov dword [ebp - 0x220], 0x80030002
mov eax, dword [section..data]
cmp eax, section..data
je 0x108c8b0
test byte [eax + 0x1c], 4
je 0x108c8b0
push 0x10218f8
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102fea5
cmp dword [ebp - 0x220], esi
jl 0x108c8b0
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 0x108c8b0
test byte [ebp + 0xc], 8
je 0x108c7d1
cmp edi, 1
jne 0x108c7bb
cmp dword [ebp - 0x234], esi
je 0x108c7c7
cmp edi, esi
jne 0x108c7d1
cmp dword [ebp - 0x22c], esi
jne 0x108c7d1
mov dword [ebp - 0x220], 0x80070057
cmp dword [ebp - 0x220], esi
jl 0x108c8b0
cmp edi, 1
jne 0x108c7ea
mov dword [ebp - 0x224], ebx
jmp 0x108c836
push 0x104
push ebx
push 0x105
lea eax, [ebp - 0x21c]
push eax
call fcn.0103d8a8
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea ecx, [ebp - 0x21c]
cmp eax, ecx
je 0x108c81d
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 0x108c8b0
cmp edi, esi
jne 0x108c8b0
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x224]
mov dword [ebp - 0x230], esi
call fcn.01084812
mov ecx, dword [ebp - 0x228]
push eax
push dword [ebp - 0x224]
call fcn.01087237
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x230]
cmp eax, esi
je 0x108c8aa
mov ecx, dword [ebp - 0x234]
mov dword [ebp - 0x238], 1
cmp ecx, esi
je 0x108c89e
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 0x108c8de
mov ecx, dword [ebp - 0x228]
cmp edi, 1
jne 0x108c963
push dword [ebp - 0x234]
push eax
push esi
push dword [ebp - 0x224]
call fcn.0108af58
jmp 0x108c977
cmp dword [ebp - 0x238], esi
jne 0x108c95d
cmp dword [ebp - 0x220], esi
jl 0x108c97d
cmp dword [ebp - 0x224], esi
je 0x108c915
mov ecx, dword [ebp - 0x228]
push esi
push eax
push 0xfffffffffffffffc
push dword [ebp - 0x224]
call fcn.0108af58
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], esi
jl 0x108c97d
push dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x228]
push dword [ebp - 0x234]
push dword [ebp + 0xc]
push ebx
call fcn.0108c5f6
mov dword [ebp - 0x220], eax
cmp eax, 1
jne 0x108c97d
test dword [ebp + 0xc], 0x80000
je 0x108c97d
push dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x228]
push dword [ebp + 0xc]
jmp 0x108c96a
mov ecx, dword [ebp - 0x228]
push dword [ebp - 0x22c]
push eax
push esi
push ebx
push dword [ebp - 0x224]
call fcn.0108c110
mov dword [ebp - 0x220], eax
mov esi, dword [ebp - 0x220]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x240]
call fcn.010ab886
mov eax, esi
call fcn.010aad31
ret 0x10