Function at 0x4177c0
Capabilities:
Delete directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54da96
mov eax, dword fs:[0]
push eax
mov eax, 0x1954
call fcn.00472a80
mov eax, dword [0x13413f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1934], ecx
mov dword [ebp - 0x192c], 0
push 0x5a1f40
mov ecx, dword [ebp - 0x1934]
add ecx, 0x50
call fcn.00475840
mov dword [ebp - 0x1940], eax
push 1
push 1
mov ecx, dword [ebp - 0x1940]
call fcn.00483db0
xor eax, eax
mov word [ebp - 0x810], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x80e]
push ecx
call fcn.004f3280
add esp, 0xc
push 0
push 2
lea edx, [ebp - 0x810]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [ebp - 0x1958], eax
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x1888]
call fcn.00404c20
mov dword [ebp - 4], 0
push 0x5a1f58
lea ecx, [ebp - 0x1888]
call fcn.004064c0
push 0x5a1f5c
lea ecx, [ebp - 0x1888]
call fcn.004064c0
lea ecx, [ebp - 0x1888]
push ecx
lea ecx, [ebp - 0x1840]
call fcn.00404d00
mov byte [ebp - 4], 1
push 0x5a1f78
lea ecx, [ebp - 0x1840]
call fcn.004064c0
push 0x5a1f84
lea ecx, [ebp - 0x1840]
call fcn.004064c0
push 0x5a1fa0
lea ecx, [ebp - 0x1840]
call fcn.004064c0
lea edx, [ebp - 0x1888]
push edx
lea ecx, [ebp - 0x1828]
call fcn.00404d00
mov byte [ebp - 4], 2
push 0x5a1fac
lea ecx, [ebp - 0x1828]
call fcn.004064c0
push 0x5a1fb8
lea ecx, [ebp - 0x1828]
call fcn.004064c0
push 0x5a1fd4
lea ecx, [ebp - 0x1828]
call fcn.004064c0
lea ecx, [ebp - 0x1840]
call fcn.00401c20
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x1828]
call fcn.00401c20
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x1888]
call fcn.00401c20
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x417967
mov byte [ebp - 0x1925], 1
jmp 0x41796e
mov byte [ebp - 0x1925], 0
mov al, byte [ebp - 0x1925]
mov byte [ebp - 0x192d], al
xor ecx, ecx
mov word [ebp - 0x1010], cx
push 0x7fe
push 0
lea edx, [ebp - 0x100e]
push edx
call fcn.004f3280
add esp, 0xc
push 0
push 0x16
lea eax, [ebp - 0x1010]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [ebp - 0x195c], eax
lea ecx, [ebp - 0x1010]
push ecx
lea ecx, [ebp - 0x1870]
call fcn.00404c20
mov byte [ebp - 4], 3
push 0x5a1fe0
lea ecx, [ebp - 0x1870]
call fcn.004064c0
push 0x5a1fe4
lea ecx, [ebp - 0x1870]
call fcn.004064c0
lea edx, [ebp - 0x1870]
push edx
lea ecx, [ebp - 0x1840]
call fcn.00401c60
push 0x5a2000
lea ecx, [ebp - 0x1840]
call fcn.004064c0
push 0x5a200c
lea ecx, [ebp - 0x1840]
call fcn.004064c0
push 0x5a2028
lea ecx, [ebp - 0x1840]
call fcn.004064c0
lea eax, [ebp - 0x1870]
push eax
lea ecx, [ebp - 0x1828]
call fcn.00401c60
push 0x5a2034
lea ecx, [ebp - 0x1828]
call fcn.004064c0
push 0x5a2040
lea ecx, [ebp - 0x1828]
call fcn.004064c0
push 0x5a205c
lea ecx, [ebp - 0x1828]
call fcn.004064c0
lea ecx, [ebp - 0x1840]
call fcn.00401c20
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x1828]
call fcn.00401c20
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x1870]
call fcn.00401c20
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x417aaf
mov byte [ebp - 0x1926], 1
jmp 0x417ab6
mov byte [ebp - 0x1926], 0
mov cl, byte [ebp - 0x1926]
mov byte [ebp - 0x192e], cl
xor edx, edx
mov word [ebp - 0x1810], dx
push 0x7fe
push 0
lea eax, [ebp - 0x180e]
push eax
call fcn.004f3280
add esp, 0xc
push 0
push 0x17
lea ecx, [ebp - 0x1810]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [ebp - 0x1960], eax
lea edx, [ebp - 0x1810]
push edx
lea ecx, [ebp - 0x1858]
call fcn.00404c20
mov byte [ebp - 4], 4
push 0x5a2068
lea ecx, [ebp - 0x1858]
call fcn.004064c0
push 0x5a206c
lea ecx, [ebp - 0x1858]
call fcn.004064c0
lea eax, [ebp - 0x1858]
push eax
lea ecx, [ebp - 0x1840]
call fcn.00401c60
push 0x5a2088
lea ecx, [ebp - 0x1840]
call fcn.004064c0
push 0x5a2094
lea ecx, [ebp - 0x1840]
call fcn.004064c0
push 0x5a20b0
lea ecx, [ebp - 0x1840]
call fcn.004064c0
lea ecx, [ebp - 0x1858]
push ecx
lea ecx, [ebp - 0x1828]
call fcn.00401c60
push 0x5a20bc
lea ecx, [ebp - 0x1828]
call fcn.004064c0
push 0x5a20c8
lea ecx, [ebp - 0x1828]
call fcn.004064c0
push 0x5a20e4
lea ecx, [ebp - 0x1828]
call fcn.004064c0
lea ecx, [ebp - 0x1840]
call fcn.00401c20
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x1828]
call fcn.00401c20
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x1858]
call fcn.00401c20
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x417bf7
mov byte [ebp - 0x1927], 1
jmp 0x417bfe
mov byte [ebp - 0x1927], 0
mov dl, byte [ebp - 0x1927]
mov byte [ebp - 0x192f], dl
push 0x5a20f0
lea ecx, [ebp - 0x18a0]
call fcn.00404c20
mov byte [ebp - 4], 5
lea eax, [ebp - 0x18a0]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00406e50
add esp, 8
mov byte [ebp - 0x1930], al
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18a0]
call fcn.00401cd0
push 0x5a2168
mov ecx, dword [ebp - 0x1934]
add ecx, 0x50
call fcn.00475840
mov dword [ebp - 0x1938], eax
push 0x18
call fcn.00472283
add esp, 4
mov dword [ebp - 0x194c], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1924]
push ecx
mov edx, dword [ebp - 0x1938]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x1938]
mov edx, dword [eax + 0x38]
call edx
mov dword [ebp - 0x1944], eax
mov eax, dword [ebp - 0x1944]
mov dword [ebp - 0x1948], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x192c]
or ecx, 1
mov dword [ebp - 0x192c], ecx
mov ecx, dword [ebp - 0x1948]
call fcn.00403be0
push eax
mov ecx, dword [ebp - 0x194c]
call fcn.00404c20
mov dword [ebp - 0x193c], eax
jmp 0x417cdc
mov edx, dword [ebp - 0x193c]
mov dword [ebp - 0x1950], edx
mov dword [ebp - 4], 8
mov eax, dword [ebp - 0x1950]
mov dword [ebp - 0x1954], eax
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x192c]
and ecx, 1
je 0x417d1f
and dword [ebp - 0x192c], 0xfffffffe
lea ecx, [ebp - 0x1924]
call fcn.00484630
mov edx, dword [ebp - 0x1954]
push edx
push 0x4188d0
mov ecx, dword [ebp - 0x1934]
add ecx, 0x4f8
call fcn.004075e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1858]
call fcn.00401cd0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1870]
call fcn.00401cd0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1828]
call fcn.00401cd0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1840]
call fcn.00401cd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1888]
call fcn.00401cd0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00472272
mov esp, ebp
pop ebp
ret