Function at 0x423974
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf2bd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd4
mov dword [ebp - 0x10], ecx
push str.GTEMP_FILENAME::Filename
lea ecx, [ebp - 0xe0]
call fcn.00404f76
and dword [ebp - 4], 0
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.00405ab8
movsx eax, byte [eax]
test eax, eax
jne 0x423d11
lea ecx, [ebp - 0x20]
call fcn.004054e3
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004054e3
mov byte [ebp - 4], 2
push 0x104
lea ecx, [ebp - 0x2c]
call fcn.004065f0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xd
call fcn.00405b2a
push eax
push 0x4dc1f0
call fcn.004b6232
pop ecx
pop ecx
test eax, eax
jne 0x423b69
push 0x104
lea ecx, [ebp - 0x20]
call fcn.004065f0
push eax
push 0
push 0x4dd538
lea ecx, [ebp - 0x2c]
call fcn.00405b2a
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x423b64
lea eax, [ebp - 0x2c]
push eax
call fcn.0040f565
pop ecx
push 0x104
lea ecx, [ebp - 0x20]
call fcn.004065f0
push eax
push 0
push 0x4dd538
lea ecx, [ebp - 0x2c]
call fcn.00405b2a
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x423b64
push str.Unable_to_get_temp_file_name
push str.GTEMP_FILENAME
push 0x360
push str.D:projectsUTIL_srcgfio.cpp
call fcn.004046ac
add esp, 0x10
push str.c:logs
lea ecx, [ebp - 0x81]
call fcn.004053d4
mov byte [ebp - 4], 3
lea eax, [ebp - 0x81]
push eax
call fcn.0040f565
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x81]
call fcn.004055b0
push str..tmp
lea eax, [ebp - 0x93]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0xa5]
push eax
call fcn.00407505
add esp, 0x10
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 4
push dword [ebp - 0x48]
push str.c:logsGTF
lea eax, [ebp - 0xb7]
push eax
call fcn.00405b42
add esp, 0xc
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x60]
call fcn.00405cc1
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 6
push dword [ebp - 0x68]
lea ecx, [ebp - 0x20]
call fcn.00405662
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x93]
call fcn.004055b0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xb7]
call fcn.004055b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa5]
call fcn.004055b0
jmp 0x423cea
mov eax, bind
test eax, eax
je 0x423b84
call fcn.004b1e68
cdq
mov ecx, bind
idiv ecx
mov dword [ebp - 0x30], edx
jmp 0x423b88
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
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 - 0xc9]
push eax
push 0x4dae7c
lea eax, [ebp - 0x8a]
push eax
push dword [ebp - 0x14]
push 0x4dd578
lea eax, [ebp - 0xc0]
push eax
call fcn.00407450
add esp, 0xc
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 7
push dword [ebp - 0x70]
lea eax, [ebp - 0x9c]
push eax
push 0x4dd538
lea eax, [ebp - 0xae]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00405cc1
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x78]
call fcn.00405bb0
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x6c]
call fcn.00405cc1
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x74]
call fcn.00405bb0
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 0xb
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x20]
call fcn.00405662
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xc9]
call fcn.004055b0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x8a]
call fcn.004055b0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x9c]
call fcn.004055b0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xae]
call fcn.004055b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xc0]
call fcn.004055b0
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x20]
call fcn.00405b2a
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
je 0x423b69
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x423cea
push str.Unable_to_close_temp_file_handle
push str.GTEMP_FILENAME
push 0x36e
push str.D:projectsUTIL_srcgfio.cpp
call fcn.004046ac
add esp, 0x10
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.00405662
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004055b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.004055b0
mov eax, dword [ebp - 0x10]
add eax, 4
mov dword [ebp - 0x40], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe0]
call fcn.004050e2
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret