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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10051b35
mov eax, dword fs:[0]
push eax
mov eax, 0x1a04
call fcn.10045780
mov eax, dword [0x10069060]
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 0x1001864d
mov dword [ebp - 0x19c4], 1
jmp 0x1001883a
push 0x198c
push eax
lea eax, [ebp - 0x19c0]
push eax
call fcn.10038cf0
add esp, 0xc
lea eax, [ebp - 0x19c0]
push eax
push esi
call fcn.100183cf
test eax, eax
jne 0x1001868d
push str.install_location_not_find
call fcn.1003048c
pop ecx
mov dword [ebp - 0x19c4], 5
jmp 0x1001883a
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.1003048c
add esp, 0x10
lea eax, [ebp - 0x1540]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
lea eax, [ebp - 0x1540]
jne 0x100186d5
push eax
push str.not_find_location:_ls
call fcn.1003048c
pop ecx
jmp 0x1001867d
push str.Windows
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x100186f4
mov dword [ebp - 0x19c4], 6
jmp 0x1001883a
lea eax, [ebp - 0x1540]
push eax
lea eax, [ebp - 0x19ec]
push eax
mov ebx, 0x1005b2d0
call fcn.1002d565
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.1000a440
push dword [ebp - 0x19ec]
call fcn.10036b92
pop ecx
test bl, bl
jne 0x100186e5
lea eax, [ebp - 0x1540]
push eax
lea esi, [ebp - 0x2c]
call fcn.10001ec7
xor ebx, ebx
lea eax, [ebp - 0x19f4]
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.1000d2f8
mov ecx, dword [eax]
mov esi, dword [eax + 4]
mov dword [ebp - 0x19cc], ecx
lea eax, [ebp - 0x19d4]
lea ecx, [ebp - 0x2c]
call fcn.1000d2d8
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x19cc], ecx
xor ecx, ecx
cmp eax, esi
je 0x1001880c
cmp word [eax], 0x5c
jne 0x10018794
inc ecx
add eax, edi
cmp eax, esi
jne 0x1001878d
cmp ecx, edi
jb 0x1001880c
jne 0x100187b2
mov edi, dword [ebp - 0x18]
dec edi
lea eax, [ebp - 0x2c]
call fcn.1001188f
cmp word [eax], 0x5c
je 0x1001880c
lea eax, [ebp - 0x1540]
push eax
call fcn.100182d9
lea eax, [ebp - 0x1540]
push eax
lea esi, [ebp - 0x1a10]
call fcn.10001ec7
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.1001746f
push ebx
push 1
mov byte [ebp - 4], 0
call fcn.100021ef
lea ecx, [ebp - 0x1540]
call fcn.10017ecf
lea ecx, [ebp - 0x1540]
call fcn.10017b5a
lea ebx, [ebp - 0x19c0]
call fcn.100176e7
push 0
jmp 0x10018830
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x10018818
lea eax, [ebp - 0x28]
push eax
push str.location_too_short___ls
call fcn.1003048c
pop ecx
pop ecx
mov dword [ebp - 0x19c4], 6
push ebx
push 1
lea esi, [ebp - 0x2c]
call fcn.100021ef
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.100366e3
leave
ret