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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419ccd
mov eax, dword fs:[0]
push eax
sub esp, 0x850
mov eax, dword [0x4251dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x854], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x84c], 0
lea ecx, [ebp - 0x838]
mov dword [ebp - 0x85c], edi
mov dword [ebp - 0x850], eax
mov dword [ebp - 0x838], 0
call fcn.004010a0
lea eax, [ebp - 0x848]
push eax
mov dword [ebp - 4], 1
call dword [sym.imp.ole32.dll_CoCreateGuid]
mov ebx, eax
push 0x104
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.MacromedTemp_
mov esi, eax
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.0040fb74
add esp, 0xc
lea eax, [ebp - 0x420]
push dword [ebp - 0x850]
sub esp, 8
mov ecx, esp
push eax
call fcn.00401070
call fcn.0040a0c0
lea eax, [esi - 1]
add esp, 0xc
cmp eax, 0x103
ja 0x40a6c9
test ebx, ebx
js 0x40a5c2
push 0x104
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x848]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
jle 0x40a5c2
push 0xffffffffffffffff
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.0040fc3c
push 0xffffffffffffffff
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0040fd0a
add esp, 0x20
jmp 0x40a5fa
lea eax, [ebp - 0x218]
push eax
push 0
push 0x41b484
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x40a717
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40a717
push 1
push 0x41b480
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0040fc3c
lea eax, [ebp - 0x218]
push 0xffffffffffffffff
push eax
call fcn.004108a0
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.0040fd0a
push 0xffffffffffffffff
push 0x41c734
call fcn.004108a0
push eax
push 0x41c734
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0040fc3c
add esp, 0x40
lea eax, [ebp - 0x628]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40a690
sub esp, 8
lea eax, [ebp - 0x218]
mov ecx, esp
push eax
call fcn.00401070
lea ecx, [ebp - 0x838]
call fcn.00401840
jmp 0x40a6c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp + 0xc], 0
mov ecx, dword [ebp - 0x854]
mov dword [ecx], 0x709
mov ecx, dword [ebp - 0x850]
mov dword [ecx], eax
jne 0x40a6c9
push 0
push str.Error
cmp eax, 5
jne 0x40a710
push str.Failed_to_create_temporary_file___Requires_Admin_Rights
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [ebp - 0x838]
push eax
mov ecx, edi
call fcn.00401000
lea ecx, [ebp - 0x838]
mov dword [ebp - 0x84c], 1
mov byte [ebp - 4], 0
call fcn.004010d0
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 - 0x10]
xor ecx, ebp
call fcn.0040ee55
mov esp, ebp
pop ebp
ret 0x10
push str.Failed_to_create_temporary_file
jmp 0x40a6c1
mov ecx, edi
call fcn.004010a0
jmp 0x40a6d7