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

Disassembly:
push 0x450
mov eax, 0x4a033a
call fcn.00481105
mov eax, dword [0x4d001c]
mov edi, 0x4d001c
mov ecx, edi
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x42c], esi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 4], ebx
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.004805d0
add esp, 0xc
push 0x4bae00
lea eax, [ebp - 0x434]
push eax
call fcn.004025df
mov byte [ebp - 4], 1
mov eax, dword [0x4d001c]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x428], eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push ebx
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x421934
sub eax, ecx
sar eax, 1
lea ecx, [ebp - 0x218]
mov ebx, eax
push ecx
lea eax, [ebp - 0x428]
call fcn.00402530
mov ebx, dword [ebp - 0x428]
push 0x5c
push ebx
call fcn.0047b140
pop ecx
pop ecx
test eax, eax
jne 0x421970
or eax, 0xffffffff
jmp 0x421974
sub eax, ebx
sar eax, 1
mov ecx, eax
lea edx, [ebp - 0x430]
lea eax, [ebp - 0x428]
call fcn.004040e6
lea edi, [ebp - 0x434]
mov byte [ebp - 4], 3
call fcn.00401dea
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x430]
add eax, 0xfffffff0
call fcn.00402a23
mov edi, dword [ebx - 0xc]
push 0x5c
push ebx
call fcn.0047b140
pop ecx
pop ecx
test eax, eax
jne 0x4219be
or eax, 0xffffffff
jmp 0x4219c2
sub eax, ebx
sar eax, 1
mov ecx, edi
sub ecx, eax
lea eax, [ebp - 0x430]
push eax
dec ecx
lea eax, [ebp - 0x428]
call fcn.0040d0f9
lea edi, [ebp - 0x428]
mov byte [ebp - 4], 4
call fcn.00401dea
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x430]
add eax, 0xfffffff0
call fcn.00402a23
lea eax, [ebp - 0x43c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov ebx, dword [ebp - 0x428]
test eax, eax
js 0x421ab5
lea eax, [ebp - 0x438]
push eax
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x421ab5
lea eax, [ebp - 0x424]
push eax
push dword [ebp - 0x438]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x421a57
mov eax, dword [ebp - 0x43c]
push dword [ebp - 0x438]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x43c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x424]
push eax
push 0x4bb0b8
lea eax, [ebp - 0x42c]
call fcn.00404705
pop ecx
pop ecx
push 1
push 0x4bae2c
lea eax, [ebp - 0x42c]
call fcn.0040206a
push dword [ebx - 0xc]
lea eax, [ebp - 0x42c]
push ebx
call fcn.0040206a
push 4
push 0x4bf1a4
lea eax, [ebp - 0x42c]
call fcn.0040206a
mov esi, dword [ebp - 0x42c]
cmp dword [esi - 0xc], 0
je 0x421b30
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x45c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x14
pop eax
mov word [ebp - 0x44c], ax
lea eax, [ebp - 0x45c]
xor edi, edi
push eax
mov dword [ebp - 0x45c], edi
mov dword [ebp - 0x458], 3
mov dword [ebp - 0x454], esi
mov dword [ebp - 0x450], edi
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je 0x421b30
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebx - 0x10]
call fcn.00402a23
mov eax, dword [ebp - 0x434]
add eax, 0xfffffff0
call fcn.00402a23
lea eax, [esi - 0x10]
call fcn.00402a23
mov eax, edi
call fcn.00481188
ret
call dword [sym.imp.ole32.dll_CoUninitialize]
xor edi, edi
inc edi
jmp 0x421b0a