Function at 0x40c69e
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
sub esp, 0x31c
lea ebp, [esp - 4]
mov eax, dword [0x4de270]
xor eax, ebp
mov dword [ebp + 0x31c], eax
push 0x70
mov eax, 0x4a1cbd
call fcn.00486a61
xor edi, edi
push str.CUnInstallerHelper::HandleUninstallLocalAppData
lea esi, [ebp + 0xa4]
mov dword [ebp - 4], edi
call fcn.00404db2
mov byte [ebp - 4], 1
call fcn.00404e64
push edi
push 1
mov byte [ebp - 4], 0
call fcn.00404f5a
push str.USERPROFILE
lea ecx, [ebp - 0x58]
call fcn.0040b6ee
pop ecx
mov byte [ebp - 4], 2
cmp dword [eax + 0x18], 8
jb 0x40c709
mov eax, dword [eax + 4]
jmp 0x40c70c
add eax, 4
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004032f3
push edi
push 1
lea esi, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.00404f5a
mov ebx, 0x4aec58
push ebx
lea eax, [ebp - 0x10]
push eax
call fcn.004032f3
push edi
push 0x1c
lea eax, [ebp + 0x114]
push eax
push edi
mov byte [ebp - 4], 5
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp + 0x114]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00403371
push 0x4ad4a0
lea eax, [ebp - 0x10]
push eax
call fcn.00403371
cmp dword [ebp + 0x340], 8
mov eax, dword [ebp + 0x32c]
jae 0x40c77c
lea eax, [ebp + 0x32c]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00403371
lea eax, [ebp - 0x18]
call fcn.004034f6
lea eax, [ebp - 0x10]
call fcn.004034f6
push ebx
push dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push eax
call fcn.004033a5
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionProfileList_
lea esi, [ebp + 0xc0]
call fcn.00404db2
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
lea eax, [ebp + 0xc0]
push eax
lea eax, [ebp]
push eax
mov byte [ebp - 4], 6
call fcn.004054da
lea eax, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 7
call fcn.0041ef75
mov byte [ebp - 4], 8
cmp dword [ebp + 0xd8], 8
mov ecx, dword [ebp + 0xc4]
jae 0x40c7f3
lea ecx, [ebp + 0xc4]
push esi
lea edx, [ebp - 0x3c]
call fcn.00406268
mov esi, dword [ebp - 0x30]
pop ecx
cmp esi, dword [ebp - 0x2c]
jbe 0x40c80a
call fcn.00482522
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
mov esi, dword [ebp - 0x2c]
cmp dword [ebp - 0x30], esi
jbe 0x40c820
call fcn.00482522
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x5c], esi
lea edi, [ebp - 0x60]
lea esi, [ebp - 0x20]
mov dword [ebp - 0x60], eax
call fcn.00406591
test al, al
je 0x40caab
push ebx
lea esi, [ebp + 0xf8]
call fcn.00404db2
lea eax, [ebp + 0xc0]
push eax
lea esi, [ebp + 0xa4]
mov byte [ebp - 4], 9
call fcn.004047eb
lea esi, [ebp - 0x20]
mov byte [ebp - 4], 0xa
call fcn.0042d85c
cmp dword [eax + 0x18], 8
jb 0x40c875
mov eax, dword [eax + 4]
jmp 0x40c878
add eax, 4
push eax
lea eax, [ebp + 0xa4]
push eax
call fcn.004048a5
push reloc.OLEAUT32.dll_SysReAllocString
lea eax, [ebp + 0xa4]
push eax
lea eax, [ebp + 0x44]
push eax
call fcn.004054da
push ebx
lea esi, [ebp - 0x58]
mov byte [ebp - 4], 0xb
call fcn.00404db2
push str.ProfileImagePath
lea esi, [ebp + 0xdc]
mov byte [ebp - 4], 0xc
call fcn.00404db2
mov eax, esi
push eax
lea eax, [ebp + 0x44]
push eax
lea ecx, [ebp - 0x58]
lea edx, [ebp - 0x7c]
mov byte [ebp - 4], 0xd
call fcn.004056c9
mov byte [ebp - 4], 0xe
cmp dword [eax + 0x18], 8
jb 0x40c8e0
mov eax, dword [eax + 4]
jmp 0x40c8e3
add eax, 4
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004032f3
xor edi, edi
push edi
push 1
lea esi, [ebp - 0x7c]
call fcn.00404f5a
push edi
push 1
lea esi, [ebp + 0xdc]
call fcn.00404f5a
push edi
push 1
lea esi, [ebp - 0x58]
mov byte [ebp - 4], 0x12
call fcn.00404f5a
push str.SYSTEMDRIVE
lea ecx, [ebp + 0x88]
call fcn.0040b6ee
pop ecx
mov byte [ebp - 4], 0x13
mov eax, dword [ebp - 0x10]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x14]
call fcn.00403ba0
lea eax, [ebp - 0x14]
call fcn.004034f6
cmp dword [ebp + 0xa0], 8
mov eax, dword [ebp + 0x8c]
jae 0x40c958
lea eax, [ebp + 0x8c]
push eax
push str._systemdrive_
lea eax, [ebp - 0x14]
push eax
call fcn.004033a5
lea esi, [ebp - 0x14]
call fcn.004032dc
push eax
lea eax, [ebp + 0xf8]
push eax
call fcn.00404d8d
push str.CInstallerHelper::HandleUninstallLocalAppData_current_users_path_is:
lea esi, [ebp - 0x58]
call fcn.00404db2
mov eax, esi
push eax
lea ebx, [ebp + 0xf8]
mov byte [ebp - 4], 0x14
call fcn.00404975
pop ecx
xor edi, edi
xor ebx, ebx
push edi
inc ebx
push ebx
call fcn.00404f5a
cmp dword [ebp + 0x10c], edi
je 0x40ca5b
cmp dword [ebp + 0x110], 8
mov eax, dword [ebp + 0xfc]
jae 0x40c9c9
lea eax, [ebp + 0xfc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ca5b
xor eax, eax
mov dword [ebp + 0xf4], 7
mov dword [ebp + 0xf0], edi
mov word [ebp + 0xe0], ax
mov byte [ebp - 4], 0x15
cmp dword [ebp + 0x110], 8
mov eax, dword [ebp + 0xfc]
jae 0x40ca0a
lea eax, [ebp + 0xfc]
push eax
lea eax, [ebp + 0xdc]
push eax
call fcn.0041f9e6
test al, al
je 0x40ca4e
lea ecx, [ebp + 0xdc]
call fcn.0041fa0a
push str.CInstallerHelper::HandleUninstallLocalAppData_deleted:
lea esi, [ebp - 0x58]
mov byte [ebp - 0x24], al
call fcn.00404db2
push dword [ebp - 0x24]
mov eax, esi
push eax
mov byte [ebp - 4], 0x16
call fcn.00406bc9
pop ecx
pop ecx
push edi
push ebx
call fcn.00404f5a
push edi
push ebx
lea esi, [ebp + 0xdc]
call fcn.00404f5a
push edi
push ebx
lea esi, [ebp + 0x88]
call fcn.00404f5a
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004049bf
lea ecx, [ebp + 0x44]
call fcn.004049f3
push edi
push ebx
lea esi, [ebp + 0xa4]
call fcn.00404f5a
push edi
push ebx
lea esi, [ebp + 0xf8]
mov byte [ebp - 4], 8
call fcn.00404f5a
lea esi, [ebp - 0x20]
call fcn.00406566
mov ebx, 0x4aec58
jmp 0x40c813
lea esi, [ebp - 0x3c]
call fcn.00406678
push dword [ebp - 0x3c]
call fcn.004812c1
pop ecx
lea ecx, [ebp]
call fcn.004049f3
push 0
push 1
lea esi, [ebp + 0xc0]
call fcn.00404f5a
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004049bf
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004049bf
push 0
push 1
lea esi, [ebp + 0x328]
call fcn.00404f5a
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x31c]
xor ecx, ebp
call fcn.004812cc
add ebp, 0x320
leave
ret