Function at 0x40d93b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45398f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd0
mov dword [ebp - 0x10], ecx
push str.GTEMP_FILENAME::Filename
lea ecx, [ebp - 0xdc]
call fcn.004117cd
and dword [ebp - 4], 0
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.00406a95
movsx eax, byte [eax]
test eax, eax
jne 0x40dcb8
lea ecx, [ebp - 0x20]
call fcn.0040661b
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.0040661b
mov byte [ebp - 4], 2
push 0x104
lea ecx, [ebp - 0x2c]
call fcn.004074bc
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xd
call fcn.00406b07
push eax
push 0x456524
call fcn.0043f94f
pop ecx
pop ecx
test eax, eax
jne 0x40db27
push 0x104
lea ecx, [ebp - 0x20]
call fcn.004074bc
push eax
push 0
push 0x45840c
lea ecx, [ebp - 0x2c]
call fcn.00406b07
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x40db22
lea eax, [ebp - 0x2c]
push eax
call fcn.0040f704
pop ecx
push 0x104
lea ecx, [ebp - 0x20]
call fcn.004074bc
push eax
push 0
push 0x45840c
lea ecx, [ebp - 0x2c]
call fcn.00406b07
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x40db22
push str.Unable_to_get_temp_file_name
push str.GTEMP_FILENAME
push 0x36a
push str.D:projectsutil_srcgfio.cpp
call fcn.00405307
add esp, 0x10
push str.c:logs
lea ecx, [ebp - 0x7d]
call fcn.0040650c
mov byte [ebp - 4], 3
lea eax, [ebp - 0x7d]
push eax
call fcn.0040f704
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x7d]
call fcn.004066e8
push str..tmp
lea eax, [ebp - 0x8f]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0xa1]
push eax
call fcn.00407857
add esp, 0x10
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 4
push dword [ebp - 0x44]
push str.c:logsGTF
lea eax, [ebp - 0xb3]
push eax
call fcn.00406b1f
add esp, 0xc
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x5c]
call fcn.00406c9e
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 6
push dword [ebp - 0x64]
lea ecx, [ebp - 0x20]
call fcn.0040676c
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x8f]
call fcn.004066e8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xb3]
call fcn.004066e8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa1]
call fcn.004066e8
jmp 0x40dc91
call fcn.0043a6f9
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40db3c
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
add eax, 0xd
push eax
lea eax, [ebp - 0xc5]
push eax
push 0x4580a8
lea eax, [ebp - 0x86]
push eax
push dword [ebp - 0x14]
push 0x45844c
lea eax, [ebp - 0xbc]
push eax
call fcn.004077a2
add esp, 0xc
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 7
push dword [ebp - 0x6c]
lea eax, [ebp - 0x98]
push eax
push 0x45840c
lea eax, [ebp - 0xaa]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00406c9e
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x74]
call fcn.00406b8d
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x68]
call fcn.00406c9e
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x70]
call fcn.00406b8d
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 0xb
push dword [ebp - 0x38]
lea ecx, [ebp - 0x20]
call fcn.0040676c
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xc5]
call fcn.004066e8
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x86]
call fcn.004066e8
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x98]
call fcn.004066e8
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xaa]
call fcn.004066e8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xbc]
call fcn.004066e8
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x20]
call fcn.00406b07
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
je 0x40db27
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x40dc91
push str.Unable_to_close_temp_file_handle
push str.GTEMP_FILENAME
push 0x378
push str.D:projectsutil_srcgfio.cpp
call fcn.00405307
add esp, 0x10
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.0040676c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004066e8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.004066e8
mov eax, dword [ebp - 0x10]
add eax, 4
mov dword [ebp - 0x3c], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xdc]
call fcn.00411939
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret