Function at 0x108a5af
Capabilities:
Check if file exists

Disassembly:
push 0x3c
mov eax, 0x10ba361
call fcn.010aac2c
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.010ab83f
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 0x108a60c
mov esi, 0x80004003
mov dword [ebp - 0x10], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.010ab886
mov eax, esi
call fcn.010aad18
ret 0xc
test dword [ebp + 0xc], 0x100000
je 0x108a628
mov ecx, esi
call fcn.010893d6
cmp eax, 2
jne 0x108a628
mov dword [ebp - 0x10], ebx
xor esi, esi
jmp 0x108a5f6
lea eax, [ebp - 0x48]
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x108a686
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x108a64e
mov dword [ebp - 0x10], 0x80030002
jmp 0x108a65f
cmp eax, ebx
jle 0x108a65c
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x10], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x108a68b
test byte [eax + 0x1c], 4
je 0x108a68b
push dword [ebp - 0x10]
push 0x10215f0
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01079051
mov eax, dword [section..data]
test dword [ebp - 0x48], 0x10
jne 0x108a6ba
mov dword [ebp - 0x10], 0x800300fc
cmp eax, section..data
je 0x108a6ba
test byte [eax + 0x1c], 4
je 0x108a6ba
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 0x108a78e
mov ecx, esi
call fcn.010893d6
test eax, eax
jne 0x108a78e
cmp dword [esi + 0x54], ebx
jne 0x108a78e
push ebx
lea edi, [esi + 4]
push edi
push dword [esi + 0x3c]
push ebx
push dword [ebp + 8]
call fcn.010920e3
mov dword [ebp - 0x10], eax
cmp eax, 0x80030002
jne 0x108a732
mov eax, dword [section..data]
cmp eax, section..data
je 0x108a766
test byte [eax + 0x1c], 8
je 0x108a766
push 0x10215f0
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102fea5
jmp 0x108a766
cmp eax, 0x80030109
jne 0x108a76b
mov eax, dword [section..data]
cmp eax, section..data
je 0x108a75d
test byte [eax + 0x1c], 8
je 0x108a75d
push 0x10215f0
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102fea5
push ebx
push dword [ebp + 8]
call fcn.010912e5
mov dword [ebp - 0x10], ebx
jmp 0x108a78e
xor ebx, ebx
inc ebx
push ebx
mov ecx, esi
call fcn.010869ce
push dword [ebp + 8]
mov dword [esi + 0x54], ebx
call fcn.01075e41
push eax
push 0x180008
mov ecx, edi
call fcn.0108645c
lea ebx, [esi + 4]
push 0x1b0003
mov ecx, ebx
call fcn.01085d8d
push dword [ebp - 0x1c]
mov ecx, esi
push dword [ebp + 8]
mov edi, eax
call fcn.01089bab
test edi, edi
je 0x108a7b9
cmp dword [edi + 8], eax
jne 0x108a7b9
and dword [ebp - 0x18], 0
cmp dword [ebp - 0x10], 0
jl 0x108a7e5
cmp dword [ebp - 0x18], 1
mov ecx, esi
jne 0x108a7de
push dword [ebp + 0x10]
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0108a437
mov dword [ebp - 0x10], eax
jmp 0x108a7e5
push 2
call fcn.010869ce
push 0
mov ecx, ebx
call fcn.01087de8
mov esi, dword [ebp - 0x10]
jmp 0x108a5f6