Function at 0x40cf30
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x574de1
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x5e10a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x260]
mov dword [ebp - 0x260], 0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40cf9a
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 0x260]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
mov dword [ebp - 0x244], 7
mov dword [ebp - 0x248], 0
mov word [ebp - 0x258], ax
cmp word [ebp - 0x240], ax
jne 0x40cfc4
xor ecx, ecx
jmp 0x40cfdf
lea ecx, [ebp - 0x240]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cfd0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x258]
call fcn.004089f0
push 0x5798b0
lea eax, [ebp - 0x258]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040dcf0
add esp, 0xc
mov esi, eax
lea eax, [ebp - 0x258]
cmp eax, esi
je 0x40d064
mov eax, dword [ebp - 0x244]
cmp eax, 8
jb 0x40d03b
inc eax
lea ecx, [ebp - 0x258]
push eax
push dword [ebp - 0x258]
call fcn.00409050
xor eax, eax
mov dword [ebp - 0x244], 7
push esi
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x248], 0
mov word [ebp - 0x258], ax
call fcn.0040b910
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x40d07d
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409050
cmp dword [ebp - 0x244], 8
lea eax, [ebp - 0x258]
cmovae eax, dword [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x38]
xorps xmm0, xmm0
push eax
push 0x57ae5c
lea ecx, [ebp - 0x259]
movq qword [ebp - 0x18], xmm0
movups xmmword [ebp - 0x38], xmm0
movups xmmword [ebp - 0x28], xmm0
call fcn.0040f830
lea eax, [ebp - 0x38]
push eax
call fcn.00443ae4
lea eax, [ebp - 0x38]
push str.nUninstallNum
push eax
call fcn.00413e10
add esp, 0xc
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x259]
push eax
push 0x57ae5c
call fcn.0040e9c0
mov eax, dword fs:[0x2c]
mov ecx, dword [0x5ec824]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x5ec6c4]
cmp eax, dword [ecx + 4]
jle 0x40d133
push 0x5ec6c4
call fcn.00426eff
add esp, 4
cmp dword [0x5ec6c4], 0xffffffff
jne 0x40d133
push 0x5789d0
call fcn.004273ae
push 0x5ec6c4
call fcn.00426ec0
add esp, 8
lea eax, [ebp - 0x38]
xorps xmm0, xmm0
push eax
push 0x57ae5c
mov ecx, 0x5ec6c0
movq qword [ebp - 0x18], xmm0
movups xmmword [ebp - 0x38], xmm0
movups xmmword [ebp - 0x28], xmm0
call fcn.0040f830
lea eax, [ebp - 0x38]
push eax
call fcn.00443ae4
lea eax, [ebp - 0x38]
push str.nUninstallNum
push eax
call fcn.00413e10
add esp, 0xc
lea eax, [ebp - 0x38]
mov ecx, 0x5ec6c0
push eax
push 0x57ae5c
call fcn.0040e9c0
mov eax, dword [ebp - 0x244]
cmp eax, 8
jb 0x40d1a1
inc eax
lea ecx, [ebp - 0x258]
push eax
push dword [ebp - 0x258]
call fcn.00409050
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004273c3
mov esp, ebp
pop ebp
ret