Function at 0x5cdc00
Capabilities:
Get common file path
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x70545f
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x831704]
xor eax, esp
mov dword [esp + 0xb8], eax
push ebx
push esi
push edi
mov eax, dword [0x831704]
xor eax, esp
push eax
lea eax, [esp + 0xcc]
mov dword fs:[0], eax
mov esi, dword [esp + 0xdc]
mov dword [esp + 0x18], 0
mov ebx, dword [sym.imp.MSVCR120.dll_getenv]
push str.TMPDIR
mov dword [esp + 0xd8], 0
mov dword [esp + 0x20], esi
call ebx
add esp, 4
lea ecx, [esp + 0xa8]
push eax
call fcn.00418040
lea eax, [esp + 0xa8]
mov dword [esp + 0xd4], 1
push eax
push esi
call fcn.005cbfe0
push dword [esp + 0xc8]
mov edi, dword [sym.imp.MSVCR120.dll_free]
mov dword [esp + 0x24], 1
mov byte [esp + 0xe0], 0
call edi
add esp, 0xc
cmp dword [esp + 0xbc], 8
jb 0x5cdcc9
push dword [esp + 0xa8]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [esp + 0xbc], 7
mov dword [esp + 0xb8], 0
mov word [esp + 0xa8], ax
cmp dword [esi + 0x10], eax
jne 0x5cde3a
push 0x77e2f8
call ebx
add esp, 4
lea ecx, [esp + 0x40]
push eax
call fcn.00418040
lea eax, [esp + 0x40]
mov dword [esp + 0xd4], 2
push eax
lea eax, [esp + 0x24]
push eax
call fcn.005cbfe0
add esp, 8
mov byte [esp + 0xd4], 3
cmp esi, eax
je 0x5cdd3b
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00419170
push dword [esp + 0x38]
call edi
add esp, 4
cmp dword [esp + 0x34], 8
jb 0x5cdd57
push dword [esp + 0x20]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
push dword [esp + 0x58]
xor eax, eax
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
mov byte [esp + 0xd8], al
call edi
add esp, 4
cmp dword [esp + 0x54], 8
jb 0x5cdd91
push dword [esp + 0x40]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [esi + 0x10], 0
jne 0x5ce011
push str.TEMP
call ebx
add esp, 4
lea ecx, [esp + 0x40]
push eax
call fcn.00418040
lea eax, [esp + 0x40]
mov dword [esp + 0xd4], 4
push eax
lea eax, [esp + 0x24]
push eax
call fcn.005cbfe0
add esp, 8
mov byte [esp + 0xd4], 5
cmp esi, eax
je 0x5cdde4
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00419170
push dword [esp + 0x38]
call edi
add esp, 4
cmp dword [esp + 0x34], 8
jb 0x5cde00
push dword [esp + 0x20]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
push dword [esp + 0x58]
xor eax, eax
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
mov byte [esp + 0xd8], al
call edi
add esp, 4
cmp dword [esp + 0x54], 8
jb 0x5cde3a
push dword [esp + 0x40]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [esi + 0x10], 0
jne 0x5ce011
push 0x105
push esi
lea ecx, [esp + 0x18]
call fcn.004936d0
mov eax, dword [esp + 0x14]
push dword [eax]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
lea ecx, [esp + 0x10]
sete bl
call fcn.00493bc0
test bl, bl
je 0x5ce087
sub esp, 0x20
mov ecx, esp
push 0x721844
call fcn.00418040
push 6
call fcn.00439d10
add esp, 0x24
test al, al
je 0x5ce087
call fcn.005c92f0
mov dword [esp + 0x20], eax
mov dword [esp + 0xd4], 6
call fcn.005c92f0
mov dword [esp + 0x24], eax
push 0xffffffffffffffff
lea eax, [esp + 0x2c]
mov byte [esp + 0xd8], 7
push str._s__d_:__s_failed_with_error_0x_08lx___s_.
push eax
call fcn.00439000
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
push 0
mov dword [esp + 0xe4], 8
mov dword [esp + 0x70], 6
mov dword [esp + 0x78], str....._srccommon_filename.cpp
mov dword [esp + 0x80], str.wxFileName::GetTempDir
mov dword [esp + 0x7c], 0x50a
mov dword [esp + 0x84], 0x721844
call dword [sym.imp.MSVCR120.dll__time64]
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], edx
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [esp + 0x90], eax
xor eax, eax
mov dword [esp + 0x94], 0
mov dword [esp + 0xac], 7
mov dword [esp + 0xa8], 0
mov word [esp + 0x98], ax
mov dword [esp + 0xb0], eax
mov byte [esp + 0xe4], 9
call sub.KERNEL32.dll_GetLastError
push eax
call fcn.005e5210
add esp, 0x14
push eax
call sub.KERNEL32.dll_GetLastError
push eax
push str.GetTempPath
push 0x50a
push str....._srccommon_filename.cpp
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x78]
call fcn.00479740
push dword [esp + 0xa0]
mov byte [esp + 0xd8], 8
call edi
add esp, 4
cmp dword [esp + 0x9c], 8
jb 0x5cdfd5
push dword [esp + 0x88]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [esp + 0x9c], 7
lea ecx, [esp + 0x68]
mov dword [esp + 0x98], 0
mov word [esp + 0x88], ax
call fcn.00439c40
lea ecx, [esp + 0x20]
mov byte [esp + 0xd4], 0
call fcn.00420020
jmp 0x5ce087
lea eax, [esp + 0x40]
push 0
push eax
call fcn.005cd480
add esp, 8
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x5ce02b
mov eax, dword [eax]
push ecx
push dword [0x77db98]
mov ecx, esi
push eax
call fcn.005d0300
push dword [esp + 0x58]
mov ebx, eax
call edi
add esp, 4
cmp dword [esp + 0x54], 8
jb 0x5ce058
push dword [esp + 0x40]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [0x77db98]
cmp ebx, eax
jne 0x5ce07b
lea eax, [esp + 0x10]
push 0
push eax
call fcn.00419fb0
add esp, 8
mov ecx, esi
push dword [eax]
call fcn.005cb270
jmp 0x5ce087
push eax
lea eax, [ebx + 1]
mov ecx, esi
push eax
call fcn.00419390
cmp dword [esi + 0x10], 0
jne 0x5ce099
push 0x77db9c
mov ecx, esi
call fcn.00429230
mov eax, esi
mov ecx, dword [esp + 0xcc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.006d1ba7
add esp, 0xc8
ret