Function at 0x1400e5190
Capabilities:
Create directory
Delete file
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rsp + 0xc0], rbx
mov rax, qword [0x140324030]
xor rax, rsp
mov qword [rbp - 8], rax
movzx ebx, dx
mov rdi, rcx
cmp dx, 2
jb 0x1400e51d1
mov ebx, 1
lea rdx, str.C:PARMI_veri_db_proc
lea rcx, [rbp - 0x30]
call qword [sym.imp.mfc110u.dll_Ordinal_286]
nop
lea rdx, str.VeriDbProc.csv
lea rcx, [rbp - 0x10]
call qword [sym.imp.mfc110u.dll_Ordinal_286]
nop
lea rcx, [rbp - 0x20]
call qword [sym.imp.mfc110u.dll_Ordinal_296]
nop
cmp bx, 1
jne 0x1400e5217
lea rdx, str.VeriDbProc2ndModel.csv
lea rcx, [rbp - 0x10]
call qword [sym.imp.mfc110u.dll_Ordinal_1494]
xor edx, edx
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.MSVCR110.dll__waccess_s]
test eax, eax
je 0x1400e5236
xor r8d, r8d
mov rdx, qword [rbp - 0x30]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea r8, [rbp - 0x10]
lea rdx, [0x140223734]
lea rcx, [rbp - 0x28]
call fcn.14005aa40
nop
mov rdx, rax
lea rcx, [rbp - 0x30]
call qword [sym.imp.mfc110u.dll_Ordinal_1658]
nop
lea rcx, [rbp - 0x28]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
movzx eax, bx
lea rcx, [rax + rax*2]
lea rsi, [rdi + rcx*8]
mov rcx, qword [rsi + 0x3210]
sub rcx, qword [rsi + 0x3208]
movabs r15, 0x6666666666666667
mov rax, r15
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
jne 0x1400e52f2
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rbp - 0x38]
call qword [sym.imp.mfc110u.dll_Ordinal_296]
nop
movzx r9d, bx
mov r8, qword [rbp - 0x30]
lea rdx, str.SaveDBProcDataToFile__DELETE_DB_Proc._backup_file__s___UiIndex:_d_
lea rcx, [rbp - 0x38]
call qword [sym.imp.mfc110u.dll_Ordinal_4595]
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x50]
call qword [sym.imp.mfc110u.dll_Ordinal_280]
mov rdx, rax
lea rcx, [0x14034efc0]
call qword [sym.imp.LogMsgInterface.dll_public:_void___cdecl_CLogMsgInterface::writeLogData_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_______ptr64]
nop
lea rcx, [rbp - 0x38]
jmp 0x1400e548e
xor edi, edi
test rdx, rdx
je 0x1400e53bf
mov r14d, edi
lea rcx, [rbp - 0x38]
call qword [sym.imp.mfc110u.dll_Ordinal_296]
nop
lea rdx, [0x1402528e8]
lea rcx, [rbp - 0x48]
call qword [sym.imp.mfc110u.dll_Ordinal_286]
lea rdx, [r14*4 + 1]
mov rcx, qword [rsi + 0x3208]
add rdx, r14
lea rdx, [rcx + rdx*8]
mov r8, rax
lea rcx, [rbp - 0x50]
call fcn.1401d1a80
nop
lea r8, [0x1402528e8]
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.14003a710
nop
mov rdx, rax
lea rcx, [rbp - 0x38]
call qword [sym.imp.mfc110u.dll_Ordinal_1492]
nop
lea rcx, [rbp - 0x28]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
nop
lea rcx, [rbp - 0x50]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x20]
call qword [sym.imp.mfc110u.dll_Ordinal_1658]
nop
lea rcx, [rbp - 0x38]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
inc edi
movsxd r14, edi
mov rcx, qword [rsi + 0x3210]
sub rcx, qword [rsi + 0x3208]
mov rax, r15
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r14, rdx
jb 0x1400e5300
lea rcx, [rbp - 0x18]
call qword [sym.imp.mfc110u.dll_Ordinal_296]
nop
mov rax, qword [rbp - 0x20]
mov ecx, dword [rax - 0x10]
movzx r8d, bx
mov dword [rsp + 0x20], ecx
mov r9, qword [rbp - 0x30]
lea rdx, str.SaveDBProcDataToFile__DB_Proc._backup_file_UiIndex:_d___s__size:_ld_
lea rcx, [rbp - 0x18]
call qword [sym.imp.mfc110u.dll_Ordinal_4595]
lea rdx, [rbp - 0x18]
lea rcx, [rbp - 0x48]
call qword [sym.imp.mfc110u.dll_Ordinal_280]
mov rdx, rax
lea rcx, [0x14034efc0]
call qword [sym.imp.LogMsgInterface.dll_public:_void___cdecl_CLogMsgInterface::writeLogData_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_______ptr64]
mov rdx, qword [rbp - 0x30]
lea rcx, [rbp - 0x28]
call qword [sym.imp.mfc110u.dll_Ordinal_306]
nop
mov rdx, qword [rbp - 0x20]
lea rcx, [rbp - 0x38]
call qword [sym.imp.mfc110u.dll_Ordinal_306]
nop
lea rdx, [0x14026a5b0]
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.MSVCR110.dll_fopen]
mov rdi, rax
test rax, rax
je 0x1400e5474
mov rcx, qword [rbp - 0x38]
movsxd rbx, dword [rcx - 0x10]
lea rcx, [rbp - 0x38]
call qword [sym.imp.mfc110u.dll_Ordinal_4831]
mov rcx, rax
mov r9, rdi
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.MSVCR110.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.MSVCR110.dll_fclose]
nop
lea rcx, [rbp - 0x38]
call qword [sym.imp.mfc110u.dll_Ordinal_1028]
nop
lea rcx, [rbp - 0x28]
call qword [sym.imp.mfc110u.dll_Ordinal_1028]
nop
lea rcx, [rbp - 0x18]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
nop
lea rcx, [rbp - 0x20]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
nop
lea rcx, [rbp - 0x10]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
nop
lea rcx, [rbp - 0x30]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
mov al, 1
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1401e3980
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret