Function at 0x5d0490
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x705900
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x831704]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x831704]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov edi, dword [esp + 0x140]
mov eax, dword [esp + 0x148]
mov ecx, dword [esp + 0x14c]
mov ebp, dword [esp + 0x144]
mov esi, dword [esp + 0x150]
mov dword [esp + 0x5c], 0
cmp dword [0x82e960], 0
mov dword [esp + 0x138], 0
mov dword [esp + 0x60], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], ecx
je 0x5d054d
test eax, eax
je 0x5d054d
test ecx, ecx
je 0x5d054d
push 0
push str.fileTemp__0__ffileTemp__0
push str.wxCreateTempImpl
push 0x3ae
push str....._srccommon_filename.cpp
call fcn.005c6f20
add esp, 0x14
cmp byte [0x87c8e0], 0
je 0x5d054d
mov byte [0x87c8e0], 0
int3
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
mov dword [edi + 0x18], eax
mov dword [esp + 0x5c], 1
mov dword [esp + 0x100], 7
mov dword [esp + 0xfc], eax
mov word [esp + 0xec], ax
mov dword [esp + 0x104], eax
mov dword [esp + 0x138], 1
mov dword [esp + 0xe0], 7
mov dword [esp + 0xdc], eax
mov word [esp + 0xcc], ax
mov dword [esp + 0xe4], eax
xor bh, bh
mov byte [esp + 0x138], 2
mov byte [esp + 0x16], bh
test esi, esi
je 0x5d05d4
mov bh, byte [esi]
mov byte [esp + 0x16], bh
mov byte [esi], al
jmp 0x5d05d8
lea esi, [esp + 0x16]
push 0
push 0
lea eax, [esp + 0xd4]
push eax
lea eax, [esp + 0xf8]
push eax
push ebp
call fcn.005cfee0
mov ebp, dword [sym.imp.MSVCR120.dll_free]
add esp, 0x14
cmp dword [esp + 0xfc], 0
jne 0x5d065f
lea eax, [esp + 0xac]
push eax
call fcn.005cdc00
add esp, 4
lea ecx, [esp + 0xec]
mov byte [esp + 0x138], 3
cmp ecx, eax
je 0x5d0632
push 0xffffffffffffffff
push 0
push eax
call fcn.00419170
push dword [esp + 0xc4]
mov byte [esp + 0x13c], 2
call ebp
add esp, 4
cmp dword [esp + 0xc0], 8
jb 0x5d065f
push dword [esp + 0xac]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
push 0x105
push edi
lea ecx, [esp + 0x3c]
call fcn.004936d0
mov eax, dword [esp + 0x38]
lea edx, [esp + 0xcc]
cmp dword [esp + 0xe0], 8
cmovae edx, dword [esp + 0xcc]
mov ecx, dword [eax]
lea eax, [esp + 0xec]
cmp dword [esp + 0x100], 8
push ecx
cmovae eax, dword [esp + 0xf0]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
lea ecx, [esp + 0x34]
sete bl
call fcn.00493bc0
test bl, bl
je 0x5d086d
sub esp, 0x20
mov ecx, esp
push 0x721844
call fcn.00418040
push 6
call fcn.00439d10
add esp, 0x24
test al, al
je 0x5d0855
call fcn.005c92f0
mov dword [esp + 0x1c], eax
mov byte [esp + 0x138], 4
call fcn.005c92f0
mov dword [esp + 0x20], eax
push 0xffffffffffffffff
lea eax, [esp + 0x28]
mov byte [esp + 0x13c], 5
push str._s__d_:__s_failed_with_error_0x_08lx___s_.
push eax
call fcn.00439000
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
push 0
mov byte [esp + 0x148], 6
mov dword [esp + 0x74], 6
mov dword [esp + 0x7c], str....._srccommon_filename.cpp
mov dword [esp + 0x84], str.wxCreateTempImpl
mov dword [esp + 0x80], 0x3d5
mov dword [esp + 0x88], 0x721844
call dword [sym.imp.MSVCR120.dll__time64]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], edx
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [esp + 0x94], eax
xor eax, eax
mov dword [esp + 0x98], 0
mov dword [esp + 0xb0], 7
mov dword [esp + 0xac], 0
mov word [esp + 0x9c], ax
mov dword [esp + 0xb4], eax
mov byte [esp + 0x148], 7
call sub.KERNEL32.dll_GetLastError
push eax
call fcn.005e5210
add esp, 0x14
push eax
call sub.KERNEL32.dll_GetLastError
push eax
push str.GetTempFileName
push 0x3d5
push str....._srccommon_filename.cpp
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x7c]
call fcn.00479740
push dword [esp + 0xa4]
mov byte [esp + 0x13c], 6
call ebp
add esp, 4
cmp dword [esp + 0xa0], 8
jb 0x5d081b
push dword [esp + 0x8c]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [esp + 0xa0], 7
lea ecx, [esp + 0x6c]
mov dword [esp + 0x9c], 0
mov word [esp + 0x8c], ax
call fcn.00439c40
lea ecx, [esp + 0x1c]
mov byte [esp + 0x138], 2
call fcn.00420020
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], 0
jb 0x5d0866
mov eax, dword [edi]
jmp 0x5d0868
mov eax, edi
xor ecx, ecx
mov word [eax], cx
cmp dword [edi + 0x10], 0
jne 0x5d0b13
sub esp, 0x20
mov ecx, esp
push 0x721844
call fcn.00418040
push 1
call fcn.00439d10
add esp, 0x24
test al, al
je 0x5d0e08
push str.Failed_to_create_a_temporary_file_name
lea ecx, [esp + 0xb0]
call fcn.00418040
xor eax, eax
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], ax
mov dword [esp + 0x54], eax
mov byte [esp + 0x138], 9
call fcn.005eae80
test eax, eax
je 0x5d08ef
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0xb0]
push ecx
mov ecx, eax
call fcn.005ecae0
mov esi, eax
test esi, esi
jne 0x5d0901
lea eax, [esp + 0xac]
push eax
call fcn.005ed1e0
add esp, 4
mov esi, eax
call fcn.005c92f0
mov dword [esp + 0x1c], eax
mov byte [esp + 0x138], 0xa
call fcn.005c92f0
mov dword [esp + 0x20], eax
mov byte [esp + 0x138], 0xb
call fcn.005c92f0
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0
push str.wx.sys_error
lea ecx, [esp + 0x110]
mov byte [esp + 0x13c], 0xc
call fcn.00418040
push 0
mov byte [esp + 0x13c], 0xd
mov dword [esp + 0x68], 1
mov dword [esp + 0x70], str....._srccommon_filename.cpp
mov dword [esp + 0x78], str.wxCreateTempImpl
mov dword [esp + 0x74], 0x43f
mov dword [esp + 0x7c], 0x721844
call dword [sym.imp.MSVCR120.dll__time64]
add esp, 4
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], edx
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [esp + 0x84], eax
xor eax, eax
mov dword [esp + 0x88], 0
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], 0
mov word [esp + 0x8c], ax
mov dword [esp + 0xa4], eax
mov byte [esp + 0x138], 0xe
call sub.KERNEL32.dll_GetLastError
push eax
lea eax, [esp + 0x110]
push eax
lea ecx, [esp + 0x6c]
call fcn.0049dde0
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.005e6500
push eax
push esi
call fcn.00439e70
push dword [esp + 0xac]
mov byte [esp + 0x144], 0xd
call ebp
add esp, 0xc
cmp dword [esp + 0xa0], 8
jb 0x5d0a33
push dword [esp + 0x8c]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [esp + 0xa0], 7
lea ecx, [esp + 0x6c]
mov dword [esp + 0x9c], 0
mov word [esp + 0x8c], ax
call fcn.00439c40
push dword [esp + 0x124]
call ebp
add esp, 4
cmp dword [esp + 0x120], 8
jb 0x5d0a81
push dword [esp + 0x10c]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [esp + 0x120], 7
lea ecx, [esp + 0x1c]
mov dword [esp + 0x11c], 0
mov word [esp + 0x10c], ax
mov byte [esp + 0x138], 9
call fcn.00420020
push dword [esp + 0x54]
call ebp
add esp, 4
cmp dword [esp + 0x50], 8
jb 0x5d0ace
push dword [esp + 0x3c]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
push dword [esp + 0xc4]
xor eax, eax
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], 0
mov word [esp + 0x40], ax
call ebp
add esp, 4
cmp dword [esp + 0xc0], 8
jb 0x5d0e08
push dword [esp + 0xac]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x5d0e08
mov eax, dword [esp + 0x30]
mov cl, 1
mov byte [esp + 0x17], cl
test eax, eax
je 0x5d0b5f
cmp dword [eax], 0xffffffff
jne 0x5d0b5f
push esi
push edi
mov byte [esi], bh
call fcn.005d1210
add esp, 8
mov dword [esp + 0x34], eax
cmp eax, 0xffffffff
je 0x5d0b59
mov ebx, dword [esp + 0x30]
mov ecx, ebx
call fcn.005d9f80
mov eax, dword [esp + 0x34]
mov cl, byte [esp + 0x17]
mov dword [ebx], eax
mov dword [ebx + 4], 0
jmp 0x5d0b5b
xor cl, cl
mov bh, byte [esp + 0x16]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x5d0b7b
cmp dword [eax], 0
jne 0x5d0b7b
push esi
push edi
push eax
mov byte [esi], bh
call fcn.005d1280
add esp, 0xc
mov cl, al
test cl, cl
jne 0x5d0e08
sub esp, 0x20
mov ecx, esp
push 0x721844
call fcn.00418040
push 1
call fcn.00439d10
add esp, 0x24
test al, al
je 0x5d0df0
push str.Failed_to_open_temporary_file.
lea ecx, [esp + 0xb0]
call fcn.00418040
xor eax, eax
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], ax
mov dword [esp + 0x54], eax
mov byte [esp + 0x138], 0x10
call fcn.005eae80
test eax, eax
je 0x5d0bfb
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0xb0]
push ecx
mov ecx, eax
call fcn.005ecae0
mov esi, eax
test esi, esi
jne 0x5d0c0d
lea eax, [esp + 0xac]
push eax
call fcn.005ed1e0
add esp, 4
mov esi, eax
call fcn.005c92f0
mov dword [esp + 0x1c], eax
mov byte [esp + 0x138], 0x11
call fcn.005c92f0
mov dword [esp + 0x20], eax
mov byte [esp + 0x138], 0x12
call fcn.005c92f0
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0
push 0
mov byte [esp + 0x13c], 0x13
mov dword [esp + 0x68], 1
mov dword [esp + 0x70], str....._srccommon_filename.cpp
mov dword [esp + 0x78], str.wxCreateTempImpl
mov dword [esp + 0x74], 0x462
mov dword [esp + 0x7c], 0x721844
call dword [sym.imp.MSVCR120.dll__time64]
add esp, 4
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], edx
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [esp + 0x84], eax
xor eax, eax
mov dword [esp + 0x88], 0
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], 0
mov word [esp + 0x8c], ax
mov dword [esp + 0xa4], eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x138], 0x14
call fcn.005e6500
push eax
lea eax, [esp + 0x68]
push eax
call fcn.00439e70
push dword [esp + 0xac]
call ebp
add esp, 0xc
cmp dword [esp + 0xa0], 8
jb 0x5d0d09
push dword [esp + 0x8c]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, dword [esp + 0x88]
xor eax, eax
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], 0
mov word [esp + 0x8c], ax
mov dword [esp + 0x18], esi
test esi, esi
je 0x5d0d87
push 0x4294d0
push dword [esi + 0x10]
mov byte [esp + 0x140], 0x15
push dword [esi + 0x14]
call fcn.005f0870
push dword [esi + 0x10]
mov dword [esi + 0x18], 0
call ebp
push 0x439bf0
push dword [esi]
mov byte [esp + 0x150], 0x13
push dword [esi + 4]
call fcn.005f0870
push dword [esi]
mov dword [esi + 8], 0
call ebp
push esi
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 0x24
lea ecx, [esp + 0x1c]
mov byte [esp + 0x138], 0x10
call fcn.00420020
push dword [esp + 0x54]
call ebp
add esp, 4
cmp dword [esp + 0x50], 8
jb 0x5d0db4
push dword [esp + 0x3c]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
push dword [esp + 0xc4]
xor eax, eax
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], 0
mov word [esp + 0x40], ax
call ebp
add esp, 4
cmp dword [esp + 0xc0], 8
jb 0x5d0df0
push dword [esp + 0xac]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], 0
jb 0x5d0e01
mov eax, dword [edi]
jmp 0x5d0e03
mov eax, edi
xor ecx, ecx
mov word [eax], cx
push dword [esp + 0xe4]
call ebp
add esp, 4
cmp dword [esp + 0xe0], 8
jb 0x5d0e2d
push dword [esp + 0xcc]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
push dword [esp + 0x104]
xor eax, eax
mov dword [esp + 0xe4], 7
mov dword [esp + 0xe0], 0
mov word [esp + 0xd0], ax
call ebp
add esp, 4
cmp dword [esp + 0x100], 8
jb 0x5d0e72
push dword [esp + 0xec]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.006d1ba7
add esp, 0x128
ret