Function at 0x4235b4
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf235
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
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 - 0x70]
call fcn.00404f76
mov byte [ebp - 4], 2
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.00405ab8
movsx eax, byte [eax]
test eax, eax
je 0x42381c
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
call fcn.0040a883
pop ecx
test eax, eax
je 0x42381c
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + 0x17]
test eax, eax
je 0x423773
push 4
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.00405b2a
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x42376e
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.00405b2a
push eax
push str.Unable_to_flag_temp_file_for_deletion_on_reboot__s
lea eax, [ebp - 0x4a]
push eax
call fcn.00407450
add esp, 0xc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x18]
call fcn.00405b2a
push eax
push str.GTEMP_FILENAME
push 0x340
push str.D:projectsUTIL_srcgfio.cpp
call fcn.004049b8
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4a]
call fcn.004055b0
lea ecx, [ebp - 0x38]
call fcn.004233ea
mov byte [ebp - 4], 4
push str.c:MgateWebExtrasFilesToDelete.dat
lea ecx, [ebp - 0x41]
call fcn.004053d4
mov byte [ebp - 4], 5
push 1
lea eax, [ebp - 0x41]
push eax
lea ecx, [ebp - 0x38]
call fcn.004247c8
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x41]
call fcn.004055b0
cmp dword [ebp - 0x1c], 0
je 0x42370c
push 0
lea ecx, [ebp - 0x38]
call fcn.00424060
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.00405b2a
push eax
push 0x4db298
lea eax, [ebp - 0x38]
push eax
call fcn.00425669
add esp, 0xc
jmp 0x423762
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.00405b2a
push eax
push str.Cant_delete_file__s
lea eax, [ebp - 0x53]
push eax
call fcn.00407450
add esp, 0xc
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x24]
call fcn.00405b2a
push eax
push str.GTEMP_FILENAME
push 0x347
push str.D:projectsUTIL_srcgfio.cpp
call fcn.004046ac
add esp, 0x10
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x53]
call fcn.004055b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.0042354a
jmp 0x42381c
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + 0x16]
test eax, eax
jne 0x42381c
push 0
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
call fcn.00410074
pop ecx
pop ecx
movzx eax, al
test eax, eax
jne 0x4237ef
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.00405b2a
push eax
push str.Unable_to_delete_temp_file__s
lea eax, [ebp - 0x5c]
push eax
call fcn.00407450
add esp, 0xc
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x2c]
call fcn.00405b2a
push eax
push str.GTEMP_FILENAME
push 0x34d
push str.D:projectsUTIL_srcgfio.cpp
call fcn.004046ac
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call fcn.004055b0
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
call fcn.0040a883
pop ecx
test eax, eax
je 0x42381c
push str._DoesFileExist_m_strFileName_
push str.GTEMP_FILENAME
push 0x34f
push str.D:projectsUTIL_srcgfio.cpp
call fcn.004044d6
add esp, 0x10
push 0
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.00406fa2
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.004050e2
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0xd
call fcn.004055b0
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.004055b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret