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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54dc36
mov eax, dword fs:[0]
push eax
mov eax, 0x195c
call fcn.00472b30
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 - 0x1930], ecx
mov dword [ebp - 0x192c], 0
push 0x5a1ec8
mov ecx, dword [ebp - 0x1930]
add ecx, 0x4c
call fcn.004758f0
mov dword [ebp - 0x1948], eax
push 1
push 1
mov ecx, dword [ebp - 0x1948]
call fcn.00483cc0
push 0x5a1ee0
mov ecx, dword [ebp - 0x1930]
add ecx, 0x4c
call fcn.004758f0
mov dword [ebp - 0x1938], eax
push 1
mov eax, dword [ebp - 0x1938]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x1938]
mov eax, dword [edx + 0xe0]
call eax
push 0x5a1efc
mov ecx, dword [ebp - 0x1930]
add ecx, 0x4c
call fcn.004758f0
mov dword [ebp - 0x193c], eax
push 0
mov ecx, dword [ebp - 0x193c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x193c]
mov eax, dword [edx + 0xe0]
call eax
xor ecx, ecx
mov word [ebp - 0x810], cx
push 0x7fe
push 0
lea edx, [ebp - 0x80e]
push edx
call fcn.004f3400
add esp, 0xc
push 0
push 2
lea eax, [ebp - 0x810]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [ebp - 0x1960], eax
lea ecx, [ebp - 0x810]
push ecx
lea ecx, [ebp - 0x1888]
call fcn.00404c20
mov dword [ebp - 4], 0
push 0x5a1f10
lea ecx, [ebp - 0x1888]
call fcn.004064c0
push 0x5a1f14
lea ecx, [ebp - 0x1888]
call fcn.004064c0
lea edx, [ebp - 0x1888]
push edx
lea ecx, [ebp - 0x1840]
call fcn.00404d00
mov byte [ebp - 4], 1
push 0x5a1f30
lea ecx, [ebp - 0x1840]
call fcn.004064c0
push 0x5a1f3c
lea ecx, [ebp - 0x1840]
call fcn.004064c0
push 0x5a1f58
lea ecx, [ebp - 0x1840]
call fcn.004064c0
lea eax, [ebp - 0x1888]
push eax
lea ecx, [ebp - 0x1828]
call fcn.00404d00
mov byte [ebp - 4], 2
push 0x5a1f64
lea ecx, [ebp - 0x1828]
call fcn.004064c0
push 0x5a1f70
lea ecx, [ebp - 0x1828]
call fcn.004064c0
push 0x5a1f8c
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 0x417a99
mov byte [ebp - 0x1925], 1
jmp 0x417aa0
mov byte [ebp - 0x1925], 0
mov cl, byte [ebp - 0x1925]
mov byte [ebp - 0x1931], cl
xor edx, edx
mov word [ebp - 0x1010], dx
push 0x7fe
push 0
lea eax, [ebp - 0x100e]
push eax
call fcn.004f3400
add esp, 0xc
push 0
push 0x16
lea ecx, [ebp - 0x1010]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [ebp - 0x1964], eax
lea edx, [ebp - 0x1010]
push edx
lea ecx, [ebp - 0x1870]
call fcn.00404c20
mov byte [ebp - 4], 3
push 0x5a1f98
lea ecx, [ebp - 0x1870]
call fcn.004064c0
push 0x5a1f9c
lea ecx, [ebp - 0x1870]
call fcn.004064c0
lea eax, [ebp - 0x1870]
push eax
lea ecx, [ebp - 0x1840]
call fcn.00401c60
push 0x5a1fb8
lea ecx, [ebp - 0x1840]
call fcn.004064c0
push 0x5a1fc4
lea ecx, [ebp - 0x1840]
call fcn.004064c0
push 0x5a1fe0
lea ecx, [ebp - 0x1840]
call fcn.004064c0
lea ecx, [ebp - 0x1870]
push ecx
lea ecx, [ebp - 0x1828]
call fcn.00401c60
push 0x5a1fec
lea ecx, [ebp - 0x1828]
call fcn.004064c0
push 0x5a1ff8
lea ecx, [ebp - 0x1828]
call fcn.004064c0
push 0x5a2014
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 0x417be1
mov byte [ebp - 0x1926], 1
jmp 0x417be8
mov byte [ebp - 0x1926], 0
mov dl, byte [ebp - 0x1926]
mov byte [ebp - 0x1932], dl
xor eax, eax
mov word [ebp - 0x1810], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x180e]
push ecx
call fcn.004f3400
add esp, 0xc
push 0
push 0x17
lea edx, [ebp - 0x1810]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [ebp - 0x1968], eax
lea eax, [ebp - 0x1810]
push eax
lea ecx, [ebp - 0x1858]
call fcn.00404c20
mov byte [ebp - 4], 4
push 0x5a2020
lea ecx, [ebp - 0x1858]
call fcn.004064c0
push 0x5a2024
lea ecx, [ebp - 0x1858]
call fcn.004064c0
lea ecx, [ebp - 0x1858]
push ecx
lea ecx, [ebp - 0x1840]
call fcn.00401c60
push 0x5a2040
lea ecx, [ebp - 0x1840]
call fcn.004064c0
push 0x5a204c
lea ecx, [ebp - 0x1840]
call fcn.004064c0
push 0x5a2068
lea ecx, [ebp - 0x1840]
call fcn.004064c0
lea edx, [ebp - 0x1858]
push edx
lea ecx, [ebp - 0x1828]
call fcn.00401c60
push 0x5a2074
lea ecx, [ebp - 0x1828]
call fcn.004064c0
push 0x5a2080
lea ecx, [ebp - 0x1828]
call fcn.004064c0
push 0x5a209c
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 0x417d29
mov byte [ebp - 0x1927], 1
jmp 0x417d30
mov byte [ebp - 0x1927], 0
mov al, byte [ebp - 0x1927]
mov byte [ebp - 0x1933], al
push 0x5a20a8
lea ecx, [ebp - 0x18a0]
call fcn.00404c20
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x18a0]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00406e50
add esp, 8
mov byte [ebp - 0x1934], al
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18a0]
call fcn.00401cd0
push 0x5a2120
mov ecx, dword [ebp - 0x1930]
add ecx, 0x4c
call fcn.004758f0
mov dword [ebp - 0x1940], eax
push 0x18
call fcn.00472323
add esp, 4
mov dword [ebp - 0x1954], eax
mov byte [ebp - 4], 6
lea edx, [ebp - 0x1924]
push edx
mov eax, dword [ebp - 0x1940]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x1940]
mov eax, dword [edx + 0x38]
call eax
mov dword [ebp - 0x194c], eax
mov ecx, dword [ebp - 0x194c]
mov dword [ebp - 0x1950], ecx
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x192c]
or edx, 1
mov dword [ebp - 0x192c], edx
mov ecx, dword [ebp - 0x1950]
call fcn.00403be0
push eax
mov ecx, dword [ebp - 0x1954]
call fcn.00404c20
mov dword [ebp - 0x1944], eax
jmp 0x417e0e
mov eax, dword [ebp - 0x1944]
mov dword [ebp - 0x1958], eax
mov dword [ebp - 4], 8
mov ecx, dword [ebp - 0x1958]
mov dword [ebp - 0x195c], ecx
mov dword [ebp - 4], 4
mov edx, dword [ebp - 0x192c]
and edx, 1
je 0x417e51
and dword [ebp - 0x192c], 0xfffffffe
lea ecx, [ebp - 0x1924]
call fcn.00484540
mov eax, dword [ebp - 0x195c]
push eax
push 0x418a40
mov ecx, dword [ebp - 0x1930]
add ecx, 0x4f4
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.00472312
mov esp, ebp
pop ebp
ret