Function at 0x108a704
Capabilities:
Check if file exists

Disassembly:
push 0x3c
mov eax, 0x10ba2fa
call fcn.010aac64
mov esi, ecx
lea eax, [ebp - 0x10]
push eax
xor ebx, ebx
push 0x1021894
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], ebx
call fcn.010ab86f
push 8
xor eax, eax
pop ecx
lea edi, [ebp - 0x44]
mov dword [ebp - 0x48], ebx
rep stosd dword es:[edi], eax
xor edi, edi
inc edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], edi
cmp dword [ebp + 8], ebx
jne 0x108a761
mov esi, 0x80004003
mov dword [ebp - 0x10], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.010ab8b6
mov eax, esi
call fcn.010aad50
ret 0xc
test dword [ebp + 0xc], 0x100000
je 0x108a77d
mov ecx, esi
call fcn.0108952b
cmp eax, 2
jne 0x108a77d
mov dword [ebp - 0x10], ebx
xor esi, esi
jmp 0x108a74b
lea eax, [ebp - 0x48]
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x108a7db
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x108a7a3
mov dword [ebp - 0x10], 0x80030002
jmp 0x108a7b4
cmp eax, ebx
jle 0x108a7b1
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x10], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x108a7e0
test byte [eax + 0x1c], 4
je 0x108a7e0
push dword [ebp - 0x10]
push 0x10215f0
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0107918f
mov eax, dword [section..data]
test dword [ebp - 0x48], 0x10
jne 0x108a80f
mov dword [ebp - 0x10], 0x800300fc
cmp eax, section..data
je 0x108a80f
test byte [eax + 0x1c], 4
je 0x108a80f
push 0x10215f0
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102fea5
push edi
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.SHELL32.dll_SHGetSettings]
mov eax, dword [ebp - 0x14]
and eax, edi
cmp dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], eax
jl 0x108a8e3
mov ecx, esi
call fcn.0108952b
test eax, eax
jne 0x108a8e3
cmp dword [esi + 0x54], ebx
jne 0x108a8e3
push ebx
lea edi, [esi + 4]
push edi
push dword [esi + 0x3c]
push ebx
push dword [ebp + 8]
call fcn.01092238
mov dword [ebp - 0x10], eax
cmp eax, 0x80030002
jne 0x108a887
mov eax, dword [section..data]
cmp eax, section..data
je 0x108a8bb
test byte [eax + 0x1c], 8
je 0x108a8bb
push 0x10215f0
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102fea5
jmp 0x108a8bb
cmp eax, 0x80030109
jne 0x108a8c0
mov eax, dword [section..data]
cmp eax, section..data
je 0x108a8b2
test byte [eax + 0x1c], 8
je 0x108a8b2
push 0x10215f0
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102fea5
push ebx
push dword [ebp + 8]
call fcn.0109143a
mov dword [ebp - 0x10], ebx
jmp 0x108a8e3
xor ebx, ebx
inc ebx
push ebx
mov ecx, esi
call fcn.01086ae3
push dword [ebp + 8]
mov dword [esi + 0x54], ebx
call fcn.01075f95
push eax
push 0x180008
mov ecx, edi
call fcn.01086571
lea ebx, [esi + 4]
push 0x1b0003
mov ecx, ebx
call fcn.01085ea2
push dword [ebp - 0x1c]
mov ecx, esi
push dword [ebp + 8]
mov edi, eax
call fcn.01089d00
test edi, edi
je 0x108a90e
cmp dword [edi + 8], eax
jne 0x108a90e
and dword [ebp - 0x18], 0
cmp dword [ebp - 0x10], 0
jl 0x108a93a
cmp dword [ebp - 0x18], 1
mov ecx, esi
jne 0x108a933
push dword [ebp + 0x10]
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0108a58c
mov dword [ebp - 0x10], eax
jmp 0x108a93a
push 2
call fcn.01086ae3
push 0
mov ecx, ebx
call fcn.01087f3c
mov esi, dword [ebp - 0x10]
jmp 0x108a74b