Function at 0x5b0fd70
Capabilities:
Check if file exists
Get common file path
Get file attributes
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1660
call fcn.05acf3e0
mov eax, dword [0x5b920e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov edi, ecx
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [ebp - 0x1660], edi
mov word [ebp - 0x20c], ax
call fcn.05acaa80
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x5b0fdde
add edi, 4
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, str.GetModuleFileName
call fcn.05b0e4a0
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5b0fde7
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [edi + 0x154]
call fcn.05a01370
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5b0fe20
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x20c]
lea esi, [edi + 0x74]
push edx
mov ecx, esi
call fcn.05a01370
cmp dword [esi + 0x14], 8
jb 0x5b0fe49
mov esi, dword [esi]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call esi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x165a]
push ecx
mov word [ebp - 0x165c], ax
call fcn.05acaa80
add esp, 0xc
push 0x104
lea edx, [ebp - 0x165c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x5b10386
cmp eax, 0x104
jae 0x5b10386
lea eax, [ebp - 0x165c]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5b0fea0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x165c]
lea ecx, [edi + 0x3c]
push eax
call fcn.05a01370
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x1042]
push edx
mov word [ebp - 0x1044], cx
call fcn.05acaa80
add esp, 0xc
push 0x104
lea eax, [ebp - 0x1044]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x5b10370
cmp eax, 0x104
jae 0x5b10370
lea ecx, [ebp - 0x1044]
push ecx
call esi
lea edx, [ebp - 0x1044]
push edx
lea ecx, [edi + 0x58]
call fcn.05a01030
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x124a]
push ecx
mov word [ebp - 0x124c], ax
call fcn.05acaa80
push 0x208
mov eax, 0x103
lea ecx, [ebp - 0x1044]
lea edx, [ebp - 0x124c]
call fcn.05a01a00
push 1
push 0x5b6b960
push 0x5b6b8ac
push str.Temp
mov ebx, 0x208
lea edi, [ebp - 0x124c]
call fcn.05a057c0
add esp, 0x20
mov edx, edi
push edx
call esi
mov eax, edi
mov edi, dword [ebp - 0x1660]
push eax
lea ecx, [edi + 0x138]
call fcn.05a01030
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x1452]
push edx
mov word [ebp - 0x1454], cx
call fcn.05acaa80
add esp, 0xc
lea eax, [ebp - 0x1454]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x5b1035a
cmp eax, 0x104
jae 0x5b1035a
lea eax, [ebp - 0x1454]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5b0ffe0
sub eax, edx
sar eax, 1
je 0x5b10007
lea eax, [ebp + eax*2 - 0x1456]
mov ecx, 0x5c
cmp cx, word [eax]
jne 0x5b10007
xor edx, edx
mov word [eax], dx
lea eax, [ebp - 0x1454]
push eax
lea ecx, [edi + 0x20]
call fcn.05a01030
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0xc32]
push edx
mov word [ebp - 0xc34], cx
call fcn.05acaa80
push 0x208
mov eax, 0x103
lea ecx, [ebp - 0x20c]
lea edx, [ebp - 0xc34]
call fcn.05a01a00
push 1
push 0x5b6b960
push 0x5b6b8ac
push str.Setup.ini
lea edi, [ebp - 0xc34]
call fcn.05a057c0
add esp, 0x20
mov eax, edi
push eax
call esi
mov ecx, edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5b10092
mov ecx, dword [ebp - 0x1660]
mov edx, edi
push edx
add ecx, 0x90
call fcn.05a01030
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x822]
push ecx
mov word [ebp - 0x824], ax
call fcn.05acaa80
push 0x208
mov eax, 0x103
lea ecx, [ebp - 0x20c]
lea edx, [ebp - 0x824]
call fcn.05a01a00
push 1
push 0x5b6b960
push 0x5b6b8ac
push 0x5b6b27c
lea edi, [ebp - 0x824]
call fcn.05a057c0
add esp, 0x20
mov edx, edi
push edx
call esi
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5b1010e
mov ecx, dword [ebp - 0x1660]
mov edx, edi
add ecx, 0xac
push edx
call fcn.05a01030
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x61a]
push ecx
mov word [ebp - 0x61c], ax
call fcn.05acaa80
mov ecx, dword [ebp - 0x1660]
add ecx, 0xac
add esp, 0xc
cmp dword [ecx + 0x14], 8
jb 0x5b10140
mov ecx, dword [ecx]
lea edx, [ebp - 0x61c]
call fcn.05a05ed0
push 1
push 0x5b6b960
push 0x5b6b8ac
push 0x5b6b8ac
lea edi, [ebp - 0x61c]
call fcn.05a057c0
push 1
push 0x5b6b960
push 0x5b6b8ac
push str.AppRemover_API.dll
call fcn.05a057c0
add esp, 0x20
mov edx, edi
push edx
call esi
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5b101a7
mov ecx, edi
push ecx
mov ecx, dword [ebp - 0x1660]
add ecx, 0xc8
call fcn.05a01030
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x412]
push eax
mov word [ebp - 0x414], dx
call fcn.05acaa80
mov ecx, dword [ebp - 0x1660]
add ecx, 0xac
add esp, 0xc
cmp dword [ecx + 0x14], 8
jb 0x5b101d9
mov ecx, dword [ecx]
lea edx, [ebp - 0x414]
call fcn.05a05ed0
push 1
push 0x5b6b960
push 0x5b6b8ac
push 0x5b6b8ac
lea edi, [ebp - 0x414]
call fcn.05a057c0
push 1
push 0x5b6b960
push 0x5b6b8ac
push str.SupportedProducts.ini
call fcn.05a057c0
add esp, 0x20
mov ecx, edi
push ecx
call esi
mov edx, edi
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5b10240
mov ecx, dword [ebp - 0x1660]
mov eax, edi
push eax
add ecx, 0xe4
call fcn.05a01030
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0xe3a]
push edx
mov word [ebp - 0xe3c], cx
call fcn.05acaa80
mov ecx, dword [ebp - 0x1660]
add ecx, 0x3c
add esp, 0xc
cmp dword [ecx + 0x14], 8
jb 0x5b1026f
mov ecx, dword [ecx]
lea edx, [ebp - 0xe3c]
call fcn.05a05ed0
push 1
push 0x5b6b960
push 0x5b6b8ac
push str.msi.dll
mov ebx, 0x104
lea edi, [ebp - 0xe3c]
call fcn.05a057c0
add esp, 0x10
mov eax, edi
push eax
call esi
mov ecx, edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5b102c5
mov ecx, dword [ebp - 0x1660]
mov edx, edi
push edx
add ecx, 0x100
call fcn.05a01030
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0xa2a]
push ecx
mov word [ebp - 0xa2c], ax
call fcn.05acaa80
mov ecx, dword [ebp - 0x1660]
add ecx, 0x3c
add esp, 0xc
cmp dword [ecx + 0x14], 8
jb 0x5b102f4
mov ecx, dword [ecx]
lea edx, [ebp - 0xa2c]
call fcn.05a05ed0
push 1
push 0x5b6b960
push 0x5b6b8ac
push str.msiexec.exe
lea edi, [ebp - 0xa2c]
call fcn.05a057c0
add esp, 0x10
mov edx, edi
push edx
call esi
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
pop esi
pop ebx
cmp eax, 0xffffffff
je 0x5b1034c
lea ecx, [ebp - 0xa2c]
push ecx
mov ecx, dword [ebp - 0x1660]
add ecx, 0x11c
call fcn.05a01030
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.05ac7ec0
mov esp, ebp
pop ebp
ret
add edi, 4
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, str.GetTempPath
call fcn.05b0e4a0
add edi, 4
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, str.GetWindowsDirectory
call fcn.05b0e4a0
add edi, 4
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, str.GetSystemDirectory
call fcn.05b0e4a0
int3