Function at 0x140003658
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 [0x1400220b8]
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.140007130
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 0x1400036e6
cmp word [rbx], r14w
je 0x1400036e6
mov rcx, rbx
jmp 0x140003734
lea rdx, [rbp - 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x140003730
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
mov edx, 0x284
or ebx, 0x80070000
lea rcx, str.c:_agent_work35_swix_srclibsdutilpathutil.cpp
test eax, eax
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
mov r8d, ebx
call fcn.140005e7c
jmp 0x1400038d2
lea rcx, [rbp - 0x60]
lea r8, [rsp + 0x68]
mov rdx, rsi
call fcn.1400035c0
mov ebx, eax
test eax, eax
js 0x1400038d2
mov rcx, qword [rsp + 0x68]
lea rdx, [rsp + 0x78]
call fcn.140003bec
test eax, eax
jne 0x140003774
mov rcx, qword [rsp + 0x78]
xor edx, edx
call fcn.140005880
mov ebx, eax
test eax, eax
js 0x1400038d2
mov eax, dword [rsp + 0x60]
lea rsi, [0x140017510]
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, [0x140016cd0]
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.140004b30
mov ebx, eax
test eax, eax
js 0x1400038c3
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 0x14000389b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0x50
je 0x140003859
cmp eax, 5
jne 0x140003875
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rsp + 0x60]
cmp eax, 0xa
jae 0x140003879
xor esi, esi
lea r15d, [rsi + 1]
jmp 0x140003879
mov eax, dword [rsp + 0x60]
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
test ebx, ebx
js 0x1400038d2
lea rsi, [0x140017510]
test r15d, r15d
jne 0x140003789
test r13, r13
je 0x1400038b6
mov rdx, qword [rsp + 0x70]
xor r8d, r8d
mov rcx, r13
call fcn.140004cdc
mov ebx, eax
test eax, eax
js 0x1400038c3
test r12, r12
je 0x1400038c3
mov qword [r12], rdi
or rdi, 0xffffffffffffffff
cmp rdi, 0xffffffffffffffff
je 0x1400038d2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400038e1
call fcn.1400052a4
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1400038f0
call fcn.1400052a4
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400038ff
call fcn.1400052a4
mov eax, ebx
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140006730
add rsp, 0x2c8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret