Function at 0x140011f8c
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 [0x140092690]
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, [0x14006508d]
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 0x140012076
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 0x140012079
mov esi, r13d
lea rcx, [rsp + 0x58]
call fcn.140016ad4
nop
lea rcx, [rsp + 0x58]
call fcn.140016d90
test eax, eax
je 0x1400120b2
test esi, esi
je 0x1400120b2
lea rdx, [rbp + 0x680]
mov rcx, rdi
call qword [sym.imp.mfc140.dll_Ordinal_1507]
lea rdx, [0x140067a10]
jmp 0x1400124a8
lea rdx, [0x14006508d]
mov rcx, r14
call qword [sym.imp.mfc140.dll_Ordinal_2899]
test eax, eax
je 0x1400121a7
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140.dll_Ordinal_316]
nop
mov rax, qword [r14 + 8]
cmp dword [rax - 0x10], r13d
jle 0x140012197
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 0x140012188
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 0x14001217b
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 0x14001218b
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 0x1400124b6
lea rcx, [rbp + 0x60]
call fcn.14004bedc
mov edx, 0x200
lea rcx, [rbp + 0x60]
call fcn.14004bf98
test eax, eax
je 0x1400124b6
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 0x140012207
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 0x1400124b3
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.SHFOLDER.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 0x1400124b3
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 0x140012279
lea rdx, [0x140067a10]
mov rcx, rdi
call qword [sym.imp.mfc140.dll_Ordinal_1674]
lea rdx, [0x140067f20]
mov rcx, rdi
call qword [sym.imp.mfc140.dll_Ordinal_1674]
mov rdx, qword [rdi]
mov rcx, r14
call fcn.140012e54
test eax, eax
je 0x14001247f
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 0x1400122f2
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, 0x104
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.14001181c
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 0x1400123c1
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 0x1400123c1
lea rdx, [rbp + 0x170]
mov rcx, rdi
call qword [sym.imp.mfc140.dll_Ordinal_2899]
test eax, eax
je 0x140012460
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 0x140012460
lea rcx, [rsp + 0x70]
call qword [sym.imp.PsRegApi.dll_public:_long_int___cdecl_CRegApi::CloseKey_void____ptr64]
test r15d, r15d
je 0x140012460
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 0x140012460
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 0x14001246e
mov rcx, r14
call sub.mfc140.dll_Ordinal_266
nop
lea rcx, [rsp + 0x70]
call qword [sym.imp.PsRegApi.dll_public_virtual:_void___cdecl_CRegApi::destructor_void____ptr64]
nop
jmp 0x140012197
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 0x1400124b6
mov esi, r13d
test esi, esi
jne 0x14001253f
mov ebx, 0x104
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.SHFOLDER.dll_SHGetFolderPathA]
test eax, eax
js 0x14001253f
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 0x14001252f
lea rdx, [0x140067a10]
mov rcx, rdi
call qword [sym.imp.mfc140.dll_Ordinal_1674]
lea rdx, [0x140067f20]
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.140016ba0
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.140059ef0
mov rbx, qword [rsp + 0xbe0]
add rsp, 0xb90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret