Function at 0x140058dc0
Capabilities:
Get common file path

Disassembly:
push r14
mov eax, 0x18b0
call fcn.14005dd10
sub rsp, rax
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x18c8], rbx
mov qword [rsp + 0x18d0], rsi
mov qword [rsp + 0x18d8], rdi
mov rax, qword [0x14009b3d0]
xor rax, rsp
mov qword [rsp + 0x18a0], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor esi, esi
mov dword [rsp + 0x40], esi
or edx, 0xffffffff
mov rcx, qword [rcx + 0x48]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140.dll_Ordinal_316]
nop
lea rdx, [rsp + 0x1790]
mov ecx, Ordinal_262
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
dec eax
cmp byte [rsp + rax + 0x1790], 0x5c
je 0x140058e67
or r9, 0xffffffffffffffff
lea r8, [0x14006f88c]
mov edx, Ordinal_262
lea rcx, [rsp + 0x1790]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcat_s]
lea rdx, [rsp + 0x1790]
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140.dll_Ordinal_1507]
lea r8, [0x14006f3e4]
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.14004e930
test eax, eax
je 0x14005903c
mov r8d, 0x1012
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x50]
call sub.mfc140.dll_Ordinal_486
nop
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x50]
mov rax, qword [rsp + 0x50]
call qword [rax + 0x68]
mov r8d, dword [rdi + 0x40]
mov rdx, qword [rdi + 0x38]
lea rcx, [rsp + 0x50]
call sub.mfc140.dll_Ordinal_14146
lea rcx, [rsp + 0x50]
call sub.mfc140.dll_Ordinal_2796
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x80]
call qword [sym.imp.PfMgrApi.dll_public:_void___cdecl_CITProfileDbController::constructor_class_CEvTraceLogger____ptr64__char_const____ptr64____ptr64]
nop
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x80]
call qword [sym.imp.PfMgrApi.dll_public:_long_int___cdecl_CITProfileDbController::ItAdminToolImportDb_char_const____ptr64____ptr64]
cmp eax, 0x43297
je 0x140058f6c
mov rcx, qword [rdi + 0x48]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea rdx, str.Save_IT_files__ItAdminToolImportDb_failed_
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140.dll_Ordinal_310]
nop
lea rdx, [rsp + 0x40]
mov rcx, qword [rdi + 0x20]
call fcn.14004e7f0
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
nop
lea rcx, [rsp + 0x80]
call qword [sym.imp.PfMgrApi.dll_public_virtual:_void___cdecl_CITProfileDbController::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x50]
call fcn.14005c4cc
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
xor eax, eax
jmp 0x14005907b
lea rcx, [rdi + 0x18]
call qword [sym.imp.mfc140.dll_Ordinal_5691]
mov rdx, rax
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140.dll_Ordinal_305]
mov r14, rax
mov dword [rsp + 0x40], 1
mov r9, qword [rdi + 0x10]
mov ecx, dword [r9 - 0x10]
mov rdx, qword [rdi + 0x18]
mov dword [rsp + 0x20], ecx
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140.dll_Ordinal_2917]
mov rdx, qword [r14]
lea rcx, [rsp + 0x80]
call qword [sym.imp.PfMgrApi.dll_public:_long_int___cdecl_CITProfileDbController::ItAdminToolExportDb_char_const____ptr64____ptr64]
mov ebx, eax
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
cmp ebx, 0x43297
je 0x140059003
lea rdx, str.Save_IT_files__ItAdminToolExportDb_failed_
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140.dll_Ordinal_310]
nop
lea rdx, [rsp + 0x30]
mov rcx, qword [rdi + 0x20]
call fcn.14004e7f0
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
jmp 0x140059008
mov esi, 1
mov rcx, qword [rdi + 0x48]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
nop
lea rcx, [rsp + 0x80]
call qword [sym.imp.PfMgrApi.dll_public_virtual:_void___cdecl_CITProfileDbController::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x50]
call fcn.14005c4cc
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
mov eax, esi
jmp 0x14005907b
lea rdx, str.Save_IT_files__CreateGUIDFile_failed_
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140.dll_Ordinal_310]
nop
lea rdx, [rsp + 0x30]
mov rcx, qword [rdi + 0x20]
call fcn.14004e7f0
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
xor eax, eax
jmp 0x14005907b
mov rcx, qword [rsp + 0x18a0]
xor rcx, rsp
call fcn.14005d930
lea r11, [rsp + 0x18b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret