Function at 0x42a925
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, 0x506698
call fcn.004d9fb6
xor eax, eax
push 0x208
mov word [ebp], ax
xor edi, edi
lea eax, [ebp + 2]
push edi
push eax
call fcn.004d92e0
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.004d92e0
add esp, 0xc
push 0x5300b8
lea eax, [ebp - 0x24]
push eax
call fcn.00404371
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 0x42a9db
sub eax, ecx
sar eax, 1
lea ecx, [ebp + 0x20c]
mov ebx, eax
push ecx
lea eax, [ebp - 0x14]
call fcn.004042c2
push 0x5c
lea esi, [ebp - 0x14]
call fcn.0041cce3
mov ecx, eax
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.0041cd01
lea edi, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.00403291
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040442d
mov eax, dword [ebp - 0x14]
mov edi, dword [eax - 0xc]
push 0x5c
call fcn.0041cce3
mov ecx, edi
sub ecx, eax
lea eax, [ebp - 0x1c]
push eax
dec ecx
mov eax, esi
call fcn.00423f4d
mov edi, esi
mov byte [ebp - 4], 4
call fcn.00403291
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040442d
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov ebx, dword [ebp - 0x14]
test eax, eax
js 0x42aae7
lea eax, [ebp - 0x28]
push eax
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x42aae7
lea eax, [ebp]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x42aaa3
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 0x5300bc
lea eax, [ebp - 0x18]
call fcn.004241b3
pop ecx
pop ecx
push 0x5300c4
lea eax, [ebp - 0x18]
push eax
call fcn.0041ccc5
push dword [ebx - 0xc]
lea eax, [ebp - 0x18]
push ebx
call fcn.0041d4dd
push 0x5300c8
lea eax, [ebp - 0x18]
push eax
call fcn.0041ccc5
mov esi, dword [ebp - 0x18]
cmp dword [esi - 0xc], 0
je 0x42ab6f
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 0x42ab6f
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 0xd], 0
lea eax, [ebx - 0x10]
call fcn.0040442d
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.0040442d
lea eax, [esi - 0x10]
call fcn.0040442d
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.004d5ddb
add ebp, 0x418
leave
ret
call dword [sym.imp.ole32.dll_CoUninitialize]
mov byte [ebp - 0xd], 1
jmp 0x42ab2e