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

Disassembly:
push ebp
lea ebp, [esp - 0x1254]
mov eax, 0x1254
call fcn.0040f410
push 0xffffffffffffffff
push 0x41072b
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x41c028]
xor eax, ebp
mov dword [ebp + 0x1250], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
test byte [0x41cc10], 1
jne 0x40358a
or dword [0x41cc10], 1
call dword [sym.imp.MSVCR90.dll_rand]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add esi, eax
movzx eax, si
mov dword [0x41cc0c], eax
push 0xe3e
lea eax, [ebp]
push 0
push eax
call sub.MSVCR90.dll_memset
mov esi, 0x208
push esi
lea eax, [ebp + 0x1048]
push 0
push eax
call sub.MSVCR90.dll_memset
push esi
lea eax, [ebp + 0xe40]
push 0
push eax
call sub.MSVCR90.dll_memset
add esp, 0x24
push 0x207
lea eax, [ebp + 0xe40]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, dword [0x41cc0c]
not eax
test al, 2
je 0x4035e6
add dword [0x41cc0c], 3
jmp 0x4035ed
add dword [0x41cc0c], 5
lea eax, [ebp + 0x1048]
push eax
push dword [0x41cc0c]
lea eax, [ebp + 0xe40]
push 0x412ae0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4036e5
lea eax, [ebp + 0x1048]
push eax
mov ecx, edi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_1]
lea eax, [ebp + 0x1048]
push eax
lea eax, [ebp]
call fcn.00401291
push str..bak
lea ecx, [ebp - 0x20]
call dword [0x4126e4]
mov dword [ebp - 0x18], eax
and dword [ebp - 4], 0
lea eax, [ebp + 0x416]
push eax
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
lea ecx, [ebp + 0x410]
push ecx
lea ecx, [ebp - 0x24]
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00403d1f
lea ecx, [ebp + 0x61e]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
mov esi, eax
mov byte [ebp - 4], 2
call fcn.00403cb4
push dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00403984
add esp, 0x18
push eax
mov ecx, ebx
mov byte [ebp - 4], 4
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x24]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x10]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [ebp - 0x20]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
push dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call esi
push dword [ebx]
call esi
xor eax, eax
inc eax
jmp 0x4036e7
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x1250]
xor ecx, ebp
call fcn.0040e9fc
add ebp, 0x1254
leave
ret