Function at 0x140003690
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1c8]
sub rsp, 0x2c8
mov rax, qword [0x1400270c0]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov r13, qword [rbp + 0x230]
mov r15, r8
mov r12, qword [rbp + 0x238]
mov rsi, rdx
mov rbx, rcx
mov qword [rbp - 0x80], r9
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x208
call fcn.140018450
xor r14d, r14d
xor eax, eax
or rdi, 0xffffffffffffffff
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x78], r14
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rsp + 0x70], r14
mov dword [rsp + 0x60], r14d
test rbx, rbx
je 0x14000371e
cmp word [rbx], r14w
je 0x14000371e
mov rcx, rbx
jmp 0x14000376c
lea rdx, [rbp - 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x140003768
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
mov edx, 0x284
or ebx, 0x80070000
lea rcx, str.c:_agent_work36_swix_srclibsdutilpathutil.cpp
test eax, eax
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
mov r8d, ebx
call fcn.140005eb4
jmp 0x14000390a
lea rcx, [rbp - 0x60]
lea r8, [rsp + 0x68]
mov rdx, rsi
call fcn.1400035f8
mov ebx, eax
test eax, eax
js 0x14000390a
mov rcx, qword [rsp + 0x68]
lea rdx, [rsp + 0x78]
call fcn.140003c24
test eax, eax
jne 0x1400037ac
mov rcx, qword [rsp + 0x78]
xor edx, edx
call fcn.1400058b8
mov ebx, eax
test eax, eax
js 0x14000390a
mov eax, dword [rsp + 0x60]
lea rsi, [0x14001b550]
test r15, r15
mov r14, rsi
cmovne r14, r15
inc eax
lea rcx, [rbp - 0x78]
mov dword [rsp + 0x60], eax
xor r15d, r15d
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [rbp - 0x6e]
lea eax, [r15 + 0x2e]
movzx edx, word [rbp - 0x70]
lea r11, [0x14001ad10]
movzx r8d, word [rbp - 0x72]
mov rbx, qword [rbp - 0x80]
movzx r10d, word [rbp - 0x76]
movzx r9d, word [rbp - 0x78]
mov qword [rsp + 0x58], rbx
cmp ax, word [rbx]
movzx eax, word [rbp - 0x6c]
cmove r11, rsi
mov qword [rsp + 0x50], r11
mov qword [rsp + 0x48], r14
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], ecx
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x30], edx
lea rdx, str._ls__04u_02u_02u_02u_02u_02u_ls_ls_ls
mov dword [rsp + 0x28], r8d
mov r8, qword [rsp + 0x68]
mov dword [rsp + 0x20], r10d
call fcn.140004b68
mov ebx, eax
test eax, eax
js 0x1400038fb
and qword [rsp + 0x30], r15
lea r8d, [r15 + 1]
mov rcx, qword [rsp + 0x70]
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x40000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400038d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0x50
je 0x140003891
cmp eax, 5
jne 0x1400038ad
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rsp + 0x60]
cmp eax, 0xa
jae 0x1400038b1
xor esi, esi
lea r15d, [rsi + 1]
jmp 0x1400038b1
mov eax, dword [rsp + 0x60]
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
test ebx, ebx
js 0x14000390a
lea rsi, [0x14001b550]
test r15d, r15d
jne 0x1400037c1
test r13, r13
je 0x1400038ee
mov rdx, qword [rsp + 0x70]
xor r8d, r8d
mov rcx, r13
call fcn.140004d14
mov ebx, eax
test eax, eax
js 0x1400038fb
test r12, r12
je 0x1400038fb
mov qword [r12], rdi
or rdi, 0xffffffffffffffff
cmp rdi, 0xffffffffffffffff
je 0x14000390a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140003919
call fcn.1400052dc
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140003928
call fcn.1400052dc
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140003937
call fcn.1400052dc
mov eax, ebx
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140006760
add rsp, 0x2c8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret