Function at 0x140001cb0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rax, qword [0x1400cd070]
xor rax, rsp
mov qword [rbp + 0x150], rax
call fcn.1400019f0
mov rcx, rax
test rax, rax
je 0x140002222
mov rax, qword [rax]
call qword [rax + Ordinal_26]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x58], rbx
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, [0x140083408]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d22c8], rax
test rax, rax
jne 0x140001d49
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Get_NtQuerySystemInformation_Addr_Failed_err_u_n
call fcn.140001580
jmp 0x140001e07
xor r9d, r9d
lea r8d, [r9 + 0x20]
lea rdx, [rbp + 0x30]
lea ecx, [r9 + 3]
call rax
test eax, eax
je 0x140001d6f
lea rcx, str.NtQuerySystemInformation_Failed_n
call fcn.140001580
jmp 0x140001e07
mov rax, qword [rbp + 0x30]
mov qword [rbp + 0x20], rax
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
jne 0x140001d9f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.FileTimeToLocalFileTime_Failed_err_u_nn
call fcn.140001580
jmp 0x140001e07
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
jne 0x140001dc7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.FileTimeToSystemTimeFailed_err_u_nn
call fcn.140001580
jmp 0x140001e07
movzx eax, word [rbp - 0x24]
movzx ecx, word [rbp - 0x26]
movzx edx, word [rbp - 0x28]
movzx r10d, word [rbp - 0x2a]
movzx r9d, word [rbp - 0x2e]
movzx r8d, word [rbp - 0x30]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], r10d
lea rdx, str._04d__02d__02d__02d:_02d:_02d
lea rcx, [rbp - 0x58]
call fcn.140002720
mov rbx, qword [rbp - 0x58]
xor r12d, r12d
mov qword [rbp - 0x20], r12
mov esi, r12d
mov qword [rbp - 0x10], r12
mov r13d, reloc.WS2_32.dll_ntohs
mov qword [rbp - 8], r13
mov byte [rbp - 0x20], sil
mov r8, rbx
lea rdx, str.360vad_s
lea rcx, [rsp + 0x68]
call fcn.14001bfc0
lea rcx, [rbp - 0x20]
cmp rcx, rax
je 0x140001e62
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x20], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x10], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], r13
mov byte [rax], r12b
mov r13, qword [rbp - 8]
mov rsi, qword [rbp - 0x10]
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x140001ea1
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001e9c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001e9c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140073454
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
lea r15, [rbp - 0x20]
mov r14, qword [rbp - 0x20]
cmp r13, 0x10
cmovae r15, r14
cmp rsi, 0x10
jae 0x140001ed6
movups xmm0, xmmword [r15]
movups xmmword [rsp + 0x40], xmm0
mov edi, reloc.WS2_32.dll_ntohs
jmp 0x140001f50
mov rdi, rsi
or rdi, 0xf
movabs rax, 0x7fffffffffffffff
cmp rdi, rax
cmova rdi, rax
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x140001f2d
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14000221c
mov rcx, rax
call fcn.1400731c8
mov rcx, rax
test rax, rax
je 0x140001f26
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140001f3c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x140001f39
call fcn.1400731c8
jmp 0x140001f3c
mov rax, r12
mov qword [rsp + 0x40], rax
lea r8, [rsi + 1]
mov rdx, r15
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rdi
lea rdx, [rsp + 0x40]
lea rcx, [rbp]
call fcn.14001c460
nop
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp + 0x50]
mov ecx, 0x100
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x50], 0
lea r9, [rbp]
cmp qword [rbp + 0x18], 0x10
cmovae r9, qword [rbp]
lea r8, [rbp + 0x50]
lea rdx, str._s_s.vd
lea rcx, [rbp - 0x78]
call fcn.14001bfc0
mov rdi, rax
lea rax, [rbp - 0x50]
cmp rax, rdi
je 0x140002030
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x140002002
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001ffd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002062
call fcn.140073454
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x50], 0
movups xmm0, xmmword [rdi]
movups xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbp - 0x40], xmm1
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov rdx, qword [rbp - 0x60]
cmp rdx, 0x10
jb 0x14000206e
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002069
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002069
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140073454
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 0x10
cmovae rcx, qword [rbp - 0x50]
xor edx, edx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access]
cmp eax, 0xffffffff
je 0x1400020a8
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 0x10
cmovae rdx, qword [rbp - 0x50]
lea rcx, [0x140083570]
call fcn.14001cde0
xor dil, dil
jmp 0x1400020f4
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 0x10
cmovae rcx, qword [rbp - 0x50]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], Ordinal_133
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
jne 0x1400020e8
xor dil, dil
jmp 0x1400020f4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dil, 1
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x140002132
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000212d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000212d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140073454
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x50], 0
mov rdx, qword [rbp + 0x18]
cmp rdx, 0x10
jb 0x140002180
inc rdx
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000217b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000217b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140073454
mov qword [rbp + 0x10], r12
mov qword [rbp + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbp], 0
cmp r13, 0x10
jb 0x1400021cb
lea rdx, [r13 + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x1400021c2
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400021c2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.140073454
nop
lea rdx, [rbx - 0x18]
mov ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x1400021e8
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
movzx eax, dil
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.140072f40
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140001790
nop
mov ecx, 0x80004005
call fcn.140001850
int3