Function at 0x14000515f
Capabilities:
Get common file path

Disassembly:
jmp 0x140063830
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2d0
mov rdi, rsp
mov ecx, 0xb4
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2e0]
mov qword [rsp + 0x290], 0xfffffffffffffffe
mov rax, qword [0x1400fb008]
xor rax, rsp
mov qword [rsp + 0x2c8], rax
mov rax, qword [rsp + 0x2e0]
mov ecx, dword [rsp + 0x2e8]
mov dword [rax], ecx
mov ecx, dword [rsp + 0x2e8]
call qword [sym.imp.ucrtbased.dll__dup]
mov rcx, qword [rsp + 0x2e0]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 0x2e0]
add rax, 8
mov rcx, rax
call fcn.140004e35
nop
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x105
rep stosb byte [rdi], al
lea rax, [rsp + 0x160]
mov rdi, rax
xor eax, eax
mov ecx, 0x105
rep stosb byte [rdi], al
lea rdx, [rsp + 0x30]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea r9, [rsp + 0x160]
xor r8d, r8d
lea rdx, str.gtest_redir
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov dword [rsp + 0x274], eax
mov dword [rsp + 0x298], 0
cmp dword [rsp + 0x274], 0
je 0x14006392c
mov byte [rsp + 0x29c], 1
jmp 0x140063934
mov byte [rsp + 0x29c], 0
movzx ecx, byte [rsp + 0x29c]
call fcn.140001280
movzx eax, al
test eax, eax
je 0x14006394a
jmp 0x1400639c7
mov r9d, 0x3ec
lea r8, str.c:_a1_s_thirdpartygoogletestgoogletest_srcgtest_port.cc
mov edx, 3
lea rcx, [rsp + 0x288]
call fcn.14000251d
mov qword [rsp + 0x2a0], rax
mov rax, qword [rsp + 0x2a0]
mov qword [rsp + 0x2a8], rax
mov rcx, qword [rsp + 0x2a8]
call fcn.14000115e
lea rdx, str.Condition_success___0_failed.
mov rcx, rax
call fcn.140001730
lea rdx, str.Unable_to_create_a_temporary_file_in
mov rcx, rax
call fcn.140001730
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.140001730
nop
lea rcx, [rsp + 0x288]
call fcn.140001352
mov edx, 0x180
lea rcx, [rsp + 0x160]
call qword [sym.imp.ucrtbased.dll__creat]
mov dword [rsp + 0x278], eax
mov dword [rsp + 0x2b0], 0
cmp dword [rsp + 0x278], 0xffffffff
je 0x140063a00
mov byte [rsp + 0x2b4], 1
jmp 0x140063a08
mov byte [rsp + 0x2b4], 0
movzx ecx, byte [rsp + 0x2b4]
call fcn.140001280
movzx eax, al
test eax, eax
je 0x140063a21
jmp 0x140063aa1
mov r9d, 0x3ef
lea r8, str.c:_a1_s_thirdpartygoogletestgoogletest_srcgtest_port.cc
mov edx, 3
lea rcx, [rsp + 0x28c]
call fcn.14000251d
mov qword [rsp + 0x2b8], rax
mov rax, qword [rsp + 0x2b8]
mov qword [rsp + 0x2c0], rax
mov rcx, qword [rsp + 0x2c0]
call fcn.14000115e
lea rdx, str.Condition_captured_fd____1_failed.
mov rcx, rax
call fcn.140001730
lea rdx, str.Unable_to_open_temporary_file
mov rcx, rax
call fcn.140001730
lea rdx, [rsp + 0x160]
mov rcx, rax
call fcn.140001730
nop
lea rcx, [rsp + 0x28c]
call fcn.140001352
mov rax, qword [rsp + 0x2e0]
add rax, 8
lea rdx, [rsp + 0x160]
mov rcx, rax
call fcn.140001267
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll_fflush]
mov rax, qword [rsp + 0x2e0]
mov edx, dword [rax]
mov ecx, dword [rsp + 0x278]
call qword [sym.imp.ucrtbased.dll__dup2]
mov ecx, dword [rsp + 0x278]
call qword [sym.imp.ucrtbased.dll__close]
nop
mov rax, qword [rsp + 0x2e0]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1400cc770]
call fcn.140004250
mov rax, rdi
mov rcx, qword [rsp + 0x2c8]
xor rcx, rsp
call fcn.140002d8d
add rsp, 0x2d0
pop rdi
ret