Function at 0x140025680
Capabilities:
Get common file path
Get session user name

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xac8]
sub rsp, 0xb90
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14009b3d0]
xor rax, rsp
mov qword [rbp + 0xa80], rax
mov r12, rdx
mov r14, rcx
mov ebx, 0x400
mov r15d, 1
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x680]
call sub.VCRUNTIME140.dll_memset
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x280]
call sub.VCRUNTIME140.dll_memset
lea rdi, [r14 + 0x10]
lea rdx, [0x14006c10f]
mov rcx, rdi
call qword [sym.imp.mfc140.dll_Ordinal_1507]
lea rcx, [rbp - 0x10]
call qword [sym.imp.PsRegApi.dll_public:_void___cdecl_CRegApi::constructor_void____ptr64]
nop
mov r9d, 0x20019
lea r8, str.SOFTWAREIntelWireless
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x10]
call qword [sym.imp.PsRegApi.dll_public:_long_int___cdecl_CRegApi::OpenKey_struct_HKEY______ptr64__char_const____ptr64__unsigned_long_int____ptr64]
xor r13d, r13d
test eax, eax
jne 0x14002576a
mov dword [rsp + 0x30], Ordinal_266
lea r9, [rsp + 0x30]
lea r8, [rbp + 0x680]
lea rdx, str.PROSetBinDir
lea rcx, [rbp - 0x10]
call qword [sym.imp.PsRegApi.dll_public:_long_int___cdecl_CRegApi::QueryValue_char_const____ptr64__char____ptr64__unsigned_long_int____ptr64____ptr64]
mov esi, r15d
test eax, eax
cmovne esi, r13d
lea rcx, [rbp - 0x10]
call qword [sym.imp.PsRegApi.dll_public:_long_int___cdecl_CRegApi::CloseKey_void____ptr64]
jmp 0x14002576d
mov esi, r13d
lea rcx, [rsp + 0x58]
call fcn.140026694
nop
lea rcx, [rsp + 0x58]
call fcn.140026950
test eax, eax
je 0x1400257a6
test esi, esi
je 0x1400257a6
lea rdx, [rbp + 0x680]
mov rcx, rdi
call qword [sym.imp.mfc140.dll_Ordinal_1507]
lea rdx, [0x14006f88c]
jmp 0x140025b9c
lea rdx, [0x14006c10f]
mov rcx, r14
call qword [sym.imp.mfc140.dll_Ordinal_2899]
test eax, eax
je 0x14002589b
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140.dll_Ordinal_316]
nop
mov rax, qword [r14 + 8]
cmp dword [rax - 0x10], r13d
jle 0x14002588b
mov rax, qword [r14]
mov qword [rsp + 0x20], rax
mov r9, qword [r14 + 8]
lea r8, str.SoftwareIntelWirelessFolders_
lea rdx, str._s_s_s
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140.dll_Ordinal_4648]
lea rcx, [rsp + 0x70]
call qword [sym.imp.PsRegApi.dll_public:_void___cdecl_CRegApi::constructor_void____ptr64]
nop
mov r9d, 0x20019
mov r8, qword [rsp + 0x38]
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x70]
call qword [sym.imp.PsRegApi.dll_public:_long_int___cdecl_CRegApi::OpenKey_struct_HKEY______ptr64__char_const____ptr64__unsigned_long_int____ptr64]
test eax, eax
jne 0x14002587c
mov dword [rsp + 0x34], r15d
mov dword [rsp + 0x30], ebx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x280]
lea r8, [rsp + 0x34]
lea rdx, str.Path
lea rcx, [rsp + 0x70]
call qword [sym.imp.PsRegApi.dll_public:_long_int___cdecl_CRegApi::QueryValue_char_const____ptr64__unsigned_long_int____ptr64__unsigned_char____ptr64__unsigned_long_int____ptr64____ptr64]
test eax, eax
jne 0x14002586f
lea rdx, [rbp + 0x280]
mov rcx, rdi
call qword [sym.imp.mfc140.dll_Ordinal_1507]
lea rcx, [rsp + 0x70]
call qword [sym.imp.PsRegApi.dll_public:_long_int___cdecl_CRegApi::CloseKey_void____ptr64]
jmp 0x14002587f
mov esi, r13d
lea rcx, [rsp + 0x70]
call qword [sym.imp.PsRegApi.dll_public_virtual:_void___cdecl_CRegApi::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
jmp 0x140025baa
lea rcx, [rbp + 0x60]
call fcn.140040098
mov edx, 0x200
lea rcx, [rbp + 0x60]
call fcn.140040154
test eax, eax
je 0x140025baa
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
lea r9, [rsp + 0x48]
mov r8d, r15d
mov edx, 8
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x1400258fb
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x48]
mov edx, 8
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140025ba7
lea rax, [rbp + 0x280]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, qword [rsp + 0x48]
mov edx, 0x801a
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov ebx, r13d
test eax, eax
cmovns ebx, r15d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140025ba7
lea rdx, [rbp + 0x280]
mov rcx, rdi
call qword [sym.imp.mfc140.dll_Ordinal_1507]
mov rax, qword [rdi]
mov edx, dword [rax - 0x10]
dec edx
mov rcx, rdi
call qword [sym.imp.mfc140.dll_Ordinal_4903]
cmp al, 0x5c
je 0x14002596d
lea rdx, [0x14006f88c]
mov rcx, rdi
call qword [sym.imp.mfc140.dll_Ordinal_1674]
lea rdx, [0x140072d70]
mov rcx, rdi
call qword [sym.imp.mfc140.dll_Ordinal_1674]
mov rdx, qword [rdi]
mov rcx, r14
call fcn.140026548
test eax, eax
je 0x140025b73
mov r14, r13
mov dword [rsp + 0x34], r13d
mov r15d, r13d
lea r8, [rsp + 0x34]
xor edx, edx
lea ebx, [rdx + 2]
mov ecx, ebx
call sub.Secur32.dll_GetUserNameExA
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x1400259e6
mov ecx, dword [rsp + 0x34]
call sub.mfc140.dll_Ordinal_265
mov r14, rax
xor edx, edx
lea r8d, [rbx + 6]
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea r8, [rsp + 0x34]
mov rdx, r14
mov ecx, ebx
call sub.Secur32.dll_GetUserNameExA
movzx r15d, al
mov dword [rsp + 0x30], r13d
lea rdx, str.SoftwareIntelWirelessFolders_
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140.dll_Ordinal_310]
nop
lea rcx, [rsp + 0x70]
call qword [sym.imp.PsRegApi.dll_public:_void___cdecl_CRegApi::constructor_void____ptr64]
nop
mov ebx, Ordinal_262
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x170]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x40], ebx
mov r8, r14
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x50]
call fcn.1400139d8
nop
mov r9d, 0x20019
mov r8, qword [rax]
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x70]
call qword [sym.imp.PsRegApi.dll_public:_long_int___cdecl_CRegApi::OpenKey_struct_HKEY______ptr64__char_const____ptr64__unsigned_long_int____ptr64]
mov ebx, eax
lea rcx, [rsp + 0x50]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
test ebx, ebx
jne 0x140025ab5
lea r9, [rsp + 0x40]
lea r8, [rbp + 0x170]
lea rdx, str.Path
lea rcx, [rsp + 0x70]
call qword [sym.imp.PsRegApi.dll_public:_long_int___cdecl_CRegApi::QueryValue_char_const____ptr64__char____ptr64__unsigned_long_int____ptr64____ptr64]
mov ebx, r13d
test eax, eax
mov eax, 1
cmove ebx, eax
lea rcx, [rsp + 0x70]
call qword [sym.imp.PsRegApi.dll_public:_long_int___cdecl_CRegApi::CloseKey_void____ptr64]
test ebx, ebx
je 0x140025ab5
lea rdx, [rbp + 0x170]
mov rcx, rdi
call qword [sym.imp.mfc140.dll_Ordinal_2899]
test eax, eax
je 0x140025b54
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov ebx, 0xf003f
mov dword [rsp + 0x20], ebx
xor r9d, r9d
mov r8, qword [rsp + 0x38]
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x70]
call qword [sym.imp.PsRegApi.dll_public:_long_int___cdecl_CRegApi::CreateKey_struct_HKEY______ptr64__char_const____ptr64__unsigned_long_int__unsigned_long_int__unsigned_long_int____ptr64____ptr64]
test eax, eax
jne 0x140025b54
lea rcx, [rsp + 0x70]
call qword [sym.imp.PsRegApi.dll_public:_long_int___cdecl_CRegApi::CloseKey_void____ptr64]
test r15d, r15d
je 0x140025b54
mov rdx, r14
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140.dll_Ordinal_1674]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
xor r9d, r9d
mov r8, qword [rsp + 0x38]
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x70]
call qword [sym.imp.PsRegApi.dll_public:_long_int___cdecl_CRegApi::CreateKey_struct_HKEY______ptr64__char_const____ptr64__unsigned_long_int__unsigned_long_int__unsigned_long_int____ptr64____ptr64]
test eax, eax
jne 0x140025b54
mov r9, qword [rdi]
lea r8d, [rax + 1]
lea rdx, str.Path
lea rcx, [rsp + 0x70]
call qword [sym.imp.PsRegApi.dll_public:_long_int___cdecl_CRegApi::SetValue_char_const____ptr64__unsigned_long_int__char_const____ptr64____ptr64]
lea rcx, [rsp + 0x70]
call qword [sym.imp.PsRegApi.dll_public:_long_int___cdecl_CRegApi::CloseKey_void____ptr64]
test r14, r14
je 0x140025b62
mov rcx, r14
call fcn.14005c3ac
nop
lea rcx, [rsp + 0x70]
call qword [sym.imp.PsRegApi.dll_public_virtual:_void___cdecl_CRegApi::destructor_void____ptr64]
nop
jmp 0x14002588b
mov edx, 0x400
lea rcx, [rbp + 0x280]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea rdx, [rbp + 0x280]
mov rcx, rdi
call qword [sym.imp.mfc140.dll_Ordinal_1507]
lea rdx, str.System32
mov rcx, rdi
call qword [sym.imp.mfc140.dll_Ordinal_1674]
jmp 0x140025baa
mov esi, r13d
test esi, esi
jne 0x140025c33
mov ebx, Ordinal_262
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x60]
call sub.VCRUNTIME140.dll_memset
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x60]
call sub.VCRUNTIME140.dll_memset
lea rax, [rbp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x140025c33
lea rdx, [rbp + 0x60]
mov rcx, rdi
call qword [sym.imp.mfc140.dll_Ordinal_1507]
mov rax, qword [rdi]
mov edx, dword [rax - 0x10]
dec edx
mov rcx, rdi
call qword [sym.imp.mfc140.dll_Ordinal_4903]
cmp al, 0x5c
je 0x140025c23
lea rdx, [0x14006f88c]
mov rcx, rdi
call qword [sym.imp.mfc140.dll_Ordinal_1674]
lea rdx, [0x140072d70]
mov rcx, rdi
call qword [sym.imp.mfc140.dll_Ordinal_1674]
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.mfc140.dll_Ordinal_300]
nop
lea rcx, [rsp + 0x58]
call fcn.140026760
nop
lea rcx, [rbp - 0x10]
call qword [sym.imp.PsRegApi.dll_public_virtual:_void___cdecl_CRegApi::destructor_void____ptr64]
mov rax, r12
mov rcx, qword [rbp + 0xa80]
xor rcx, rsp
call fcn.14005d930
mov rbx, qword [rsp + 0xbe0]
add rsp, 0xb90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret