Function at 0x1400297bc
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0xc8]
sub rsp, 0x1b0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14009b3d0]
xor rax, rsp
mov qword [rbp + 0xa0], rax
mov r14, rdx
mov rsi, rcx
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140.dll_Ordinal_316]
nop
lea rdx, [rbp - 0x70]
mov ebx, Ordinal_262
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
dec eax
cmp byte [rbp + rax - 0x70], 0x5c
je 0x140029832
lea r8, [0x14006f88c]
mov edx, ebx
lea rcx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc140.dll_Ordinal_310]
nop
lea r8, str.ITProfiles.enc
mov rdx, rbx
lea rcx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [rdi + 1]
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400298d5
lea rdx, str.Failed_to_create_temprary_ITProfile.enc_
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140.dll_Ordinal_4648]
mov byte [rsp + 0x30], dil
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov r9, qword [rsp + 0x48]
lea edx, [rdi + 0x41]
mov r8d, 0x800436f1
mov ecx, dword [0x1400a3b30]
call qword [sym.imp.TraceAPI.DLL_EvTraceString]
lea rdx, [rsp + 0x48]
mov rcx, rsi
call fcn.14002bce0
jmp 0x140029a04
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x50]
mov r8d, dword [r14 + 0x40]
mov rdx, qword [r14 + 0x38]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r14d, eax
mov rcx, rbx
test eax, eax
je 0x1400299f1
mov r14d, edi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, str.ITDBTemp.enc
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x58]
call fcn.1400139d8
nop
lea rcx, [rsp + 0x40]
call fcn.140038ffc
nop
lea rax, [rsp + 0x70]
mov qword [rbp - 0x80], rax
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc140.dll_Ordinal_300]
mov rbx, rax
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc140.dll_Ordinal_310]
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140039004
mov qword [rsp + 0x20], rdi
mov r9d, 1
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call sub.PfMgrApi.dll_Ordinal_50
mov ebx, 0x43297
cmp eax, ebx
jne 0x1400299d9
mov edx, 1
lea rcx, [rbp - 0x70]
call sub.PfMgrApi.dll_Ordinal_20
cmp eax, ebx
jne 0x1400299b4
mov rdx, qword [rsi + 0x10]
test rdx, rdx
je 0x1400299d3
mov rcx, rsi
call fcn.1400289e4
mov r14d, 1
jmp 0x1400299d3
lea rdx, str.Failed_to_import_IT_profile.
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140.dll_Ordinal_4648]
lea rdx, [rsp + 0x48]
mov rcx, rsi
call fcn.14002bce0
call sub.PfMgrApi.dll_Ordinal_52
nop
lea rcx, [rsp + 0x40]
call fcn.140039000
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
jmp 0x1400299f7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, r14d
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc140.dll_Ordinal_1032]
mov eax, edi
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.14005d930
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret