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

Disassembly:
push ebp
sub esp, 0x414
lea ebp, [esp - 4]
mov eax, dword [0x489c20]
xor eax, ebp
mov dword [ebp + 0x414], eax
push 0x38
mov eax, 0x46e8e7
call fcn.00450afd
mov eax, dword [0x48c260]
mov esi, 0x48c260
mov ecx, esi
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x14], ebx
xor edi, edi
xor eax, eax
mov dword [ebp - 4], edi
push 0x206
mov word [ebp + 0x20c], ax
lea eax, [ebp + 0x20e]
push edi
push eax
call fcn.00450bc0
add esp, 0xc
push 0x47cfd0
lea eax, [ebp - 0x1c]
push eax
call fcn.004019b7
mov byte [ebp - 4], 1
mov eax, dword [0x48c260]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x104
lea eax, [ebp + 0x20c]
push eax
push edi
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x20c]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00401a3d
push 0x5c
lea esi, [ebp - 0x10]
call fcn.004069c4
mov ecx, eax
lea edx, [ebp - 0x18]
mov eax, esi
call fcn.004069e2
lea edi, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.004019fc
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00401464
mov eax, dword [ebp - 0x10]
mov edi, dword [eax - 0xc]
push 0x5c
call fcn.004069c4
mov ecx, edi
sub ecx, eax
lea eax, [ebp - 0x18]
push eax
dec ecx
mov eax, esi
call fcn.00408b4b
mov edi, esi
mov byte [ebp - 4], 4
call fcn.004019fc
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00401464
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov esi, dword [ebp - 0x10]
test eax, eax
jl 0x407d69
lea eax, [ebp - 0x20]
push eax
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x407d69
lea eax, [ebp]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x407d22
mov eax, dword [ebp - 0x24]
push dword [ebp - 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp]
push eax
push 0x47c858
lea eax, [ebp - 0x14]
call fcn.00401419
pop ecx
pop ecx
push 0x47cf18
lea eax, [ebp - 0x14]
push eax
call fcn.00408b2d
push dword [esi - 0xc]
lea eax, [ebp - 0x14]
push esi
call fcn.00408cfe
push str..lnk
lea eax, [ebp - 0x14]
push eax
call fcn.00408b2d
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
je 0x407de9
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x44]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x14
pop eax
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x44]
xor edi, edi
push eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], 3
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], edi
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je 0x407de9
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi - 0x10]
call fcn.00401464
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00401464
lea eax, [ebx - 0x10]
call fcn.00401464
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x414]
xor ecx, ebp
call fcn.0044eff8
add ebp, 0x418
leave
ret
call dword [sym.imp.ole32.dll_CoUninitialize]
xor edi, edi
inc edi
jmp 0x407da9