Function at 0x10018035
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10051206
mov eax, dword fs:[0]
push eax
mov eax, 0x1a04
call fcn.10044f70
mov eax, dword [0x10068060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov esi, ecx
mov dword [ebp - 0x19c4], eax
cmp dword [esi + 0x14], eax
jne 0x10018085
mov dword [ebp - 0x19c4], 1
jmp 0x10018272
push 0x198c
push eax
lea eax, [ebp - 0x19c0]
push eax
call fcn.100384f0
add esp, 0xc
lea eax, [ebp - 0x19c0]
push eax
push esi
call fcn.10017e07
test eax, eax
jne 0x100180c5
push str.install_location_not_find
call fcn.1002fd9f
pop ecx
mov dword [ebp - 0x19c4], 5
jmp 0x10018272
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x1540]
push eax
lea eax, [ebp - 0x1940]
push eax
push str.UnInstallSilent_name:_ls__location:_ls__regedit:_ls
call fcn.1002fd9f
add esp, 0x10
lea eax, [ebp - 0x1540]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
lea eax, [ebp - 0x1540]
jne 0x1001810d
push eax
push str.not_find_location:_ls
call fcn.1002fd9f
pop ecx
jmp 0x100180b5
push str.Windows
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x1001812c
mov dword [ebp - 0x19c4], 6
jmp 0x10018272
lea eax, [ebp - 0x1540]
push eax
lea eax, [ebp - 0x19ec]
push eax
mov ebx, 0x10059f90
call fcn.1002cebe
pop ecx
pop ecx
mov ecx, eax
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0xc]
push 0x1c
pop ecx
cdq
idiv ecx
push 2
pop edi
mov ecx, edi
lea esi, [ebp - 0x19ec]
cmp ecx, eax
sbb bl, bl
inc bl
call fcn.1000a1f6
push dword [ebp - 0x19ec]
call fcn.10036398
pop ecx
test bl, bl
jne 0x1001811d
lea eax, [ebp - 0x1540]
push eax
lea esi, [ebp - 0x2c]
call fcn.10001eb9
xor ebx, ebx
lea eax, [ebp - 0x19f4]
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.1000d010
mov ecx, dword [eax]
mov esi, dword [eax + 4]
mov dword [ebp - 0x19cc], ecx
lea eax, [ebp - 0x19d4]
lea ecx, [ebp - 0x2c]
call fcn.1000cff0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x19cc], ecx
xor ecx, ecx
cmp eax, esi
je 0x10018244
cmp word [eax], 0x5c
jne 0x100181cc
inc ecx
add eax, edi
cmp eax, esi
jne 0x100181c5
cmp ecx, edi
jb 0x10018244
jne 0x100181ea
mov edi, dword [ebp - 0x18]
dec edi
lea eax, [ebp - 0x2c]
call fcn.100116c8
cmp word [eax], 0x5c
je 0x10018244
lea eax, [ebp - 0x1540]
push eax
call fcn.10017d11
lea eax, [ebp - 0x1540]
push eax
lea esi, [ebp - 0x1a10]
call fcn.10001eb9
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.10016ea7
push ebx
push 1
mov byte [ebp - 4], 0
call fcn.100021e2
lea ecx, [ebp - 0x1540]
call fcn.10017907
lea ecx, [ebp - 0x1540]
call fcn.10017592
lea ebx, [ebp - 0x19c0]
call fcn.1001711f
push 0
jmp 0x10018268
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x10018250
lea eax, [ebp - 0x28]
push eax
push str.location_too_short___ls
call fcn.1002fd9f
pop ecx
pop ecx
mov dword [ebp - 0x19c4], 6
push ebx
push 1
lea esi, [ebp - 0x2c]
call fcn.100021e2
mov eax, dword [ebp - 0x19c4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10035ee9
leave
ret