Function at 0x40d538
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45390a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.GTEMP_FILENAME.0
mov dword [ebp - 4], 1
push str.GTEMP_FILENAME::GTEMP_FILENAME
lea ecx, [ebp - 0x94]
call fcn.004117cd
mov byte [ebp - 4], 2
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.00406a95
movsx eax, byte [eax]
test eax, eax
je 0x40d7fa
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
call fcn.0040f635
pop ecx
test eax, eax
je 0x40d7fa
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + 0x17]
test eax, eax
je 0x40d751
push 4
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.00406b07
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x40d74c
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.00406b07
push eax
push str.Unable_to_flag_temp_file_for_deletion_on_reboot__s
lea eax, [ebp - 0x7e]
push eax
call fcn.004077a2
add esp, 0xc
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x2c]
call fcn.00406b07
push eax
push str.GTEMP_FILENAME
push 0x34a
push str.D:projectsutil_srcgfio.cpp
call fcn.00405613
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x7e]
call fcn.004066e8
lea ecx, [ebp - 0x1c]
call fcn.0040d36e
mov byte [ebp - 4], 4
push str.Marcotte
lea ecx, [ebp - 0x51]
call fcn.0040650c
mov byte [ebp - 4], 5
push 1
push str.FilesToDelete.dat
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x51]
push eax
push 1
lea eax, [ebp - 0x5a]
push eax
call fcn.00415d47
add esp, 0xc
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x40]
call fcn.00406c9e
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 7
push dword [ebp - 0x48]
lea ecx, [ebp - 0x1c]
call fcn.0040e68d
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x6c]
call fcn.004066e8
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x5a]
call fcn.004066e8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x51]
call fcn.004066e8
cmp dword [ebp - 0x44], 0
je 0x40d6ea
push 0
lea ecx, [ebp - 0x1c]
call fcn.0040df25
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.00406b07
push eax
push 0x45646c
lea eax, [ebp - 0x1c]
push eax
call fcn.00421b00
add esp, 0xc
jmp 0x40d740
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.00406b07
push eax
push str.Cant_delete_file__s
lea eax, [ebp - 0x63]
push eax
call fcn.004077a2
add esp, 0xc
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x20]
call fcn.00406b07
push eax
push str.GTEMP_FILENAME
push 0x351
push str.D:projectsutil_srcgfio.cpp
call fcn.00405307
add esp, 0x10
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x63]
call fcn.004066e8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.0040d4ce
jmp 0x40d7fa
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + 0x16]
test eax, eax
jne 0x40d7fa
push 0
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
call fcn.0040fa06
pop ecx
pop ecx
movzx eax, al
test eax, eax
jne 0x40d7cd
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.00406b07
push eax
push str.Unable_to_delete_temp_file__s
lea eax, [ebp - 0x75]
push eax
call fcn.004077a2
add esp, 0xc
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x24]
call fcn.00406b07
push eax
push str.GTEMP_FILENAME
push 0x357
push str.D:projectsutil_srcgfio.cpp
call fcn.00405307
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x75]
call fcn.004066e8
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
call fcn.0040f635
pop ecx
test eax, eax
je 0x40d7fa
push str._DoesFileExist_m_strFileName_
push str.GTEMP_FILENAME
push 0x359
push str.D:projectsutil_srcgfio.cpp
call fcn.00405131
add esp, 0x10
push 0
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.004074fe
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
call fcn.00411939
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0xd
call fcn.004066e8
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.004066e8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret