Function at 0x108a59f
Capabilities:
Check if file exists

Disassembly:
push 0x3c
mov eax, 0x10ba350
call fcn.010aac1c
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.010ab82f
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 0x108a5fc
mov esi, 0x80004003
mov dword [ebp - 0x10], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.010ab876
mov eax, esi
call fcn.010aad08
ret 0xc
test dword [ebp + 0xc], 0x100000
je 0x108a618
mov ecx, esi
call fcn.010893c6
cmp eax, 2
jne 0x108a618
mov dword [ebp - 0x10], ebx
xor esi, esi
jmp 0x108a5e6
lea eax, [ebp - 0x48]
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x108a676
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x108a63e
mov dword [ebp - 0x10], 0x80030002
jmp 0x108a64f
cmp eax, ebx
jle 0x108a64c
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x10], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x108a67b
test byte [eax + 0x1c], 4
je 0x108a67b
push dword [ebp - 0x10]
push 0x10215f0
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01079041
mov eax, dword [section..data]
test dword [ebp - 0x48], 0x10
jne 0x108a6aa
mov dword [ebp - 0x10], 0x800300fc
cmp eax, section..data
je 0x108a6aa
test byte [eax + 0x1c], 4
je 0x108a6aa
push 0x10215f0
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102fe95
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 0x108a77e
mov ecx, esi
call fcn.010893c6
test eax, eax
jne 0x108a77e
cmp dword [esi + 0x54], ebx
jne 0x108a77e
push ebx
lea edi, [esi + 4]
push edi
push dword [esi + 0x3c]
push ebx
push dword [ebp + 8]
call fcn.010920d3
mov dword [ebp - 0x10], eax
cmp eax, 0x80030002
jne 0x108a722
mov eax, dword [section..data]
cmp eax, section..data
je 0x108a756
test byte [eax + 0x1c], 8
je 0x108a756
push 0x10215f0
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102fe95
jmp 0x108a756
cmp eax, 0x80030109
jne 0x108a75b
mov eax, dword [section..data]
cmp eax, section..data
je 0x108a74d
test byte [eax + 0x1c], 8
je 0x108a74d
push 0x10215f0
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102fe95
push ebx
push dword [ebp + 8]
call fcn.010912d5
mov dword [ebp - 0x10], ebx
jmp 0x108a77e
xor ebx, ebx
inc ebx
push ebx
mov ecx, esi
call fcn.010869be
push dword [ebp + 8]
mov dword [esi + 0x54], ebx
call fcn.01075e31
push eax
push 0x180008
mov ecx, edi
call fcn.0108644c
lea ebx, [esi + 4]
push 0x1b0003
mov ecx, ebx
call fcn.01085d7d
push dword [ebp - 0x1c]
mov ecx, esi
push dword [ebp + 8]
mov edi, eax
call fcn.01089b9b
test edi, edi
je 0x108a7a9
cmp dword [edi + 8], eax
jne 0x108a7a9
and dword [ebp - 0x18], 0
cmp dword [ebp - 0x10], 0
jl 0x108a7d5
cmp dword [ebp - 0x18], 1
mov ecx, esi
jne 0x108a7ce
push dword [ebp + 0x10]
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0108a427
mov dword [ebp - 0x10], eax
jmp 0x108a7d5
push 2
call fcn.010869be
push 0
mov ecx, ebx
call fcn.01087dd8
mov esi, dword [ebp - 0x10]
jmp 0x108a5e6