Function at 0x108c81d
Capabilities:
Check if file exists

Disassembly:
push 0x234
mov eax, 0x10ba3fa
call fcn.010aacd7
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.010ab86f
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 0x108c8d6
mov dword [ebp - 0x220], 0x80030002
mov eax, dword [section..data]
cmp eax, section..data
je 0x108ca05
test byte [eax + 0x1c], 4
je 0x108ca05
push 0x10218f8
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102fea5
cmp dword [ebp - 0x220], esi
jl 0x108ca05
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 0x108ca05
test byte [ebp + 0xc], 8
je 0x108c926
cmp edi, 1
jne 0x108c910
cmp dword [ebp - 0x234], esi
je 0x108c91c
cmp edi, esi
jne 0x108c926
cmp dword [ebp - 0x22c], esi
jne 0x108c926
mov dword [ebp - 0x220], 0x80070057
cmp dword [ebp - 0x220], esi
jl 0x108ca05
cmp edi, 1
jne 0x108c93f
mov dword [ebp - 0x224], ebx
jmp 0x108c98b
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 0x108c972
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 0x108ca05
cmp edi, esi
jne 0x108ca05
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x224]
mov dword [ebp - 0x230], esi
call fcn.01084927
mov ecx, dword [ebp - 0x228]
push eax
push dword [ebp - 0x224]
call fcn.0108738b
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x230]
cmp eax, esi
je 0x108c9ff
mov ecx, dword [ebp - 0x234]
mov dword [ebp - 0x238], 1
cmp ecx, esi
je 0x108c9f3
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 0x108ca33
mov ecx, dword [ebp - 0x228]
cmp edi, 1
jne 0x108cab8
push dword [ebp - 0x234]
push eax
push esi
push dword [ebp - 0x224]
call fcn.0108b0ad
jmp 0x108cacc
cmp dword [ebp - 0x238], esi
jne 0x108cab2
cmp dword [ebp - 0x220], esi
jl 0x108cad2
cmp dword [ebp - 0x224], esi
je 0x108ca6a
mov ecx, dword [ebp - 0x228]
push esi
push eax
push 0xfffffffffffffffc
push dword [ebp - 0x224]
call fcn.0108b0ad
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], esi
jl 0x108cad2
push dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x228]
push dword [ebp - 0x234]
push dword [ebp + 0xc]
push ebx
call fcn.0108c74b
mov dword [ebp - 0x220], eax
cmp eax, 1
jne 0x108cad2
test dword [ebp + 0xc], 0x80000
je 0x108cad2
push dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x228]
push dword [ebp + 0xc]
jmp 0x108cabf
mov ecx, dword [ebp - 0x228]
push dword [ebp - 0x22c]
push eax
push esi
push ebx
push dword [ebp - 0x224]
call fcn.0108c265
mov dword [ebp - 0x220], eax
mov esi, dword [ebp - 0x220]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x240]
call fcn.010ab8b6
mov eax, esi
call fcn.010aad69
ret 0x10