Function at 0x140004bb0
Capabilities:
Create directory
Get common file path

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1d10]
mov eax, 0x1e10
call fcn.140026760
sub rsp, rax
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov rax, qword [0x140040008]
xor rax, rsp
mov qword [rbp + 0x1d00], rax
movzx ebx, r9b
mov rsi, r8
mov r15, rdx
mov rdi, rcx
mov qword [rbp - 0x70], rdx
lea rdx, [0x14002c964]
mov rcx, r8
call qword [sym.imp.ac1st22.dll_public:_class_AcString____ptr64___cdecl_AcString::assign_wchar_t_const____ptr64____ptr64]
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0xf0]
call sub.VCRUNTIME140.dll_memset
mov edx, 0xff
lea rcx, [rbp + 0xf0]
call qword [sym.imp.UserData.dll_acudGetUserProductRegistryRootKey]
xor eax, eax
mov qword [rbp - 0x30], rax
lea rdx, [rbp + 0xf0]
lea rcx, [rbp - 0x30]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::constructor_wchar_t_const____ptr64____ptr64]
nop
lea rcx, [rbp - 0x30]
call qword [sym.imp.ac1st22.dll_public:_unsigned_int___cdecl_AcString::length_void_const___ptr64]
test eax, eax
jne 0x140004c7f
lea rcx, str.ERROR:_Cant_determine_registry_root._n
call fcn.1400100c0
nop
lea rcx, [rbp - 0x30]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
nop
mov rcx, r15
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
xor al, al
jmp 0x140005427
xor eax, eax
mov qword [rbp - 0x38], rax
lea rdx, [0x14002c960]
lea rcx, [rbp - 0x30]
call qword [sym.imp.ac1st22.dll_public:_int___cdecl_AcString::findRev_wchar_t_const____ptr64_const___ptr64]
mov r8d, eax
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x30]
call fcn.140006780
nop
lea r8, str.CoreUser_
lea rdx, [rbp - 0x38]
mov rcx, rax
call fcn.140006760
nop
lea rcx, [rsp + 0x70]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
mov rdx, rdi
lea rcx, [rbp - 0x38]
call qword [sym.imp.ac1st22.dll_public:_class_AcString____ptr64___cdecl_AcString::append_class_AcString_const____ptr64____ptr64]
lea r8, [rbp - 0x38]
lea rcx, [rbp - 0x60]
call fcn.140006730
nop
mov rdx, rax
lea rcx, [rbp - 0x38]
call qword [sym.imp.ac1st22.dll_public:_class_AcString____ptr64___cdecl_AcString::operator_class_AcString____ptr64____ptr64]
nop
lea rcx, [rbp - 0x60]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
test bl, bl
je 0x1400053f2
xor r12d, r12d
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x40], r12
call fcn.140005ab0
mov qword [rbp - 0x48], rax
mov r8d, 0x7ff
lea rdx, [rbp + 0xd00]
lea ecx, [r12 + 8]
call qword [sym.imp.UserData.dll_unsigned_int___cdecl_acudGetSpecialFolder_enum_AcUdSpecialFolder::Folders__wchar_t____ptr64__unsigned_long_long_unsigned___int64__]
test eax, eax
jne 0x140004dce
lea rcx, str.ERROR:_Cant_determine_local_root_folder._n
call fcn.1400100c0
nop
mov rdi, qword [rbp - 0x48]
mov r14, qword [rdi + 8]
mov rsi, r14
cmp byte [r14 + 0x19], r12b
jne 0x140004d9a
nop dword [rax]
nop dword [rax + rax]
mov rdx, qword [rsi + 0x10]
lea rcx, [rbp - 0x48]
call fcn.140005bc0
mov rsi, qword [rsi]
lea rcx, [r14 + 0x28]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
lea rcx, [r14 + 0x20]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
mov rcx, r14
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonUndo::XElementButtonUndo]
mov r14, rsi
cmp byte [rsi + 0x19], 0
je 0x140004d60
mov rdi, qword [rbp - 0x48]
mov qword [rdi + 8], rdi
mov rax, qword [rbp - 0x48]
mov qword [rax], rax
mov rax, qword [rbp - 0x48]
mov qword [rax + 0x10], rax
mov qword [rbp - 0x40], r12
mov rdi, qword [rbp - 0x48]
mov rcx, rdi
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonUndo::XElementButtonUndo]
nop
lea rcx, [rbp - 0x38]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
jmp 0x140004c64
mov dword [rbp - 0x28], 0x5c
lea rdx, [rbp - 0x28]
mov rcx, r15
call qword [sym.imp.ac1st22.dll_public:_int___cdecl_AcString::findOneOfRev_wchar_t_const____ptr64_const___ptr64]
mov ebx, eax
mov rcx, r15
call qword [sym.imp.ac1st22.dll_public:_unsigned_int___cdecl_AcString::length_void_const___ptr64]
dec eax
cmp ebx, eax
je 0x140004e07
mov dword [rbp - 0x28], 0x5c
lea rdx, [rbp - 0x28]
mov rcx, r15
call qword [sym.imp.ac1st22.dll_public:_class_AcString____ptr64___cdecl_AcString::append_wchar_t_const____ptr64____ptr64]
lea r8, str.Local_
lea rdx, [rbp - 0x28]
mov rcx, r15
call fcn.140006760
nop
mov r8, rax
lea rdx, [rbp + 0xd00]
lea rcx, [rsp + 0x50]
call fcn.140005c30
nop
mov rdx, rax
lea rcx, [rbp - 0x48]
call fcn.140005c90
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x48]
call fcn.140005d00
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x28]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
mov r8d, 0x7ff
lea rdx, [rbp + 0xd00]
mov ecx, 6
call qword [sym.imp.UserData.dll_unsigned_int___cdecl_acudGetSpecialFolder_enum_AcUdSpecialFolder::Folders__wchar_t____ptr64__unsigned_long_long_unsigned___int64__]
test eax, eax
jne 0x140004f26
lea rcx, str.ERROR:_Cant_determine_roaming_root_folder._n
call fcn.1400100c0
nop
mov rdi, qword [rbp - 0x48]
mov r14, qword [rdi + 8]
mov rsi, r14
cmp byte [r14 + 0x19], 0
jne 0x140004eea
nop dword [rax]
mov rdx, qword [rsi + 0x10]
lea rcx, [rbp - 0x48]
call fcn.140005bc0
mov rsi, qword [rsi]
lea rcx, [r14 + 0x28]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
lea rcx, [r14 + 0x20]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
mov rcx, r14
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonUndo::XElementButtonUndo]
mov r14, rsi
cmp byte [rsi + 0x19], 0
je 0x140004eb0
mov rdi, qword [rbp - 0x48]
mov qword [rdi + 8], rdi
mov rax, qword [rbp - 0x48]
mov qword [rax], rax
mov rax, qword [rbp - 0x48]
mov qword [rax + 0x10], rax
mov qword [rbp - 0x40], r12
mov rdi, qword [rbp - 0x48]
mov edx, 1
lea r8d, [rdx + 0x2f]
mov rcx, rdi
call fcn.1400068b0
nop
lea rcx, [rbp - 0x38]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
jmp 0x140004c64
lea r8, str.Roaming_
lea rdx, [rbp - 0x28]
mov rcx, r15
call fcn.140006760
nop
mov r8, rax
lea rdx, [rbp + 0xd00]
lea rcx, [rsp + 0x50]
call fcn.140005c30
nop
mov rdx, rax
lea rcx, [rbp - 0x48]
call fcn.140005c90
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x48]
call fcn.140005d00
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x28]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
mov rcx, qword [rbp - 0x48]
mov rax, qword [rcx]
mov qword [rbp - 0x28], rax
cmp rax, rcx
je 0x140004fc4
nop dword [rax]
lea rcx, [rax + 0x20]
lea rdx, [rcx + 8]
call fcn.140004a20
test al, al
je 0x140004ffa
lea rcx, [rbp - 0x28]
call fcn.140005490
mov rax, qword [rbp - 0x28]
cmp rax, qword [rbp - 0x48]
jne 0x140004fa0
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp + 0xf0]
mov rcx, 0xffffffff80000001
call fcn.140026410
test eax, eax
je 0x140005033
lea rcx, str.ERROR:_Cant_open_Acad_root_registry_key._n
call fcn.1400100c0
nop
mov r8, qword [rbp - 0x48]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x48]
call fcn.1400054f0
mov edx, 1
lea r8d, [rdx + 0x2f]
mov rcx, qword [rbp - 0x48]
call fcn.1400068b0
nop
lea rcx, [rbp - 0x38]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
jmp 0x140004c64
xor eax, eax
mov qword [rbp - 0x20], rax
lea r8, str.Temp_
lea rdx, [rbp - 0x20]
mov rcx, r15
call fcn.140006760
nop
lea rcx, [rbp - 0x20]
call qword [sym.imp.ac1st22.dll_public:_wchar_t_const____ptr64___cdecl_AcString::kwszPtr_void_const___ptr64]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmkdir]
lea rcx, [rbp - 0x20]
call qword [sym.imp.ac1st22.dll_public:_wchar_t_const____ptr64___cdecl_AcString::kwszPtr_void_const___ptr64]
mov rdx, rax
lea rcx, [0x14002bc50]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wputenv_s]
lea rax, [rbp - 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.Profiles
mov rcx, qword [rbp - 0x68]
call fcn.140026410
test eax, eax
je 0x1400050be
mov edx, eax
lea rcx, str.ERROR:_Cant_open_profiles_key___d_._n
call fcn.1400100c0
nop
lea rcx, [rbp - 0x20]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
jmp 0x140004ffa
mov dword [rbp - 0x18], 0x100
lea rax, [rbp - 0x18]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14002c964]
mov rcx, qword [rbp - 0x58]
call fcn.140026510
test eax, eax
je 0x140005116
lea rcx, str.ERROR:_Cant_determine_current_profile._n
call fcn.1400100c0
mov rcx, qword [rbp - 0x58]
call sub.ADVAPI32.dll_RegCloseKey
nop
lea rcx, [rbp - 0x20]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
jmp 0x140004ffa
mov rcx, qword [rbp - 0x58]
call sub.ADVAPI32.dll_RegCloseKey
lea r9, [rbp - 0x10]
lea r8, str.Profiles_sGeneral_Configuration
mov edx, 0x800
lea rcx, [rbp + 0x500]
call fcn.1400031a0
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp + 0x500]
mov rcx, qword [rbp - 0x68]
call fcn.140026410
test eax, eax
je 0x140005184
lea rdx, [rbp + 0x500]
lea rcx, str.ERROR:_Cant_find__s_registry_key_n
call fcn.1400100c0
nop
lea rcx, [rbp - 0x20]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
jmp 0x140004ffa
mov dword [rbp - 0x14], 0x208
lea rax, [rbp - 0x14]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x2f0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.TempDirectory
mov rcx, qword [rbp - 0x50]
call fcn.140026510
test eax, eax
je 0x1400051d6
lea rcx, str.ERROR:_Cant_find_TempDirectory_registry_value__1_._n
call fcn.1400100c0
nop
lea rcx, [rbp - 0x20]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
jmp 0x140004ffa
mov rcx, qword [rbp - 0x50]
call sub.ADVAPI32.dll_RegCloseKey
lea r8, [rbp - 0x20]
lea rdx, [rbp + 0x2f0]
lea rcx, [rsp + 0x50]
call fcn.140005c60
nop
mov rdx, rax
lea rcx, [rbp - 0x48]
call fcn.140005c90
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x48]
call fcn.140005d00
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
mov qword [rbp - 0x28], r12
lea r9, [rbp - 0x28]
xor r8d, r8d
xor edx, edx
lea rcx, [0x14002a218]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jns 0x14000525e
lea rcx, str.ERROR:_Cant_determine_Documents_folder._n
call fcn.1400100c0
nop
lea rcx, [rbp - 0x20]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
jmp 0x140004ffa
mov r8, qword [rbp - 0x28]
mov edx, 0x7ff
lea rcx, [rbp + 0xd00]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, [0x14002c960]
mov edx, 0x7ff
lea rcx, [rbp + 0xd00]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea r8, str.Documents_
lea rdx, [rsp + 0x50]
mov rcx, r15
call fcn.140006760
nop
mov r8, rax
lea rdx, [rbp + 0xd00]
lea rcx, [rsp + 0x60]
call fcn.140005c30
nop
mov rdx, rax
lea rcx, [rbp - 0x48]
call fcn.140005c90
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x48]
call fcn.140005d00
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
lea rcx, [rbp - 0x38]
call qword [sym.imp.ac1st22.dll_public:_wchar_t_const____ptr64___cdecl_AcString::kwszPtr_void_const___ptr64]
mov qword [rsp + 0x40], r12
lea rdx, [rbp - 0x60]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000001
call fcn.1400262e0
mov ebx, eax
test eax, eax
je 0x14000536c
lea rcx, [rbp - 0x38]
call qword [sym.imp.ac1st22.dll_public:_wchar_t_const____ptr64___cdecl_AcString::kwszPtr_void_const___ptr64]
mov rdx, rax
mov r8d, ebx
lea rcx, str.ERROR:_Cant_open_create_CoreUser_root_registry_key__key:__s____d_._n
call fcn.1400100c0
nop
lea rcx, [rbp - 0x20]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
jmp 0x140004ffa
lea r8, [rbp - 0x48]
mov rdx, qword [rbp - 0x68]
mov rcx, qword [rbp - 0x60]
call fcn.140004670
test eax, eax
je 0x14000539d
lea rcx, str.ERROR:_Cant_isolate_Acad_registry_keys___d_._n
call fcn.1400100c0
nop
lea rcx, [rbp - 0x20]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
jmp 0x140004ffa
lea rdx, [rbp - 0x38]
mov rcx, rsi
call qword [sym.imp.ac1st22.dll_public:_class_AcString____ptr64___cdecl_AcString::assign_class_AcString_const____ptr64____ptr64]
mov rcx, qword [rbp - 0x60]
call sub.ADVAPI32.dll_RegCloseKey
mov rcx, qword [rbp - 0x68]
call sub.ADVAPI32.dll_RegCloseKey
nop
lea rcx, [rbp - 0x20]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
nop
mov r8, qword [rbp - 0x48]
mov r9, r8
mov r8, qword [r8]
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x48]
call fcn.1400054f0
mov edx, 1
lea r8d, [rdx + 0x2f]
mov rcx, qword [rbp - 0x48]
call fcn.1400068b0
lea rcx, [rbp - 0x38]
call qword [sym.imp.ac1st22.dll_public:_wchar_t_const____ptr64___cdecl_AcString::kwszPtr_void_const___ptr64]
mov rcx, rax
call qword [sym.imp.UserData.dll_acudSetUserProductRegistryRootKey]
nop
lea rcx, [rbp - 0x38]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x30]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
nop
mov rcx, r15
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
mov al, 1
mov rcx, qword [rbp + 0x1d00]
xor rcx, rsp
call fcn.140024e80
add rsp, 0x1e10
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret