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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x1404b3028]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov r12, rcx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rcx
xor esi, esi
mov dword [rsp + 0x40], esi
lea rcx, str.TMPDIR
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140010ee0
nop
lea rdx, [rsp + 0x68]
mov rcx, r12
call fcn.14006c560
mov edi, 1
mov dword [rsp + 0x40], edi
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rsp + 0x68]
call fcn.1400119a0
cmp qword [r12 + 0x10], rsi
jne 0x14006e7ea
lea rcx, [0x140340e90]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140010ee0
nop
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x38]
call fcn.14006c560
mov rdx, rax
mov rcx, r12
call fcn.140050030
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rbp - 0x38]
call fcn.1400119a0
nop
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rsp + 0x68]
call fcn.1400119a0
cmp qword [r12 + 0x10], rsi
jne 0x14006e7ea
lea rcx, str.TEMP
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140010ee0
nop
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x38]
call fcn.14006c560
mov rdx, rax
mov rcx, r12
call fcn.140050030
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rbp - 0x38]
call fcn.1400119a0
nop
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rsp + 0x68]
call fcn.1400119a0
mov r13, 0xffffffffffffffff
cmp qword [r12 + 0x10], 0
jne 0x14006eb11
mov r8d, 0x105
mov rdx, r12
lea rcx, [rsp + 0x48]
call fcn.14005c7d0
mov rcx, qword [rax + 8]
mov rdx, qword [rcx]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rcx]
lea rcx, [0x140310350]
test rdx, rdx
cmovne rcx, rdx
mov r8, r13
nop dword [rax]
inc r8
cmp word [rcx + r8*2], 0
jne 0x14006e840
mov rdx, rcx
mov rcx, qword [rsp + 0x48]
call fcn.140038360
nop
call fcn.140044e20
mov r14d, 0xffff
mov rcx, qword [rsp + 0x50]
cmp rcx, rax
je 0x14006e8a1
add word [rcx + 0x10], r14w
jne 0x14006e89b
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x14006e89b
cmp byte [rbx + 0x12], 0
je 0x14006e88e
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, Ordinal_27
mov rcx, rbx
call fcn.14003b258
call fcn.140044e20
nop
test esi, esi
jne 0x14006eb04
xor al, al
lea rsi, [0x14033a5f8]
lea r15, str.C:LibrarieswxWidgets3.2.4_srccommon_filename.cpp
lea r12, str.wxFileName::GetTempDir
test al, al
jne 0x14006e913
mov rdx, rsi
lea rcx, [rbp - 0x38]
call fcn.140044710
mov rbx, rax
or edi, 2
mov dword [rsp + 0x40], edi
cmp dword [0x1404c4ab8], 0
je 0x14006e8f7
call sub.KERNEL32.dll_GetCurrentThreadId
cmp eax, dword [0x1404c4ab8]
je 0x14006e8f7
call fcn.140051d10
jmp 0x14006e8fe
movzx eax, byte [reloc.WS2_32.dll_accept]
test al, al
je 0x14006e913
mov rcx, rbx
call fcn.1400518b0
cmp eax, 6
jb 0x14006e913
mov bl, 1
jmp 0x14006e915
xor bl, bl
test dil, 2
je 0x14006e935
and edi, 0xfffffffd
mov dword [rsp + 0x40], edi
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rbp - 0x38]
call fcn.1400119a0
test bl, bl
je 0x14006eaff
lea rax, [rbp - 0x38]
mov qword [rsp + 0x48], rax
call fcn.140044e20
mov qword [rsp + 0x68], rax
call fcn.140044e20
mov qword [rsp + 0x70], rax
mov r8, r13
lea rdx, str._s__d_:__s_failed_with_error_0x_08lx___s_.
lea rcx, [rsp + 0x78]
call fcn.14003ee50
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
call sub.KERNEL32.dll_GetLastError
mov edx, eax
lea rcx, [rbp - 0x38]
call fcn.140052f00
mov rbx, rax
mov dword [rbp], 6
mov qword [rbp + 8], r15
mov qword [rbp + 0x18], r12
mov dword [rbp + 0x10], 0x4d2
mov qword [rbp + 0x20], rsi
xor eax, eax
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x30], rax
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [rbp + 0x38], eax
xor eax, eax
mov qword [rbp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x48], xmm0
mov qword [rbp + 0x58], rax
mov qword [rbp + 0x60], 7
mov word [rbp + 0x48], ax
mov qword [rbp + 0x68], rax
mov qword [rbp + 0x70], rax
call sub.KERNEL32.dll_GetLastError
nop
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], eax
lea rax, str.GetTempPath
mov qword [rsp + 0x20], rax
mov r9d, 0x4d2
mov r8, r15
lea rdx, [rsp + 0x68]
lea rcx, [rbp]
call fcn.14005a4a0
nop
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rbp + 0x48]
call fcn.1400119a0
lea rcx, [rbp + 8]
call fcn.14003dce0
nop
call fcn.140044e20
mov rcx, qword [rsp + 0x78]
cmp rcx, rax
je 0x14006ea70
add word [rcx + 0x10], r14w
jne 0x14006ea66
mov rbx, qword [rsp + 0x78]
test rbx, rbx
je 0x14006ea66
cmp byte [rbx + 0x12], 0
je 0x14006ea59
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, Ordinal_27
mov rcx, rbx
call fcn.14003b258
call fcn.140044e20
mov qword [rsp + 0x78], rax
call fcn.140044e20
mov rcx, qword [rsp + 0x70]
cmp rcx, rax
je 0x14006eab6
add word [rcx + 0x10], r14w
jne 0x14006eaac
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x14006eaac
cmp byte [rbx + 0x12], 0
je 0x14006ea9f
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, Ordinal_27
mov rcx, rbx
call fcn.14003b258
call fcn.140044e20
mov qword [rsp + 0x70], rax
call fcn.140044e20
mov rcx, qword [rsp + 0x68]
cmp rcx, rax
je 0x14006eaf8
add word [rcx + 0x10], r14w
jne 0x14006eaf2
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x14006eaf2
cmp byte [rbx + 0x12], 0
je 0x14006eae5
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edx, Ordinal_27
mov rcx, rbx
call fcn.14003b258
call fcn.140044e20
nop
mov al, 1
jmp 0x14006e8c0
mov r12, qword [rsp + 0x58]
xor esi, esi
cmp qword [r12 + 0x10], rsi
je 0x14006ed8c
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
movdqa xmm1, xmmword [0x140311a50]
movdqu xmmword [rbp - 0x58], xmm1
mov word [rbp - 0x68], si
movdqu xmmword [rbp - 0x48], xmm0
or edi, 8
mov dword [rsp + 0x40], edi
mov edx, 1
lea r8d, [rdx + 0x5b]
lea rcx, [rbp - 0x68]
call fcn.140060ee0
mov edx, 1
lea r8d, [rdx + 0x2e]
lea rcx, [rbp - 0x68]
call fcn.140060ee0
mov rsi, qword [0x14033b570]
lea r14, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae r14, qword [rbp - 0x68]
mov rbx, r12
cmp qword [r12 + 0x18], 8
jb 0x14006eb7d
mov rbx, qword [r12]
mov r15, qword [r12 + 0x10]
test r15, r15
je 0x14006ec48
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0x80]
call sub.VCRUNTIME140.dll_memset
mov rcx, r14
mov r9, qword [rbp - 0x58]
lea rdx, [r14 + r9*2]
mov r8d, 0x100
cmp r14, rdx
je 0x14006ebd2
movzx eax, word [rcx]
cmp ax, r8w
jae 0x14006ebff
movzx eax, al
mov byte [rbp + rax + 0x80], 1
add rcx, 2
cmp rcx, rdx
jne 0x14006ebb5
lea rax, [r15 - 1]
cmp rax, rsi
cmovb rsi, rax
lea rcx, [rbx + rsi*2]
movzx eax, word [rcx]
cmp ax, r8w
jae 0x14006ec3f
cmp byte [rbp + rax + 0x80], 0
je 0x14006ec3f
cmp rcx, rbx
je 0x14006ec48
sub rcx, 2
jmp 0x14006ebe1
lea rax, [r15 - 1]
cmp rax, rsi
cmovb rsi, rax
lea r8, [rbx + rsi*2]
nop
mov rcx, r9
mov rax, r14
test r9, r9
je 0x14006ec2f
movzx edx, word [r8]
nop
cmp word [rax], dx
je 0x14006ec34
add rax, 2
sub rcx, 1
jne 0x14006ec20
mov r13, r8
jmp 0x14006ec42
cmp r8, rbx
je 0x14006ec48
sub r8, 2
jmp 0x14006ec10
mov r13, rcx
sub r13, rbx
sar r13, 1
and edi, 0xfffffff7
mov dword [rsp + 0x40], edi
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [rbp - 0x50]
cmp rax, 8
jb 0x14006ec9c
lea rdx, [rax*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006ec97
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006ec97
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003b258
mov r8, qword [0x14033b570]
cmp r13, r8
jne 0x14006ed7e
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
movdqa xmm1, xmmword [0x140311a50]
movdqu xmmword [rsp + 0x78], xmm1
xor esi, esi
mov word [rsp + 0x68], si
movdqu xmmword [rbp - 0x78], xmm0
or edi, 0x10
mov dword [rsp + 0x40], edi
lea edx, [rsi + 1]
lea r8d, [rsi + 0x5c]
lea rcx, [rsp + 0x68]
call fcn.140060ee0
lea edx, [rsi + 1]
lea r8d, [rsi + 0x2f]
lea rcx, [rsp + 0x68]
call fcn.140060ee0
lea rax, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rax, qword [rsp + 0x68]
movzx ebx, word [rax]
and edi, 0xffffffef
mov dword [rsp + 0x40], edi
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x14006ed5f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006ed5a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006ed5a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003b258
movdqa xmm0, xmmword [0x140311a50]
movdqu xmmword [rsp + 0x78], xmm0
mov word [rsp + 0x68], si
mov edx, ebx
mov rcx, r12
call fcn.14006b1b0
jmp 0x14006ed9b
lea rdx, [r13 + 1]
mov rcx, r12
call fcn.140070470
jmp 0x14006ed9b
lea rdx, [0x14033ba10]
mov rcx, r12
call fcn.14003e010
mov rax, r12
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.14003b100
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret