Function at 0x14001f950
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
mov rax, qword [0x1400cf070]
xor rax, rsp
mov qword [rbp + 0xe0], rax
mov rsi, rcx
mov qword [rsp + 0x40], rcx
xor eax, eax
mov qword [rcx], rax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], al
mov qword [rcx + 0x20], rax
mov qword [rcx + 0x30], rax
mov qword [rcx + 0x38], reloc.WS2_32.dll_ntohs
mov byte [rcx + 0x20], al
mov qword [rcx + 0x40], rax
mov qword [rcx + 0x50], rax
mov qword [rcx + 0x58], reloc.WS2_32.dll_ntohs
mov byte [rcx + 0x40], al
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp - 0x20]
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
lea r8d, [r9 + 0x23]
lea rdx, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
call fcn.140001a00
mov rcx, rax
test rax, rax
je 0x14001fca4
mov rax, qword [rax]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rbp - 0x60], rax
lea rax, [rbp - 0x20]
mov rdi, 0xffffffffffffffff
cmp rax, 0x10000
jae 0x14001fa2d
lea rax, [rbp - 0x20]
movzx edx, ax
lea rcx, [rbp - 0x60]
call fcn.140002900
jmp 0x14001fa4e
lea rcx, [rbp - 0x20]
mov rax, rdi
inc rax
cmp byte [rcx + rax], 0
jne 0x14001fa34
mov r8d, eax
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x60]
call fcn.140002a90
nop
lea rdx, str._startflaguuidV3.dat
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp byte [rdx + rax], 0
jne 0x14001fa60
mov r8d, eax
lea rcx, [rbp - 0x60]
call fcn.1400087a0
mov rbx, qword [rbp - 0x60]
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
or eax, ecx
jge 0x14001fa97
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.1400025c0
mov rbx, qword [rbp - 0x60]
mov r8, rdi
nop word [rax + rax]
inc r8
cmp byte [rbx + r8], 0
jne 0x14001faa0
mov rdx, rbx
lea rcx, [rsi + 0x20]
call fcn.140003160
lea rcx, [0x140084428]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, [0x140084408]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400d42f0], rax
test rax, rax
jne 0x14001faf8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Get_NtQuerySystemInformation_Addr_Failed_err_u_n
call fcn.140001590
jmp 0x14001fc07
xor r9d, r9d
lea r8d, [r9 + 0x20]
lea rdx, [rbp - 0x48]
lea ecx, [r9 + 3]
call rax
test eax, eax
je 0x14001fb1e
lea rcx, str.NtQuerySystemInformation_Failed_n
call fcn.140001590
jmp 0x14001fc07
mov rax, qword [rbp - 0x48]
mov qword [rbp - 0x58], rax
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
jne 0x14001fb51
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.FileTimeToLocalFileTime_Failed_err_u_nn
call fcn.140001590
jmp 0x14001fc07
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
jne 0x14001fb7c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.FileTimeToSystemTimeFailed_err_u_nn
call fcn.140001590
jmp 0x14001fc07
movzx eax, word [rbp - 0x64]
movzx edx, word [rbp - 0x66]
movzx r10d, word [rbp - 0x68]
movzx r11d, word [rbp - 0x6a]
movzx r9d, word [rbp - 0x6e]
movzx r8d, word [rbp - 0x70]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], r11d
lea rdx, str._04d__02d__02d__02d:_02d:_02d
lea rcx, [rsp + 0x50]
call fcn.14001c5a0
mov rdx, rax
lea rcx, [rsi + 0x40]
call fcn.140002450
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14001fc07
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001fc02
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001fc02
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140073b54
mov rcx, rsi
call fcn.14001fdb0
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.14001fcb0
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x14001fc5c
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001fc56
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001fc56
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140073b54
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x14001fc75
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
nop
mov rax, rsi
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.140073640
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov ecx, 0x80004005
call fcn.140001860
int3