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

Disassembly:
push ebp
sub esp, 0x414
lea ebp, [esp - 4]
mov eax, dword [0x487ba4]
xor eax, ebp
mov dword [ebp + 0x414], eax
push 0x38
mov eax, 0x46cfef
call fcn.00451557
mov eax, dword [0x48a144]
mov esi, 0x48a144
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.00451670
add esp, 0xc
push 0x479d3c
lea eax, [ebp - 0x1c]
push eax
call fcn.0040266c
mov byte [ebp - 4], 1
mov eax, dword [0x48a144]
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.0040264e
push 0x5c
lea esi, [ebp - 0x10]
call fcn.00403d93
mov ecx, eax
lea edx, [ebp - 0x18]
mov eax, esi
call fcn.00403df8
lea edi, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.00401bf4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004026ee
mov eax, dword [ebp - 0x10]
mov edi, dword [eax - 0xc]
push 0x5c
call fcn.00403d93
mov ecx, edi
sub ecx, eax
lea eax, [ebp - 0x18]
push eax
dec ecx
mov eax, esi
call fcn.0040d52b
mov edi, esi
mov byte [ebp - 4], 4
call fcn.00401bf4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004026ee
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov esi, dword [ebp - 0x10]
test eax, eax
jl 0x41daa3
lea eax, [ebp - 0x20]
push eax
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x41daa3
lea eax, [ebp]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x41da5c
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 0x479fa4
lea eax, [ebp - 0x14]
call fcn.004044cd
pop ecx
pop ecx
push 0x479d68
lea eax, [ebp - 0x14]
push eax
call fcn.00404847
push dword [esi - 0xc]
lea eax, [ebp - 0x14]
push esi
call fcn.004020e3
push 0x47bbcc
lea eax, [ebp - 0x14]
push eax
call fcn.00404847
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
je 0x41db23
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 0x41db23
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi - 0x10]
call fcn.004026ee
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004026ee
lea eax, [ebx - 0x10]
call fcn.004026ee
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.0044c18b
add ebp, 0x418
leave
ret
call dword [sym.imp.ole32.dll_CoUninitialize]
xor edi, edi
inc edi
jmp 0x41dae3