Function at 0x40f670
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4820db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x750
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov dword [esp + 0x14], ebp
call fcn.00441cf0
test eax, eax
je 0x40f72c
push 0
lea eax, [esp + 0x364]
push str.CUninstall_::_GetInstalledFilesToDelete_n
push eax
call fcn.00465850
mov edi, str.ENTRY:
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x5c]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x5c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x360]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00441c80
mov ecx, eax
call fcn.00441d20
lea eax, [esp + 0x5c]
push eax
call fcn.00441c80
mov ecx, eax
call fcn.00442090
mov ecx, dword [esp + 0x770]
lea esi, [ebp + 0xe4]
push esi
push ecx
lea ecx, [ebp + 0x74]
call fcn.00459570
mov edx, dword [0x4a6844]
mov dword [esp + 0x10], edx
lea eax, [esp + 0x25c]
push 0x104
push eax
mov dword [esp + 0x770], 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp dword [esi], 0
jne 0x40f774
xor eax, eax
jmp 0x40f777
lea eax, [esi + 4]
test eax, eax
je 0x40fc9f
lea edi, [ebp + 0x14ac]
jmp 0x40f78b
mov eax, dword [esp + 0x18]
xor esi, esi
cmp eax, esi
je 0x40f7c6
lea ecx, [ebp + 0xe4]
sub eax, ecx
sub eax, 3
je 0x40f7c6
cmp eax, 0x1f4
ja 0x40f7c6
mov edx, dword [ecx]
cmp eax, edx
jae 0x40f7af
lea esi, [eax + ecx + 4]
dec eax
mov dword [esp + 0x18], esi
cmp eax, edx
jae 0x40f7ca
cmp eax, 0xffffffff
je 0x40f7ca
mov esi, dword [ecx + eax*4 + 0x1f8]
jmp 0x40f7d0
mov dword [esp + 0x18], esi
lea esi, [ebp + 0xaac]
mov eax, dword [esi + 0x18]
mov ecx, edi
push eax
call fcn.004757a6
call fcn.00441cf0
test eax, eax
je 0x40f811
mov eax, dword [esi + 0x18]
lea ecx, [esp + 0x360]
push eax
push str.FileToDelete___s_n
push ecx
call fcn.00465850
add esp, 0xc
lea edx, [esp + 0x360]
push edx
call fcn.00441c80
mov ecx, eax
call fcn.00442090
mov eax, dword [esi + 0x28]
mov ebx, 2
cmp eax, ebx
jne 0x40f880
mov eax, dword [esi + 0x18]
lea ecx, [esp + 0x10]
push eax
call fcn.00475fe5
push str..PNF
push 0x49b1b0
lea ecx, [esp + 0x18]
call fcn.00474b20
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.004757e9
call fcn.00441cf0
test eax, eax
je 0x40f880
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x15c]
push ecx
push str.FileToDelete___s_n
push edx
call fcn.00465850
add esp, 0xc
lea eax, [esp + 0x15c]
push eax
call fcn.00441c80
mov ecx, eax
call fcn.00442090
mov eax, dword [ebp + 0xc4]
test eax, eax
je 0x40f9b0
cmp dword [esi + 0x28], ebx
jne 0x40f9a2
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.00475fe5
push 0x49cd2c
push 0x49b1b0
lea ecx, [esp + 0x18]
call fcn.00474b20
push str.System32CatRootF750E6C3_38EE_11D1_85E5_00C04FC295EE_
lea ecx, [esp + 0x48]
call fcn.00475f16
mov ebp, eax
lea ecx, [esp + 0x25c]
mov byte [esp + 0x768], 1
push ecx
lea ecx, [esp + 0x2c]
call fcn.00475f16
push ebp
lea edx, [esp + 0x50]
push eax
push edx
mov byte [esp + 0x774], 2
call fcn.0047608b
lea ecx, [esp + 0x10]
lea edx, [esp + 0x58]
push ecx
push eax
push edx
mov byte [esp + 0x774], 3
call fcn.0047608b
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x76c], 4
call fcn.00475f95
lea ecx, [esp + 0x58]
mov byte [esp + 0x768], 3
call fcn.00475ea8
lea ecx, [esp + 0x4c]
mov byte [esp + 0x768], 2
call fcn.00475ea8
lea ecx, [esp + 0x28]
mov byte [esp + 0x768], 1
call fcn.00475ea8
lea ecx, [esp + 0x44]
mov byte [esp + 0x768], 0
call fcn.00475ea8
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.004757e9
call fcn.00441cf0
test eax, eax
je 0x40f99e
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x5c]
push ecx
push str.FileToDelete___s_n
push edx
call fcn.00465850
add esp, 0xc
lea eax, [esp + 0x5c]
push eax
call fcn.00441c80
mov ecx, eax
call fcn.00442090
mov ebp, dword [esp + 0x14]
mov eax, dword [ebp + 0xc4]
test eax, eax
jne 0x40fc93
cmp dword [esi + 0x28], ebx
jne 0x40faa9
mov ebp, dword [esi]
push str.INFOTHER_
lea ecx, [esp + 0x54]
call fcn.00475f16
mov ebx, eax
lea ecx, [esp + 0x25c]
mov byte [esp + 0x768], 5
push ecx
lea ecx, [esp + 0x3c]
call fcn.00475f16
push ebx
lea edx, [esp + 0x4c]
push eax
push edx
mov byte [esp + 0x774], 6
call fcn.0047608b
push ebp
push eax
lea eax, [esp + 0x38]
mov byte [esp + 0x770], 7
push eax
call fcn.004760f1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x76c], 8
call fcn.00475f95
lea ecx, [esp + 0x30]
mov byte [esp + 0x768], 7
call fcn.00475ea8
lea ecx, [esp + 0x48]
mov byte [esp + 0x768], 6
call fcn.00475ea8
lea ecx, [esp + 0x38]
mov byte [esp + 0x768], 5
call fcn.00475ea8
lea ecx, [esp + 0x50]
mov byte [esp + 0x768], 0
call fcn.00475ea8
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
call fcn.004757e9
call fcn.00441cf0
test eax, eax
je 0x40faa5
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x560]
push edx
push str.FileToDelete___s_n
push eax
call fcn.00465850
add esp, 0xc
lea ecx, [esp + 0x560]
push ecx
call fcn.00441c80
mov ecx, eax
call fcn.00442090
mov ebp, dword [esp + 0x14]
mov eax, dword [ebp + 0xc4]
test eax, eax
jne 0x40fc93
mov ebp, dword [esi]
push str.OPTIONSCABS_
lea ecx, [esp + 0x24]
call fcn.00475f16
mov ebx, eax
lea edx, [esp + 0x25c]
lea ecx, [esp + 0x54]
push edx
mov byte [esp + 0x76c], 9
call fcn.00475f16
push ebx
push eax
lea eax, [esp + 0x24]
mov byte [esp + 0x770], 0xa
push eax
call fcn.0047608b
push ebp
lea ecx, [esp + 0x44]
push eax
push ecx
mov byte [esp + 0x774], 0xb
call fcn.004760f1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x76c], 0xc
call fcn.00475f95
lea ecx, [esp + 0x40]
mov byte [esp + 0x768], 0xb
call fcn.00475ea8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x768], 0xa
call fcn.00475ea8
lea ecx, [esp + 0x54]
mov byte [esp + 0x768], 9
call fcn.00475ea8
lea ecx, [esp + 0x20]
mov byte [esp + 0x768], 0
call fcn.00475ea8
lea edx, [esp + 0x10]
mov ecx, edi
push edx
call fcn.004757e9
call fcn.00441cf0
test eax, eax
je 0x40fba3
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x660]
push eax
push str.FileToDelete___s_n
push ecx
call fcn.00465850
add esp, 0xc
lea edx, [esp + 0x660]
push edx
call fcn.00441c80
mov ecx, eax
call fcn.00442090
mov esi, dword [esi]
push str.OPTIONSINSTALL_
lea ecx, [esp + 0x40]
call fcn.00475f16
mov ebp, eax
lea eax, [esp + 0x25c]
lea ecx, [esp + 0x34]
push eax
mov byte [esp + 0x76c], 0xd
call fcn.00475f16
push ebp
lea ecx, [esp + 0x30]
push eax
push ecx
mov byte [esp + 0x774], 0xe
call fcn.0047608b
push esi
lea edx, [esp + 0x28]
push eax
push edx
mov byte [esp + 0x774], 0xf
call fcn.004760f1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x76c], 0x10
call fcn.00475f95
lea ecx, [esp + 0x24]
mov byte [esp + 0x768], 0xf
call fcn.00475ea8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x768], 0xe
call fcn.00475ea8
lea ecx, [esp + 0x34]
mov byte [esp + 0x768], 0xd
call fcn.00475ea8
lea ecx, [esp + 0x3c]
mov byte [esp + 0x768], 0
call fcn.00475ea8
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.004757e9
call fcn.00441cf0
test eax, eax
je 0x40fc8f
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x460]
push ecx
push str.FileToDelete___s_n
push edx
call fcn.00465850
add esp, 0xc
lea eax, [esp + 0x460]
push eax
call fcn.00441c80
mov ecx, eax
call fcn.00442090
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x40f787
call fcn.00441cf0
test eax, eax
je 0x40fd3f
push 0
lea ecx, [esp + 0x464]
push str.CUninstall_::_GetInstalledFilesToDelete_n
push ecx
call fcn.00465850
mov edi, str.EXIT:
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x15c]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x15c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x460]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x15c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00441c80
mov ecx, eax
call fcn.00442090
call fcn.00441c80
mov ecx, eax
call fcn.00441d30
lea ecx, [esp + 0x10]
mov dword [esp + 0x768], 0xffffffff
call fcn.00475ea8
mov ecx, dword [esp + 0x760]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x75c
ret 4