Function at 0x405610
Capabilities:
Create thread
Delete directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x498cd2
mov eax, dword fs:[0]
push eax
mov eax, 0x1970
call fcn.004818a0
mov eax, dword [0x4b3da0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x196c], ecx
lea eax, [ebp - 0x1948]
push eax
mov ecx, dword [ebp - 0x196c]
mov edx, dword [ecx + 0x920]
mov eax, dword [ebp - 0x196c]
mov ecx, dword [eax + 0x920]
mov edx, dword [edx]
mov eax, dword [edx + 0x38]
call eax
mov dword [ebp - 0x1970], eax
mov ecx, dword [ebp - 0x1970]
mov dword [ebp - 0x1974], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1974]
call fcn.00422e30
push eax
mov ecx, dword [ebp - 0x196c]
add ecx, 0x1c
call fcn.00406a60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1948]
call fcn.00422f40
mov edx, dword [ebp - 0x196c]
mov eax, dword [edx + 0x920]
mov ecx, dword [ebp - 0x196c]
mov ecx, dword [ecx + 0x920]
mov edx, dword [eax]
mov eax, dword [edx + 0x2c]
call eax
mov dword [ebp - 0x1978], eax
push 0
mov ecx, dword [ebp - 0x1978]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x1978]
mov eax, dword [edx + 0xe0]
call eax
mov ecx, dword [ebp - 0x196c]
mov edx, dword [ecx + 0x924]
mov eax, dword [ebp - 0x196c]
mov ecx, dword [eax + 0x924]
mov edx, dword [edx]
mov eax, dword [edx + 0x2c]
call eax
mov dword [ebp - 0x197c], eax
push 0
mov ecx, dword [ebp - 0x197c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x197c]
mov eax, dword [edx + 0xe0]
call eax
push 0
mov ecx, dword [ebp - 0x196c]
mov edx, dword [ecx + 0x92c]
mov eax, dword [ebp - 0x196c]
mov ecx, dword [eax + 0x92c]
mov edx, dword [edx]
mov eax, dword [edx + 0xe0]
call eax
push str.ck_W
mov ecx, dword [ebp - 0x196c]
mov edx, dword [ecx + 0x930]
mov eax, dword [ebp - 0x196c]
mov ecx, dword [eax + 0x930]
mov edx, dword [edx]
mov eax, dword [edx + 0x3c]
call eax
push 0
mov ecx, dword [ebp - 0x196c]
mov edx, dword [ecx + 0x930]
mov eax, dword [ebp - 0x196c]
mov ecx, dword [eax + 0x930]
mov edx, dword [edx]
mov eax, dword [edx + 0xec]
call eax
push 1
mov ecx, dword [ebp - 0x196c]
mov edx, dword [ecx + 0x938]
mov eax, dword [ebp - 0x196c]
mov ecx, dword [eax + 0x938]
mov edx, dword [edx]
mov eax, dword [edx + 0xe0]
call eax
push 0
push 0xa
push 0x7e9
mov ecx, dword [ebp - 0x196c]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_SetTimer]
xor eax, eax
mov word [ebp - 0x814], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x812]
push ecx
call fcn.00480a10
add esp, 0xc
push 0
push 2
lea edx, [ebp - 0x814]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [ebp - 0x109c], eax
lea eax, [ebp - 0x814]
push eax
lea ecx, [ebp - 0x1094]
call fcn.00406a20
mov dword [ebp - 4], 1
push 0x4aafd8
lea ecx, [ebp - 0x1094]
call fcn.00401b60
lea ecx, [ebp - 0x1094]
push ecx
lea ecx, [ebp - 0x103c]
call fcn.00401b20
mov byte [ebp - 4], 2
push 0x4aafec
lea ecx, [ebp - 0x103c]
call fcn.00401b60
lea edx, [ebp - 0x1094]
push edx
lea ecx, [ebp - 0x1078]
call fcn.00401b20
mov byte [ebp - 4], 3
push 0x4ab008
lea ecx, [ebp - 0x1078]
call fcn.00401b60
lea ecx, [ebp - 0x103c]
call fcn.00401f60
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x1078]
call fcn.00401f60
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x1094]
call fcn.00401f60
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
mov byte [ebp - 0x10c1], al
xor ecx, ecx
mov word [ebp - 0x18c4], cx
push 0x7fe
push 0
lea edx, [ebp - 0x18c2]
push edx
call fcn.00480a10
add esp, 0xc
push 0
push 0x16
lea eax, [ebp - 0x18c4]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [ebp - 0x1020], eax
lea ecx, [ebp - 0x18c4]
push ecx
lea ecx, [ebp - 0x105c]
call fcn.00406a20
mov byte [ebp - 4], 4
push 0x4ab028
lea ecx, [ebp - 0x105c]
call fcn.00401b60
lea edx, [ebp - 0x105c]
push edx
lea ecx, [ebp - 0x103c]
call fcn.004014b0
push 0x4ab03c
lea ecx, [ebp - 0x103c]
call fcn.00401b60
lea eax, [ebp - 0x105c]
push eax
lea ecx, [ebp - 0x1078]
call fcn.004014b0
push 0x4ab058
lea ecx, [ebp - 0x1078]
call fcn.00401b60
lea ecx, [ebp - 0x103c]
call fcn.00401f60
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x1078]
call fcn.00401f60
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x105c]
call fcn.00401f60
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne cl
mov byte [ebp - 0x815], cl
xor edx, edx
mov word [ebp - 0x101c], dx
push 0x7fe
push 0
lea eax, [ebp - 0x101a]
push eax
call fcn.00480a10
add esp, 0xc
push 0
push 0x17
lea ecx, [ebp - 0x101c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [ebp - 0x10c0], eax
lea edx, [ebp - 0x101c]
push edx
lea ecx, [ebp - 0x10bc]
call fcn.00406a20
mov byte [ebp - 4], 5
push 0x4ab078
lea ecx, [ebp - 0x10bc]
call fcn.00401b60
lea eax, [ebp - 0x10bc]
push eax
lea ecx, [ebp - 0x103c]
call fcn.004014b0
push 0x4ab08c
lea ecx, [ebp - 0x103c]
call fcn.00401b60
lea ecx, [ebp - 0x10bc]
push ecx
lea ecx, [ebp - 0x1078]
call fcn.004014b0
push 0x4ab0a8
lea ecx, [ebp - 0x1078]
call fcn.00401b60
lea ecx, [ebp - 0x103c]
call fcn.00401f60
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x1078]
call fcn.00401f60
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x10bc]
call fcn.00401f60
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne dl
mov byte [ebp - 0x1095], dl
push 0x4ab0c8
lea ecx, [ebp - 0x1964]
call fcn.00406a20
lea eax, [ebp - 0x1964]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040e460
add esp, 8
mov byte [ebp - 0x103d], al
lea ecx, [ebp - 0x1964]
call fcn.00401490
mov dword [ebp - 0x81c], 0
lea ecx, [ebp - 0x81c]
push ecx
push 0
push 0
push 0x406510
push 0
push 0
call fcn.0047e3b3
add esp, 0x18
mov dword [ebp - 0x10a0], eax
mov edx, dword [ebp - 0x81c]
mov dword [ebp - 0x1968], edx
lea eax, [ebp - 0x10a0]
push eax
lea ecx, [ebp - 0x1968]
push ecx
mov ecx, dword [ebp - 0x196c]
call fcn.00404f80
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10bc]
call fcn.00401490
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x105c]
call fcn.00401490
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1078]
call fcn.00401490
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x103c]
call fcn.00401490
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1094]
call fcn.00401490
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047dd71
mov esp, ebp
pop ebp
ret