Function at 0x4312bc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [esp], 0x4c6260
mov dword [esp + 4], 0x10c
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0x4aa378
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.00434ea0
add esp, 0x1c
mov dword [ebp - 0x48], 0x50
add esp, 0xfffffff4
mov dword [esp], 0x4c63c6
mov dword [esp + 4], 0x4aa37c
mov dword [esp + 8], 3
call fcn.0048e1e0
add esp, 0xc
add esp, 0xfffffff8
mov dword [esp], 0x4c6260
mov eax, dword [ebp - 0x48]
mov dword [esp + 4], eax
call sub.KERNEL32.dll_GetWindowsDirectoryA
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov word [ebp - 0x4c], ax
movsx eax, word [ebp - 0x4c]
movsx eax, ax
test eax, eax
jne 0x4313c7
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov word [ebp - 0x4a], ax
add esp, 0xffffffe4
mov dword [esp], 0x4c6380
mov dword [esp + 4], 0x46
mov dword [esp + 8], 0
mov dword [esp + 0xc], str.GP_TMPFI:Get_Windows_Directory_Error
mov dword [esp + 0x10], 0x25
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.00434ea0
add esp, 0x1c
add esp, 0xfffffff4
mov dword [esp], 0x4c6380
lea eax, [ebp - 0x4a]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x46
call fcn.004086e8
add esp, 0xc
movsx eax, word [ebp - 0x4c]
movsx eax, ax
inc eax
mov dword [ebp - 0x3c], eax
movsx eax, word [ebp - 0x4c]
movsx eax, ax
add eax, 6
mov dword [ebp - 0x38], eax
mov eax, 0xffffffff
add eax, dword [ebp - 0x3c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
neg eax
add eax, dword [ebp - 0x38]
test eax, eax
jg 0x4313ff
mov dword [ebp - 0x30], 0
jmp 0x43140a
mov eax, dword [ebp - 0x34]
neg eax
add eax, dword [ebp - 0x38]
mov dword [ebp - 0x30], eax
add esp, 0xffffffe4
mov eax, 0x4c6260
add eax, dword [ebp - 0x34]
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 8], eax
cdq
mov eax, dword [ebp - 8]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], str.TEMP_
mov dword [esp + 0x10], 6
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.00434ea0
add esp, 0x1c
add esp, 0xfffffff8
mov dword [esp], 0x4c6260
mov dword [esp + 4], 0x10c
call fcn.0044d470
add esp, 8
mov dword [ebp - 0x2c], eax
add esp, 0xfffffff8
mov dword [esp], 0x4c6260
mov dword [esp + 4], 0x10c
call fcn.0044d470
add esp, 8
mov dword [ebp - 0x28], eax
mov eax, 1
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
mov eax, 1
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
mov eax, 0xffffffff
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
neg eax
add eax, dword [ebp - 0x20]
test eax, eax
jg 0x4314c2
mov dword [ebp - 0x18], 0
jmp 0x4314cd
mov eax, dword [ebp - 0x1c]
neg eax
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
add esp, 0xffffffe4
mov eax, 0x4c6260
add eax, dword [ebp - 0x1c]
mov dword [esp], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
cdq
mov eax, dword [ebp - 4]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
lea eax, [ebp - 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.00434ea0
add esp, 0x1c
add esp, 0xfffffff0
mov dword [esp], 0x4c6260
mov dword [esp + 4], 0x4c63c6
mov dword [esp + 8], 0
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
call sub.KERNEL32.dll_GetTempFileNameA
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov word [ebp - 0x4c], ax
movsx eax, word [ebp - 0x4c]
movsx eax, ax
test eax, eax
jne 0x4315c5
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov word [ebp - 0x4a], ax
add esp, 0xffffffe4
mov dword [esp], 0x4c6380
mov dword [esp + 4], 0x46
mov dword [esp + 8], 0
mov dword [esp + 0xc], str.GP_TMPFI:Get_Temp_File_Name_Error
mov dword [esp + 0x10], 0x22
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.00434ea0
add esp, 0x1c
add esp, 0xfffffff4
mov dword [esp], 0x4c6380
lea eax, [ebp - 0x4a]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x46
call fcn.004086e8
add esp, 0xc
leave
ret