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

Disassembly:
push ebp
sub esp, 0x414
lea ebp, [esp - 4]
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp + 0x414], eax
push 0x3c
mov eax, 0x5066cf
call fcn.004d9fe8
xor eax, eax
push 0x208
mov word [ebp], ax
xor edi, edi
lea eax, [ebp + 2]
push edi
push eax
call fcn.004d9310
mov eax, dword [0x54b064]
mov esi, 0x54b064
add esp, 0xc
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
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.004d9310
add esp, 0xc
push 0x530088
lea eax, [ebp - 0x24]
push eax
call fcn.004042b1
mov byte [ebp - 4], 1
mov eax, dword [0x54b064]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], 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]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x42aa25
sub eax, ecx
sar eax, 1
lea ecx, [ebp + 0x20c]
mov ebx, eax
push ecx
lea eax, [ebp - 0x14]
call fcn.00404202
push 0x5c
lea esi, [ebp - 0x14]
call fcn.0041cce8
mov ecx, eax
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.0041cd06
lea edi, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.00403197
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040436d
mov eax, dword [ebp - 0x14]
mov edi, dword [eax - 0xc]
push 0x5c
call fcn.0041cce8
mov ecx, edi
sub ecx, eax
lea eax, [ebp - 0x1c]
push eax
dec ecx
mov eax, esi
call fcn.00423f21
mov edi, esi
mov byte [ebp - 4], 4
call fcn.00403197
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040436d
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov ebx, dword [ebp - 0x14]
test eax, eax
js 0x42ab31
lea eax, [ebp - 0x28]
push eax
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x42ab31
lea eax, [ebp]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x42aaed
mov eax, dword [ebp - 0x20]
push dword [ebp - 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp]
push eax
push 0x53008c
lea eax, [ebp - 0x18]
call fcn.00424187
pop ecx
pop ecx
push 0x530094
lea eax, [ebp - 0x18]
push eax
call fcn.0041ccca
push dword [ebx - 0xc]
lea eax, [ebp - 0x18]
push ebx
call fcn.0041d4e2
push 0x530098
lea eax, [ebp - 0x18]
push eax
call fcn.0041ccca
mov esi, dword [ebp - 0x18]
cmp dword [esi - 0xc], 0
je 0x42abb9
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
and dword [ebp - 0x48], 0
and dword [ebp - 0x3c], 0
push 0x14
pop eax
mov word [ebp - 0x38], ax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x44], 3
mov dword [ebp - 0x40], esi
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je 0x42abb9
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 0xd], 0
lea eax, [ebx - 0x10]
call fcn.0040436d
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.0040436d
lea eax, [esi - 0x10]
call fcn.0040436d
mov al, byte [ebp - 0xd]
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.004d5e0b
add ebp, 0x418
leave
ret
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [ebp - 0xd], 1
jmp 0x42ab78