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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4507d7
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x460adc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x1fe
mov edi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x20e]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x210], ax
call fcn.00422fb0
add esp, 0xc
lea edx, [ebp - 0x284]
push edx
push ebx
push ebx
mov dword [ebp - 0x284], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x405f5a
mov ecx, dword [ebp - 0x284]
lea eax, [ebp - 0x210]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov edx, dword [ebp - 0x284]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
mov word [ebp - 0x248], ax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x405f80
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x248]
call fcn.00403280
push 1
push 0x456324
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], ebx
call fcn.00402950
push 4
push 0x456898
lea ecx, [ebp - 0x248]
call fcn.00402950
push 4
push str..lnk
lea ecx, [ebp - 0x248]
call fcn.00402950
mov eax, dword [ebp - 0x248]
mov esi, 8
cmp dword [ebp - 0x234], esi
jae 0x405ff4
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [edi + 0x10], ebx
je 0x40605a
push esi
xor edx, edx
push 0x4568a4
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x218], 7
mov dword [ebp - 0x21c], ebx
mov word [ebp - 0x22c], dx
call fcn.00403280
mov byte [ebp - 4], 1
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax]
push 4
lea edx, [ebp - 0x22c]
push edx
call eax
mov byte [ebp - 4], bl
cmp dword [ebp - 0x218], esi
jb 0x40605a
mov ecx, dword [ebp - 0x22c]
push ecx
call fcn.004204e8
add esp, 4
lea esi, [ebp - 0x264]
call fcn.00417160
push 1
push 0x456324
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00402950
push 4
push str.tttq
mov ecx, esi
call fcn.00402950
cmp dword [ebp - 0x250], 8
mov eax, dword [ebp - 0x264]
jae 0x406096
mov eax, esi
push eax
mov ecx, edi
call fcn.00406870
push 4
xor edx, edx
mov esi, 7
push 0x456898
lea ecx, [ebp - 0x280]
mov dword [ebp - 0x26c], esi
mov dword [ebp - 0x270], ebx
mov word [ebp - 0x280], dx
call fcn.00403280
push 1
sub esp, 0x1c
mov ecx, esp
mov byte [ebp - 4], 3
mov dword [ebp - 0x284], esp
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x280]
xor eax, eax
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
push edx
mov word [ecx], ax
call fcn.00402a70
call fcn.00405670
cmp dword [edi + 0x10], ebx
je 0x40615c
push 6
xor eax, eax
push 0x4568c4
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x21c], ebx
mov word [ebp - 0x22c], ax
call fcn.00403280
mov byte [ebp - 4], 4
mov edi, dword [edi + 0x10]
mov edx, dword [edi]
mov edx, dword [edx]
push 0xa
lea eax, [ebp - 0x22c]
push eax
mov ecx, edi
call edx
mov edi, 8
cmp dword [ebp - 0x218], edi
jb 0x406161
mov eax, dword [ebp - 0x22c]
push eax
call fcn.004204e8
add esp, 4
jmp 0x406161
mov edi, 8
cmp dword [ebp - 0x26c], edi
jb 0x406178
mov ecx, dword [ebp - 0x280]
push ecx
call fcn.004204e8
add esp, 4
xor edx, edx
mov dword [ebp - 0x26c], esi
mov dword [ebp - 0x270], ebx
mov word [ebp - 0x280], dx
cmp dword [ebp - 0x250], edi
jb 0x4061a4
mov eax, dword [ebp - 0x264]
push eax
call fcn.004204e8
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x250], esi
mov dword [ebp - 0x254], ebx
mov word [ebp - 0x264], cx
cmp dword [ebp - 0x234], edi
jb 0x4061d0
mov edx, dword [ebp - 0x248]
push edx
call fcn.004204e8
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004204f3
mov esp, ebp
pop ebp
ret