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

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x188
mov rax, qword [0x140193440]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rbx, rcx
xor edi, edi
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x40], edi
xor edx, edx
mov r8d, 0x104
mov esi, 1
call fcn.140136540
mov rcx, rbx
call fcn.140067550
cmp qword [0x1401e5b98], rdi
mov rbp, rax
mov qword [rsp + 0x48], rax
jne 0x14006a09f
call fcn.140067350
mov rcx, rax
lea rdx, str.WIMCreateFile
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401e5b98], rax
test rax, rax
jne 0x14006a09f
call fcn.14004fba0
mov r9, rax
lea r8, str.Wimgapi
lea rdx, str.WIMCreateFile
lea rcx, str.Unable_to_locate__s___in__s.dll:__s
call fcn.14004f2f0
jmp 0x14006a4c9
cmp qword [0x1401e5c60], rdi
jne 0x14006a0f0
call fcn.140067350
mov rcx, rax
lea rdx, str.WIMGetImageInformation
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401e5c60], rax
test rax, rax
jne 0x14006a0f0
call fcn.14004fba0
mov r9, rax
lea r8, str.Wimgapi
lea rdx, str.WIMGetImageInformation
lea rcx, str.Unable_to_locate__s___in__s.dll:__s
call fcn.14004f2f0
jmp 0x14006a4c9
cmp qword [0x1401e5c90], rdi
jne 0x14006a141
call fcn.140067350
mov rcx, rax
lea rdx, str.WIMCloseHandle
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401e5c90], rax
test rax, rax
jne 0x14006a141
call fcn.14004fba0
mov r9, rax
lea r8, str.Wimgapi
lea rdx, str.WIMCloseHandle
lea rcx, str.Unable_to_locate__s___in__s.dll:__s
call fcn.14004f2f0
jmp 0x14006a4c9
cmp dword [0x1401e8f48], 0xe0000
mov r9d, edi
mov eax, 0x20000000
mov qword [rsp + 0x28], rdi
cmovae r9d, eax
mov dword [rsp + 0x20], edi
mov edx, 0x80000000
mov r8d, 3
mov rcx, rbp
call qword [0x1401e5b98]
mov rbp, rax
test rax, rax
jne 0x14006a195
call fcn.14004fba0
mov rdx, rax
lea rcx, str.__Could_not_access_image:__s
call fcn.14004f2f0
jmp 0x14006a4c4
lea r8, [rsp + 0x40]
mov rcx, rbp
lea rdx, [rsp + 0x50]
call qword [0x1401e5c60]
test eax, eax
je 0x14006a4a7
cmp dword [rsp + 0x40], edi
je 0x14006a4a7
mov qword [rsp + 0x1b8], r12
lea rcx, [0x1401e8440]
mov qword [rsp + 0x1c0], r13
mov qword [rsp + 0x1c8], r14
mov qword [rsp + 0x180], r15
call fcn.140067550
cmp byte [0x140156a6c], dil
mov r12, rax
jne 0x14006a204
mov edx, 2
mov rcx, rsi
call fcn.1400c4f6c
mov rbx, rax
jmp 0x14006a278
mov dword [rsp + 0x28], edi
lea r8, [0x140156a6c]
mov r9d, 0xffffffff
mov qword [rsp + 0x20], rdi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd r14, eax
cmp r14d, esi
jle 0x14006a275
mov rcx, r14
mov edx, 2
call fcn.1400c4f6c
mov rbx, rax
test rax, rax
je 0x14006a275
mov dword [rsp + 0x28], r14d
lea r8, [0x140156a6c]
mov r9d, 0xffffffff
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, r14d
je 0x14006a278
mov rcx, rbx
call fcn.1400e8c70
mov rbx, rdi
mov edx, 2
mov ecx, 0x104
call fcn.1400c4f6c
mov r9, rax
xor r8d, r8d
mov rdx, rbx
mov rcx, r12
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13d, eax
test r15d, r15d
je 0x14006a2ef
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rdi
mov r9d, 0xffffffff
mov dword [rsp + 0x28], 0x104
mov r8, r14
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r15d, eax
test eax, eax
jne 0x14006a2ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13d, eax
test r14, r14
je 0x14006a2fc
mov rcx, r14
call fcn.1400e8c70
test rbx, rbx
je 0x14006a309
mov rcx, rbx
call fcn.1400e8c70
test r12, r12
je 0x14006a316
mov rcx, r12
call fcn.1400e8c70
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r13, qword [rsp + 0x1c0]
mov r12, qword [rsp + 0x1b8]
test r15d, r15d
je 0x14006a33b
cmp byte [rsp + 0x60], dil
jne 0x14006a364
mov eax, dword [0x140172238]
movsd xmm0, qword [str..RufVXml.tmp]
mov dword [rsp + 0x68], eax
movzx eax, word [0x14017223c]
mov word [rsp + 0x6c], ax
mov byte [rsp + 0x6d], dil
movsd qword [rsp + 0x60], xmm0
lea rcx, [rsp + 0x60]
call fcn.140067550
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
test rbx, rbx
je 0x14006a390
mov rcx, rbx
call fcn.1400e8c70
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsp + 0x60]
call fcn.140067550
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0xc0000000
mov r8d, esi
mov dword [rsp + 0x20], 2
mov rcx, rax
mov r14, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
test r14, r14
je 0x14006a3e8
mov rcx, r14
call fcn.1400e8c70
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r15, qword [rsp + 0x180]
mov r14, qword [rsp + 0x1c8]
cmp rbx, 0xffffffffffffffff
je 0x14006a488
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, qword [rsp + 0x50]
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14006a488
mov r8d, esi
lea rdx, [rsp + 0x60]
lea rcx, str.IMAGE_INDEX
call fcn.140026e40
test rax, rax
je 0x14006a488
mov rcx, rax
call fcn.140108ab0
cmp eax, 2
je 0x14006a478
inc esi
lea rdx, [rsp + 0x60]
mov r8d, esi
lea rcx, str.IMAGE_INDEX
call fcn.140026e40
test rax, rax
jne 0x14006a445
mov rcx, rbp
call qword [0x1401e5c90]
jmp 0x14006a497
mov rcx, rbp
mov edi, 1
call qword [0x1401e5c90]
jmp 0x14006a497
mov rcx, rbp
call qword [0x1401e5c90]
cmp rbx, 0xffffffffffffffff
je 0x14006a4c4
test rbx, rbx
je 0x14006a4c4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14006a4c4
call fcn.14004fba0
mov rdx, rax
lea rcx, str.__Could_not_access_WIM_info:__s
call fcn.14004f2f0
mov rcx, rbp
call qword [0x1401e5c90]
mov rbp, qword [rsp + 0x48]
cmp byte [rsp + 0x60], 0
je 0x14006a503
lea rcx, [rsp + 0x60]
call fcn.140067550
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test rbx, rbx
je 0x14006a4fb
mov rcx, rbx
call fcn.1400e8c70
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rbp
call fcn.1400e8c70
mov eax, edi
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1400b2a30
add rsp, 0x188
pop rdi
pop rsi
pop rbp
pop rbx
ret