Function at 0x100372e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10190390
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x101f62b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
call fcn.1004cb70
cmp dword [edi + 0x14], 0x10
mov ecx, edi
jb 0x1003731b
mov ecx, dword [edi]
mov esi, dword [eax]
push ecx
push str.Inside__pim_uninstall_package:_Removing_package_id:__s_
push 0x101aedac
mov esi, dword [esi + 0x50]
mov ecx, esi
push eax
call dword [0x1019a4f8]
call esi
add esp, 0x10
mov edx, edi
mov ecx, ebx
call fcn.1001fb70
test eax, eax
jne 0x10037388
call fcn.1004cb70
cmp dword [edi + 0x14], 0x10
jb 0x10037353
mov edi, dword [edi]
mov esi, dword [eax]
push edi
push str.__pim_uninstallPackage_:package___s__is_not_installed_on_the_machine
push 0x101aee58
mov esi, dword [esi + 0x54]
mov ecx, esi
push eax
call dword [0x1019a4f8]
call esi
add esp, 0x10
mov eax, 5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.1004cb70
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x1003739a
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100373bf
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x100373af
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
mov cl, 1
setne al
jmp 0x100373c3
xor cl, cl
mov al, cl
xor edx, edx
movzx eax, al
test cl, cl
cmove eax, edx
test al, al
je 0x100374c6
sub esp, 8
mov ecx, esi
push edx
push 1
mov dl, 1
call fcn.1010a370
add esp, 0x10
test al, al
jne 0x100374eb
push 0
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.1010f8c0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 0x10
jb 0x1003740d
mov eax, dword [eax]
push eax
push str.Inside__pim_uninstall_package:_Failed_to_delete_folder:___s_
push 0x101aedac
push ecx
call fcn.1004cb70
add esp, 4
push eax
call fcn.1004d700
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.1000ad20
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.Inside__pim_uninstall_package:_Re_attempting_delete_operation
push 0x101aedac
call fcn.1004cb70
push eax
call fcn.1004d700
add esp, 0xc
mov ecx, esi
push 0
call fcn.100ff050
add esp, 4
test al, al
jne 0x100374eb
push 0
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.1010f8c0
add esp, 0xc
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
jb 0x1003748a
mov eax, dword [eax]
push eax
push str.Inside__pim_uninstall_package:_Again_failed_to_delete_folder:___s_
push 0x101aedac
push ecx
call fcn.1004cb70
add esp, 4
push eax
call fcn.1004d700
add esp, 0x10
lea ecx, [ebp - 0x44]
call fcn.1000ad20
mov eax, 0x65
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x100374ce
mov esi, dword [esi]
push esi
push str._pim_uninstall_package:_Folder_path____s_doesnt_exist
push 0x101aedac
push ecx
call fcn.1004cb70
add esp, 4
push eax
call fcn.1004d400
add esp, 0x10
xor eax, eax
cmp dword [edi + 0x10], eax
jbe 0x10037522
mov edx, edi
mov ecx, ebx
call fcn.10021580
test eax, eax
jne 0x10037522
mov edx, edi
mov ecx, ebx
call fcn.100213c0
test eax, eax
jne 0x10037522
mov edx, edi
mov ecx, ebx
call fcn.10021bd0
test eax, eax
jne 0x10037522
mov edx, edi
mov ecx, ebx
call fcn.10021200
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret