Function at 0x14006a900
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.140136960
mov rcx, rbx
call fcn.140067e00
cmp qword [0x1401e5bf8], rdi
mov rbp, rax
mov qword [rsp + 0x48], rax
jne 0x14006a9a6
lea rcx, str.Wimgapi
call fcn.140067bf0
mov rcx, rax
lea rdx, str.WIMCreateFile
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401e5bf8], rax
test rax, rax
jne 0x14006a9a6
call fcn.140050120
mov r9, rax
lea r8, str.Wimgapi
lea rdx, str.WIMCreateFile
lea rcx, str.Unable_to_locate__s___in__s.dll:__s
call fcn.14004f910
jmp 0x14006adda
cmp qword [0x1401e5ce0], rdi
jne 0x14006a9fe
lea rcx, str.Wimgapi
call fcn.140067bf0
mov rcx, rax
lea rdx, str.WIMGetImageInformation
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401e5ce0], rax
test rax, rax
jne 0x14006a9fe
call fcn.140050120
mov r9, rax
lea r8, str.Wimgapi
lea rdx, str.WIMGetImageInformation
lea rcx, str.Unable_to_locate__s___in__s.dll:__s
call fcn.14004f910
jmp 0x14006adda
cmp qword [0x1401e5d10], rdi
jne 0x14006aa56
lea rcx, str.Wimgapi
call fcn.140067bf0
mov rcx, rax
lea rdx, str.WIMCloseHandle
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401e5d10], rax
test rax, rax
jne 0x14006aa56
call fcn.140050120
mov r9, rax
lea r8, str.Wimgapi
lea rdx, str.WIMCloseHandle
lea rcx, str.Unable_to_locate__s___in__s.dll:__s
call fcn.14004f910
jmp 0x14006adda
cmp dword [0x1401e8fc8], 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 [0x1401e5bf8]
mov rbp, rax
test rax, rax
jne 0x14006aaaa
call fcn.140050120
mov rdx, rax
lea rcx, str.__Could_not_access_image:__s
call fcn.14004f910
jmp 0x14006add5
lea r8, [rsp + 0x40]
mov rcx, rbp
lea rdx, [rsp + 0x50]
call qword [0x1401e5ce0]
test eax, eax
je 0x14006adb8
cmp dword [rsp + 0x40], edi
je 0x14006adb8
mov qword [rsp + 0x1b8], r12
lea rcx, [0x1401e84c0]
mov qword [rsp + 0x1c0], r13
mov qword [rsp + 0x1c8], r14
mov qword [rsp + 0x180], r15
call fcn.140067e00
cmp byte [0x1401569ec], dil
mov r12, rax
jne 0x14006ab19
mov edx, 2
mov rcx, rsi
call fcn.1400c537c
mov rbx, rax
jmp 0x14006ab8d
mov dword [rsp + 0x28], edi
lea r8, [0x1401569ec]
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 0x14006ab8a
mov rcx, r14
mov edx, 2
call fcn.1400c537c
mov rbx, rax
test rax, rax
je 0x14006ab8a
mov dword [rsp + 0x28], r14d
lea r8, [0x1401569ec]
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 0x14006ab8d
mov rcx, rbx
call fcn.1400e9080
mov rbx, rdi
mov edx, 2
mov ecx, 0x104
call fcn.1400c537c
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 0x14006ac04
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 0x14006ac04
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13d, eax
test r14, r14
je 0x14006ac11
mov rcx, r14
call fcn.1400e9080
test rbx, rbx
je 0x14006ac1e
mov rcx, rbx
call fcn.1400e9080
test r12, r12
je 0x14006ac2b
mov rcx, r12
call fcn.1400e9080
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r13, qword [rsp + 0x1c0]
mov r12, qword [rsp + 0x1b8]
test r15d, r15d
je 0x14006ac50
cmp byte [rsp + 0x60], dil
jne 0x14006ac79
mov eax, dword [0x140172158]
movsd xmm0, qword [str..RufVXml.tmp]
mov dword [rsp + 0x68], eax
movzx eax, word [0x14017215c]
mov word [rsp + 0x6c], ax
mov byte [rsp + 0x6d], dil
movsd qword [rsp + 0x60], xmm0
lea rcx, [rsp + 0x60]
call fcn.140067e00
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 0x14006aca5
mov rcx, rbx
call fcn.1400e9080
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsp + 0x60]
call fcn.140067e00
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 0x14006acfd
mov rcx, r14
call fcn.1400e9080
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r15, qword [rsp + 0x180]
mov r14, qword [rsp + 0x1c8]
cmp rbx, 0xffffffffffffffff
je 0x14006ad99
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 0x14006ad99
mov r8d, esi
lea rdx, [rsp + 0x60]
lea rcx, str.IMAGE_INDEX
call fcn.140026d90
test rax, rax
je 0x14006ad99
mov rcx, rax
call fcn.140108ec0
cmp eax, 2
je 0x14006ad89
inc esi
lea rdx, [rsp + 0x60]
mov r8d, esi
lea rcx, str.IMAGE_INDEX
call fcn.140026d90
test rax, rax
jne 0x14006ad56
mov rcx, rbp
call qword [0x1401e5d10]
jmp 0x14006ada8
mov rcx, rbp
mov edi, 1
call qword [0x1401e5d10]
jmp 0x14006ada8
mov rcx, rbp
call qword [0x1401e5d10]
cmp rbx, 0xffffffffffffffff
je 0x14006add5
test rbx, rbx
je 0x14006add5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14006add5
call fcn.140050120
mov rdx, rax
lea rcx, str.__Could_not_access_WIM_info:__s
call fcn.14004f910
mov rcx, rbp
call qword [0x1401e5d10]
mov rbp, qword [rsp + 0x48]
cmp byte [rsp + 0x60], 0
je 0x14006ae14
lea rcx, [rsp + 0x60]
call fcn.140067e00
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 0x14006ae0c
mov rcx, rbx
call fcn.1400e9080
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rbp
call fcn.1400e9080
mov eax, edi
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1400b1f80
add rsp, 0x188
pop rdi
pop rsi
pop rbp
pop rbx
ret