Function at 0x14013b7b0
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 - 0x160]
sub rsp, 0x260
mov rax, qword [0x14055f260]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov r15, rcx
mov qword [rsp + 0x60], rcx
xor r13d, r13d
mov dword [rsp + 0x40], r13d
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.1400104b0
nop
lea rdx, [rsp + 0x68]
mov rcx, r15
call fcn.140139720
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.14000e160
mov rax, qword [r15 + 0x10]
test rax, rax
jne 0x14013b939
lea rcx, [0x1403cf230]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.1400104b0
nop
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x68]
call fcn.140139720
nop
cmp r15, rax
je 0x14013b893
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x14013b886
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
mov rcx, r15
call fcn.14001d300
nop
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rbp - 0x68]
call fcn.14000e160
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.14000e160
mov rax, qword [r15 + 0x10]
test rax, rax
jne 0x14013b939
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.1400104b0
nop
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x68]
call fcn.140139720
nop
cmp r15, rax
je 0x14013b90d
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x14013b900
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
mov rcx, r15
call fcn.14001d300
nop
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rbp - 0x68]
call fcn.14000e160
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.14000e160
mov rax, qword [r15 + 0x10]
mov r14, 0xffffffffffffffff
mov qword [rsp + 0x48], r14
test rax, rax
jne 0x14013bced
mov r8d, 0x105
mov rdx, r15
lea rcx, [rsp + 0x50]
call fcn.140121540
mov rcx, qword [rax + 8]
mov rdx, qword [rcx]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
sete sil
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax]
lea rdx, [0x1404d41c8]
test rcx, rcx
cmovne rdx, rcx
mov r8, r14
inc r8
cmp word [rdx + r8*2], 0
jne 0x14013b992
mov rcx, qword [rsp + 0x50]
call fcn.14001d300
nop
call fcn.14010aa30
mov r12d, 0xffff
mov rcx, qword [rsp + 0x58]
cmp rcx, rax
je 0x14013b9f0
add word [rcx + 0x10], r12w
jne 0x14013b9ea
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x14013b9ea
cmp byte [rbx + 0x12], 0
je 0x14013b9dd
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.14036c454
call fcn.14010aa30
nop
test sil, sil
je 0x14013bced
xor al, al
lea rsi, [0x1403c8f48]
test al, al
jne 0x14013ba55
mov rdx, rsi
lea rcx, [rbp - 0x68]
call fcn.14010a1d0
mov rbx, rax
or edi, 2
mov dword [rsp + 0x40], edi
cmp dword [0x140575068], 0
je 0x14013ba39
call sub.KERNEL32.dll_GetCurrentThreadId
cmp eax, dword [0x140575068]
je 0x14013ba39
call fcn.140136fe0
jmp 0x14013ba40
movzx eax, byte [reloc.WS2_32.dll_accept]
test al, al
je 0x14013ba55
mov rcx, rbx
call fcn.140136b60
cmp eax, 6
jb 0x14013ba55
mov bl, 1
jmp 0x14013ba57
xor bl, bl
test dil, 2
je 0x14013ba77
and edi, 0xfffffffd
mov dword [rsp + 0x40], edi
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, [rbp - 0x68]
call fcn.14000e160
test bl, bl
je 0x14013bced
lea rax, [rbp - 0x68]
mov qword [rsp + 0x50], rax
call fcn.14010aa30
mov qword [rsp + 0x68], rax
call fcn.14010aa30
mov qword [rsp + 0x70], rax
mov r8, r14
lea rdx, str._s__d_:__s_failed_with_error_0x_08lx___s_.
lea rcx, [rsp + 0x78]
call fcn.14010f8e0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
call sub.KERNEL32.dll_GetLastError
mov edx, eax
lea rcx, [rbp - 0x68]
call fcn.140138150
mov rbx, rax
mov dword [rbp - 0x30], 6
lea rax, str.C:ProjectwxWidgets_3.2.2.1_srccommon_filename.cpp
mov qword [rbp - 0x28], rax
lea rax, str.wxFileName::GetTempDir
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x20], 0x4d2
mov qword [rbp - 0x10], rsi
mov qword [rbp - 8], r13
mov qword [rbp], r13
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [rbp + 8], eax
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x28], r13
mov qword [rbp + 0x30], 7
mov word [rbp + 0x18], r13w
mov qword [rbp + 0x38], r13
mov qword [rbp + 0x40], r13
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
lea r8, str.C:ProjectwxWidgets_3.2.2.1_srccommon_filename.cpp
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x30]
call fcn.14010ce50
nop
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdx, qword [rbp + 0x30]
cmp rdx, 8
jb 0x14013bba5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14013bba0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14013bce6
call fcn.14036c454
mov qword [rbp + 0x28], r13
mov qword [rbp + 0x30], 7
mov word [rbp + 0x18], r13w
mov rbx, qword [rbp + 0x10]
test rbx, rbx
je 0x14013bc11
lea r8, [0x1400110e0]
mov rdx, qword [rbx + 0x20]
mov rcx, qword [rbx + 0x28]
call fcn.14011b9f0
mov qword [rbx + 0x30], r13
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea r8, [0x140011220]
mov rdx, qword [rbx]
mov rcx, qword [rbx + 8]
call fcn.14011b9f0
mov qword [rbx + 0x10], r13
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov edx, 0x40
mov rcx, rbx
call fcn.14036c454
nop
call fcn.14010aa30
mov rcx, qword [rsp + 0x78]
cmp rcx, rax
je 0x14013bc57
add word [rcx + 0x10], r12w
jne 0x14013bc4d
mov rbx, qword [rsp + 0x78]
test rbx, rbx
je 0x14013bc4d
cmp byte [rbx + 0x12], 0
je 0x14013bc40
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.14036c454
call fcn.14010aa30
mov qword [rsp + 0x78], rax
call fcn.14010aa30
mov rcx, qword [rsp + 0x70]
cmp rcx, rax
je 0x14013bc9d
add word [rcx + 0x10], r12w
jne 0x14013bc93
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x14013bc93
cmp byte [rbx + 0x12], 0
je 0x14013bc86
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.14036c454
call fcn.14010aa30
mov qword [rsp + 0x70], rax
call fcn.14010aa30
mov rcx, qword [rsp + 0x68]
cmp rcx, rax
je 0x14013bcdf
add word [rcx + 0x10], r12w
jne 0x14013bcd9
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x14013bcd9
cmp byte [rbx + 0x12], 0
je 0x14013bccc
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.14036c454
call fcn.14010aa30
nop
mov al, 1
jmp 0x14013ba02
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
cmp qword [r15 + 0x10], 0
je 0x14013bfce
mov qword [rsp + 0x68], r13
movdqa xmm0, xmmword [0x1403c8da0]
movdqu xmmword [rsp + 0x78], xmm0
mov word [rsp + 0x68], r13w
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x78], xmm0
or edi, 8
mov dword [rsp + 0x40], edi
mov edx, 1
lea r8d, [rdx + 0x5b]
lea rcx, [rsp + 0x68]
call fcn.14013ddf0
mov edx, 1
lea r8d, [rdx + 0x2e]
lea rcx, [rsp + 0x68]
call fcn.14013ddf0
mov rsi, qword [0x1403c87b8]
lea r12, [rsp + 0x68]
mov r13, qword [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae r12, r13
mov rbx, r15
cmp qword [r15 + 0x18], 8
jb 0x14013bd6d
mov rbx, qword [r15]
mov r14, qword [r15 + 0x10]
test r14, r14
je 0x14013be4a
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll_memset
mov rcx, r12
mov r9, qword [rsp + 0x78]
lea rdx, [r12 + r9*2]
mov r8d, 0x100
cmp r12, rdx
je 0x14013bdbc
movzx eax, word [rcx]
cmp ax, r8w
jae 0x14013bdeb
movzx eax, al
mov byte [rbp + rax + 0x50], 1
add rcx, 2
cmp rcx, rdx
jne 0x14013bda2
lea rax, [r14 - 1]
cmp rax, rsi
cmovb rsi, rax
lea rcx, [rbx + rsi*2]
nop dword [rax + rax]
movzx eax, word [rcx]
cmp ax, r8w
jae 0x14013be3f
cmp byte [rbp + rax + 0x50], 0
je 0x14013be3f
cmp rcx, rbx
je 0x14013be4a
sub rcx, 2
jmp 0x14013bdd0
lea rax, [r14 - 1]
cmp rax, rsi
cmovb rsi, rax
lea r8, [rbx + rsi*2]
nop word [rax + rax]
mov rcx, r9
mov rax, r12
test r9, r9
je 0x14013be1f
movzx edx, word [r8]
nop
cmp word [rax], dx
je 0x14013be34
add rax, 2
sub rcx, 1
jne 0x14013be10
mov r14, r8
sub r14, rbx
sar r14, 1
mov qword [rsp + 0x48], r14
mov rsi, qword [rsp + 0x48]
jmp 0x14013be51
cmp r8, rbx
je 0x14013be2d
sub r8, 2
jmp 0x14013be00
mov rsi, rcx
sub rsi, rbx
sar rsi, 1
jmp 0x14013be51
mov rsi, 0xffffffffffffffff
and edi, 0xfffffff7
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 rax, qword [rbp - 0x80]
cmp rax, 8
jb 0x14013bea4
lea rdx, [rax*2 + 2]
mov rax, r13
cmp rdx, 0x1000
jb 0x14013be9c
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14013be9c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r13
call fcn.14036c454
mov rdx, qword [0x1403c87b8]
cmp rsi, rdx
jne 0x14013bf86
xor esi, esi
mov qword [rsp + 0x68], rsi
movdqa xmm0, xmmword [0x1403c8da0]
movdqu xmmword [rsp + 0x78], xmm0
mov word [rsp + 0x68], si
xorps xmm0, xmm0
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.14013ddf0
lea edx, [rsi + 1]
lea r8d, [rsi + 0x2f]
lea rcx, [rsp + 0x68]
call fcn.14013ddf0
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 0x14013bf67
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14013bf62
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14013bf62
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14036c454
movdqa xmm0, xmmword [0x1403c8da0]
movdqu xmmword [rsp + 0x78], xmm0
mov word [rsp + 0x68], si
mov edx, ebx
mov rcx, r15
call fcn.1401382f0
jmp 0x14013bfdd
lea r9, [rsi + 1]
mov r8, qword [r15 + 0x10]
cmp r8, r9
jb 0x14013c010
mov rax, r8
sub rax, r9
cmp rax, rdx
cmovb rdx, rax
mov rax, r15
cmp qword [r15 + 0x18], 8
jb 0x14013bfad
mov rax, qword [r15]
lea rcx, [rax + r9*2]
sub r8, rdx
mov qword [r15 + 0x10], r8
sub r8, r9
lea r8, [r8*2 + 2]
lea rdx, [rcx + rdx*2]
call sub.VCRUNTIME140.dll_memmove
jmp 0x14013bfdd
lea rdx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, r15
call fcn.140108220
mov rax, r15
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.14036c0d0
lea r11, [rsp + 0x260]
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
call fcn.1400206f0
int3