Function at 0x40c570
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4683e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x52c
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov dword [esp + 0x14], ebp
call fcn.004318b0
test eax, eax
je 0x40c62c
push 0
lea eax, [esp + 0x23c]
push str.CUninstall_::_GetInstalledFilesToDelete_n
push eax
call fcn.0044cb10
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 + 0x38]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x38]
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 + 0x238]
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.00431840
mov ecx, eax
call fcn.004318e0
lea eax, [esp + 0x38]
push eax
call fcn.00431840
mov ecx, eax
call fcn.00431c70
mov ecx, dword [esp + 0x54c]
lea esi, [ebp + 0xe4]
push esi
push ecx
lea ecx, [ebp + 0x74]
call fcn.004434a0
mov edx, dword [0x4855a4]
mov dword [esp + 0x10], edx
lea eax, [esp + 0x438]
push 0x104
push eax
mov dword [esp + 0x54c], 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp dword [esi], 0
jne 0x40c674
xor eax, eax
jmp 0x40c677
lea eax, [esi + 4]
test eax, eax
mov ebx, eax
je 0x40c9ba
add ebp, 0x14ac
test ebx, ebx
je 0x40c6c6
mov ecx, dword [esp + 0x14]
lea edx, [ecx + 0xe4]
sub ebx, edx
sub ebx, 3
mov eax, ebx
je 0x40c6c6
cmp eax, 0x1f4
ja 0x40c6c6
mov ecx, dword [edx]
cmp eax, ecx
jae 0x40c6b1
lea ebx, [eax + edx + 4]
jmp 0x40c6b3
xor ebx, ebx
dec eax
cmp eax, ecx
jae 0x40c6c8
cmp eax, 0xffffffff
je 0x40c6c8
mov esi, dword [edx + eax*4 + 0x1f8]
jmp 0x40c6d8
xor ebx, ebx
mov edx, dword [esp + 0x14]
lea esi, [edx + 0xe4]
add esi, 0x9c8
mov eax, dword [esi + 0x18]
mov ecx, ebp
push eax
call fcn.0045c6d6
call fcn.004318b0
test eax, eax
je 0x40c719
mov eax, dword [esi + 0x18]
push eax
lea eax, [esp + 0x23c]
push str.FileToDelete___s_n
push eax
call fcn.0044cb10
add esp, 0xc
lea ecx, [esp + 0x238]
push ecx
call fcn.00431840
mov ecx, eax
call fcn.00431c70
mov eax, dword [esi + 0x28]
mov edi, 2
cmp eax, edi
jne 0x40c788
mov eax, dword [esi + 0x18]
lea ecx, [esp + 0x10]
push eax
call fcn.0045cf15
push str..PNF
push 0x47d174
lea ecx, [esp + 0x18]
call fcn.0045ba50
lea edx, [esp + 0x10]
mov ecx, ebp
push edx
call fcn.0045c719
call fcn.004318b0
test eax, eax
je 0x40c788
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x138]
push eax
push str.FileToDelete___s_n
push ecx
call fcn.0044cb10
add esp, 0xc
lea edx, [esp + 0x138]
push edx
call fcn.00431840
mov ecx, eax
call fcn.00431c70
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0xc4]
test ecx, ecx
je 0x40c8aa
cmp dword [esi + 0x28], edi
jne 0x40c8aa
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.0045cf15
push str..CAT
push 0x47d174
lea ecx, [esp + 0x18]
call fcn.0045ba50
push str.System32CatRootF750E6C3_38EE_11D1_85E5_00C04FC295EE_
lea ecx, [esp + 0x38]
call fcn.0045ce46
mov edi, eax
lea ecx, [esp + 0x438]
mov byte [esp + 0x544], 1
push ecx
lea ecx, [esp + 0x28]
call fcn.0045ce46
push edi
lea edx, [esp + 0x30]
push eax
push edx
mov byte [esp + 0x550], 2
call fcn.0045cfbb
lea ecx, [esp + 0x10]
lea edx, [esp + 0x28]
push ecx
push eax
push edx
mov byte [esp + 0x550], 3
call fcn.0045cfbb
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x548], 4
call fcn.0045cec5
lea ecx, [esp + 0x28]
mov byte [esp + 0x544], 3
call fcn.0045cdd8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x544], 2
call fcn.0045cdd8
lea ecx, [esp + 0x24]
mov byte [esp + 0x544], 1
call fcn.0045cdd8
lea ecx, [esp + 0x34]
mov byte [esp + 0x544], 0
call fcn.0045cdd8
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
call fcn.0045c719
call fcn.004318b0
test eax, eax
je 0x40c8aa
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x38]
push ecx
push str.FileToDelete___s_n
push edx
call fcn.0044cb10
add esp, 0xc
lea eax, [esp + 0x38]
push eax
call fcn.00431840
mov ecx, eax
call fcn.00431c70
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0xc4]
test eax, eax
jne 0x40c9b2
cmp dword [esi + 0x28], 2
jne 0x40c9b2
mov esi, dword [esi]
push str.INFOTHER_
lea ecx, [esp + 0x24]
call fcn.0045ce46
mov edi, eax
lea edx, [esp + 0x438]
lea ecx, [esp + 0x1c]
push edx
mov byte [esp + 0x548], 5
call fcn.0045ce46
push edi
push eax
lea eax, [esp + 0x20]
mov byte [esp + 0x54c], 6
push eax
call fcn.0045cfbb
push esi
lea ecx, [esp + 0x34]
push eax
push ecx
mov byte [esp + 0x550], 7
call fcn.0045d021
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x548], 8
call fcn.0045cec5
lea ecx, [esp + 0x30]
mov byte [esp + 0x544], 7
call fcn.0045cdd8
lea ecx, [esp + 0x18]
mov byte [esp + 0x544], 6
call fcn.0045cdd8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x544], 5
call fcn.0045cdd8
lea ecx, [esp + 0x20]
mov byte [esp + 0x544], 0
call fcn.0045cdd8
lea edx, [esp + 0x10]
mov ecx, ebp
push edx
call fcn.0045c719
call fcn.004318b0
test eax, eax
je 0x40c9b2
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x338]
push eax
push str.FileToDelete___s_n
push ecx
call fcn.0044cb10
add esp, 0xc
lea edx, [esp + 0x338]
push edx
call fcn.00431840
mov ecx, eax
call fcn.00431c70
test ebx, ebx
jne 0x40c68b
call fcn.004318b0
test eax, eax
je 0x40ca5a
push 0
lea eax, [esp + 0x33c]
push str.CUninstall_::_GetInstalledFilesToDelete_n
push eax
call fcn.0044cb10
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 + 0x138]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x138]
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 + 0x338]
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 + 0x138]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00431840
mov ecx, eax
call fcn.00431c70
call fcn.00431840
mov ecx, eax
call fcn.004318f0
lea ecx, [esp + 0x10]
mov dword [esp + 0x544], 0xffffffff
call fcn.0045cdd8
mov ecx, dword [esp + 0x53c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x538
ret 4