Function at 0x140003400
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.140006cb0
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 0x14000348e
cmp word [rbx], r14w
je 0x14000348e
mov rcx, rbx
jmp 0x1400034dc
lea rdx, [rbp - 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x1400034d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
mov edx, 0x284
or ebx, 0x80070000
lea rcx, str.c:_agent_work138_s_srclibsdutilpathutil.cpp
test eax, eax
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
mov r8d, ebx
call fcn.140005770
jmp 0x14000367a
lea rcx, [rbp - 0x60]
lea r8, [rsp + 0x68]
mov rdx, rsi
call fcn.140003368
mov ebx, eax
test eax, eax
js 0x14000367a
mov rcx, qword [rsp + 0x68]
lea rdx, [rsp + 0x78]
call fcn.140003994
test eax, eax
jne 0x14000351c
mov rcx, qword [rsp + 0x78]
xor edx, edx
call fcn.140005cdc
mov ebx, eax
test eax, eax
js 0x14000367a
mov eax, dword [rsp + 0x60]
lea rsi, [0x1400171e8]
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, [0x140016c90]
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.1400048d8
mov ebx, eax
test eax, eax
js 0x14000366b
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 0x140003643
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0x50
je 0x140003601
cmp eax, 5
jne 0x14000361d
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rsp + 0x60]
cmp eax, 0xa
jae 0x140003621
xor esi, esi
lea r15d, [rsi + 1]
jmp 0x140003621
mov eax, dword [rsp + 0x60]
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
test ebx, ebx
js 0x14000367a
lea rsi, [0x1400171e8]
test r15d, r15d
jne 0x140003531
test r13, r13
je 0x14000365e
mov rdx, qword [rsp + 0x70]
xor r8d, r8d
mov rcx, r13
call fcn.140004a84
mov ebx, eax
test eax, eax
js 0x14000366b
test r12, r12
je 0x14000366b
mov qword [r12], rdi
or rdi, 0xffffffffffffffff
cmp rdi, 0xffffffffffffffff
je 0x14000367a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140003689
call fcn.14000504c
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140003698
call fcn.14000504c
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400036a7
call fcn.14000504c
mov eax, ebx
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1400062b0
add rsp, 0x2c8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret