Function at 0x14006e340
Capabilities:
Delete file

Disassembly:
push rbp
push r13
lea rbp, [rsp - 0x128]
sub rsp, 0x228
mov rax, qword [0x140193440]
xor rax, rsp
mov qword [rbp + 0x100], rax
xor edx, edx
mov byte [rsp + 0x70], 0
mov r8d, 0x103
lea rcx, [rsp + 0x71]
call fcn.140136960
xor r13d, r13d
mov dword [0x140196f9c], 0xffffffff
cmp dword [0x1401d0480], 0x62
mov dword [rsp + 0x40], r13d
mov dword [0x1401a0418], r13d
jb 0x14006ed05
xor ecx, ecx
call fcn.140068fe0
test al, 4
je 0x14006ed05
mov rcx, qword [0x1401e8830]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x147
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x1401e8830]
xor r9d, r9d
movsxd r8, eax
mov edx, 0x150
call qword [sym.imp.USER32.dll_SendMessageW]
cmp rax, 2
jne 0x14006ed05
movzx eax, byte [0x1401e8fd7]
mov qword [rsp + 0x248], rsi
lea rsi, [0x1401e8d02]
mov qword [rsp + 0x240], rbx
mov qword [rsp + 0x250], rdi
cmp al, 1
jbe 0x14006e57a
mov edi, eax
test al, al
je 0x14006e441
lea rax, [rsp + 0x50]
mov rcx, rsi
mov edx, edi
nop dword [rax + rax]
mov qword [rax], rcx
lea rax, [rax + 8]
add rcx, 0x40
sub rdx, 1
jne 0x14006e430
mov ecx, 0xc3b
call fcn.1400207e0
mov ecx, 0xc3a
mov rbx, rax
call fcn.1400207e0
inc dword [0x14019f580]
mov ecx, 0x68
mov qword [0x1401e4190], rax
lea rax, [rsp + 0x50]
mov qword [0x1401e4038], rbx
mov rbx, qword [0x1401e8a68]
mov qword [0x1401e51b8], rax
mov dword [0x1401e4030], edi
mov dword [0x1401e51a0], 9
mov dword [0x1401e3f68], 1
mov dword [0x1401e4198], 0xffffffff
call fcn.140059510
mov rcx, qword [0x1401e8a68]
mov edx, 1
mov rdi, rax
call qword [sym.imp.USER32.dll_ShowWindow]
test rdi, rdi
jne 0x14006e4e0
mov r8d, 0x737
lea rdx, str.D:_a_rufus_rufus_src_stdlg.c
lea rcx, str.rcTemplate___NULL
call fcn.1400fc264
mov rcx, qword [0x1401e8838]
lea r9, [0x140054620]
mov r8, rbx
mov qword [rsp + 0x20], r13
mov rdx, rdi
call qword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
mov rcx, rdi
mov rbx, rax
call fcn.1400e9080
dec dword [0x14019f580]
mov ecx, r13d
test ebx, ebx
jns 0x14006e523
mov dword [0x1401a0418], 0xfffffffe
jmp 0x14006e537
sar ebx, 1
je 0x14006e52d
inc ecx
sar ebx, 1
jne 0x14006e527
mov dword [0x1401a0418], ecx
test ecx, ecx
jns 0x14006e56e
mov eax, 0xfffffffe
mov rbx, qword [rsp + 0x240]
mov rdi, qword [rsp + 0x250]
mov rsi, qword [rsp + 0x248]
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.1400b1f80
add rsp, 0x228
pop r13
pop rbp
ret
cmp ecx, 4
jl 0x14006e57a
mov dword [0x1401a0418], r13d
cmp byte [0x1401e8fcf], r13b
jne 0x14006e5ea
mov rcx, qword [0x14019f508]
xor edx, edx
call fcn.14006b4b0
mov rcx, rax
test rax, rax
jne 0x14006e5ac
lea rcx, str.Could_not_mount_ISO_for_Windows_To_Go_selection
call fcn.14004f910
mov eax, 0xffffffff
jmp 0x14006e53c
movsxd rax, dword [0x1401a0418]
lea r9, [0x1401638d0]
shl rax, 6
mov edx, 0x80
add rax, rsi
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp + 0x80]
call fcn.140004960
mov byte [rbp + 0xff], r13b
lea r9, [rsp + 0x70]
call fcn.14006ca20
test eax, eax
je 0x14006e5ff
cmp byte [rsp + 0x70], r13b
jne 0x14006e628
mov eax, dword [0x140172158]
movsd xmm0, qword [str..RufVXml.tmp]
mov dword [rsp + 0x78], eax
movzx eax, word [0x14017215c]
mov word [rsp + 0x7c], ax
mov byte [rsp + 0x7d], r13b
movsd qword [rsp + 0x70], xmm0
lea rcx, [rsp + 0x70]
call fcn.14006c740
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test rbx, rbx
je 0x14006e653
mov rcx, rbx
call fcn.1400e9080
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [0x1401e8fcf], r13b
lea rcx, [rbp + 0x80]
lea r9, [rsp + 0x70]
mov dword [rsp + 0x20], r13d
cmovne rcx, qword [0x14019f508]
lea r8, str._1_.xml
xor edx, edx
call fcn.140069fc0
test eax, eax
jne 0x14006e69e
lea rcx, str.Could_not_acquire_WIM_index
call fcn.14004f910
jmp 0x14006ecb9
mov esi, 0x10
mov qword [rsp + 0x220], r12
mov qword [rsp + 0x218], r14
mov ecx, esi
mov qword [rsp + 0x210], r15
mov r15d, r13d
lea edx, [rsi - 8]
call fcn.1400c537c
mov r12, rax
test rax, rax
jne 0x14006e6dc
lea rcx, str.Could_not_allocate_string_array
call fcn.14004f910
mov edx, 8
mov dword [rsp + 0x34], esi
mov rcx, rsi
mov dword [rsp + 0x30], r13d
mov r14d, r13d
call fcn.1400c537c
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14006e70b
lea rcx, str.Could_not_allocate_string_array
call fcn.14004f910
mov ebx, 1
mov r8d, ebx
lea rdx, [rsp + 0x70]
lea rcx, str.IMAGE_INDEX
call fcn.140026d90
mov rcx, qword [rsp + 0x38]
mov rdi, rax
test rcx, rcx
je 0x14006e97d
test rax, rax
je 0x14006e97d
mov eax, dword [rsp + 0x34]
cmp r14d, eax
jne 0x14006e771
add eax, eax
mov r14, rcx
mov edx, eax
shl rdx, 3
mov dword [rsp + 0x34], eax
call fcn.1400c5f60
mov qword [rsp + 0x38], rax
mov rcx, rax
test rax, rax
je 0x14006e969
mov r14d, dword [rsp + 0x30]
mov eax, r14d
mov qword [rcx + rax*8], rdi
mov eax, r14d
inc r14d
mov dword [rsp + 0x30], r14d
test eax, eax
js 0x14006e97d
mov r8d, ebx
lea rdx, [rsp + 0x70]
lea rcx, str.DISPLAYNAME
call fcn.140026d90
mov rdi, rax
test r12, r12
je 0x14006e839
test rax, rax
je 0x14006e839
cmp r15d, esi
jne 0x14006e824
lea ecx, [rsi + rsi]
mov r14, r12
mov edx, ecx
mov esi, ecx
mov rcx, r12
shl rdx, 3
call fcn.1400c5f60
mov r12, rax
test rax, rax
jne 0x14006e824
mov rcx, r14
call fcn.1400e9080
lea rcx, str.Could_not_reallocate_string_array
call fcn.14004f910
mov r8d, ebx
lea rdx, [rsp + 0x70]
lea rcx, str.DESCRIPTION
call fcn.140026d90
mov edx, ebx
mov dword [rsp + 0x40], 1
lea rcx, str.Warning:_Could_not_find_a_description_for_image_index__d
call fcn.14004f910
mov r14d, dword [rsp + 0x30]
inc r13d
inc ebx
jmp 0x14006e710
mov eax, r15d
mov qword [r12 + rax*8], rdi
mov eax, r15d
inc r15d
test eax, eax
jns 0x14006e95a
mov r8d, ebx
mov dword [rsp + 0x40], 1
lea rdx, [rsp + 0x70]
lea rcx, str.DESCRIPTION
call fcn.140026d90
mov rdi, rax
test r12, r12
je 0x14006e8cb
test rax, rax
je 0x14006e8cb
cmp r15d, esi
jne 0x14006e8b6
lea ecx, [rsi + rsi]
mov r14, r12
mov edx, ecx
mov esi, ecx
mov rcx, r12
shl rdx, 3
call fcn.1400c5f60
mov r12, rax
test rax, rax
jne 0x14006e8b6
mov rcx, r14
call fcn.1400e9080
lea rcx, str.Could_not_reallocate_string_array
call fcn.14004f910
mov edx, ebx
lea rcx, str.Warning:_Could_not_find_a_description_for_image_index__d
call fcn.14004f910
mov r14d, dword [rsp + 0x30]
inc r13d
inc ebx
jmp 0x14006e710
mov eax, r15d
mov qword [r12 + rax*8], rdi
mov eax, r15d
inc r15d
test eax, eax
jns 0x14006e95a
mov edx, ebx
lea rcx, str.Warning:_Could_not_find_a_description_for_image_index__d
call fcn.14004f910
test r12, r12
je 0x14006e95a
cmp r15d, esi
jne 0x14006e924
lea eax, [rsi + rsi]
mov rcx, r12
mov edx, eax
mov rdi, r12
shl rdx, 3
mov esi, eax
call fcn.1400c5f60
mov r12, rax
test rax, rax
jne 0x14006e924
mov rcx, rdi
call fcn.1400e9080
lea rcx, str.Could_not_reallocate_string_array
call fcn.14004f910
mov r14d, dword [rsp + 0x30]
inc r13d
inc ebx
jmp 0x14006e710
lea rcx, str.Unknown_Windows_Version
call fcn.1400fcc44
mov ecx, r15d
mov qword [r12 + rcx*8], rax
test rax, rax
jne 0x14006e957
lea rcx, str.Could_not_store_string_in_array
call fcn.14004f910
mov r14d, dword [rsp + 0x30]
inc r13d
inc ebx
jmp 0x14006e710
inc r15d
mov r14d, dword [rsp + 0x30]
inc r13d
inc ebx
jmp 0x14006e710
mov rcx, r14
call fcn.1400e9080
lea rcx, str.Could_not_reallocate_string_array
call fcn.14004f910
cmp dword [rsp + 0x40], 0
je 0x14006e990
lea rcx, str.Warning:_Nonstandard_Windows_image__missing__DISPLAYNAME__entries_
call fcn.14004f910
cmp r13d, 1
jle 0x14006ea8a
mov ecx, 0xcdc
call fcn.1400207e0
mov ecx, 0xcdb
mov rbx, rax
call fcn.1400207e0
inc dword [0x14019f580]
mov ecx, 0x68
mov qword [0x1401e4038], rbx
mov rbx, qword [0x1401e8a68]
mov qword [0x1401e4190], rax
mov qword [0x1401e51b8], r12
mov dword [0x1401e4030], r13d
mov dword [0x1401e51a0], 9
mov dword [0x1401e3f68], 1
mov dword [0x1401e4198], 0xffffffff
call fcn.140059510
mov rcx, qword [0x1401e8a68]
mov edx, 1
mov rdi, rax
call qword [sym.imp.USER32.dll_ShowWindow]
test rdi, rdi
jne 0x14006ea35
mov r8d, 0x737
lea rdx, str.D:_a_rufus_rufus_src_stdlg.c
lea rcx, str.rcTemplate___NULL
call fcn.1400fc264
mov rcx, qword [0x1401e8838]
lea r9, [0x140054620]
mov r8, rbx
mov qword [rsp + 0x20], 0
mov rdx, rdi
call qword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
mov rcx, rdi
mov rbx, rax
call fcn.1400e9080
dec dword [0x14019f580]
xor eax, eax
test ebx, ebx
jns 0x14006ea76
mov eax, 0xfffffffe
jmp 0x14006ea86
sar ebx, 1
je 0x14006ea86
nop word [rax + rax]
inc eax
sar ebx, 1
jne 0x14006ea80
lea r13d, [rax + 1]
test r13d, r13d
jns 0x14006ea9e
mov dword [0x140196f9c], 0xfffffffe
jmp 0x14006ec3a
jne 0x14006eaaf
mov dword [0x140196f9c], 1
jmp 0x14006ec3a
mov rdi, qword [rsp + 0x38]
movsxd rbx, r13d
mov rcx, qword [rdi + rbx*8 - 8]
call fcn.140108ec0
mov dword [0x140196f9c], eax
test r13d, r13d
jle 0x14006ec3a
mov edx, r13d
lea rcx, [rsp + 0x70]
call fcn.14006dc00
cmp word [0x1401e8fee], 0
je 0x14006eaf3
movzx eax, word [0x1401e8ff2]
test ax, ax
jne 0x14006eb06
lea rcx, str.Warning:_Could_not_obtain_version_information_from_XML_index__Nonstandard_Windows_image__
call fcn.14004f910
movzx eax, word [0x1401e8ff2]
mov r9, qword [rdi + rbx*8 - 8]
lea rcx, str.Will_use__s__Build:__d__Index__s__for_Windows_To_Go
mov rdx, qword [r12 + rbx*8 - 8]
movzx r8d, ax
call fcn.14004f910
mov eax, 0x3a98
cmp word [0x1401e8ff2], ax
jae 0x14006ebe2
cmp dword [0x1401e9118], 0xc
je 0x14006ebe2
cmp dword [0x14019f510], 0
mov eax, 0x180034
movzx esi, word [0x1401941e8]
mov r14d, 0x34
mov ecx, 0xc76
cmovne r14d, eax
call fcn.1400207e0
mov ecx, 0xc1a
mov rbx, rax
call fcn.1400207e0
mov rdi, qword [0x1401e8a68]
mov rcx, rax
call fcn.14006c740
mov rcx, rbx
mov r13, rax
call fcn.14006c740
mov r9d, r14d
mov word [rsp + 0x20], si
mov r8, rax
mov rdx, r13
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.USER32.dll_MessageBoxExW]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test r13, r13
je 0x14006ebbe
mov rcx, r13
call fcn.1400e9080
test rbx, rbx
je 0x14006ebcb
mov rcx, rbx
call fcn.1400e9080
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, 6
je 0x14006ebe2
mov dword [0x140196f9c], 0xfffffffe
mov eax, 0x4563
cmp word [0x1401e8ff2], ax
jne 0x14006ec3a
mov eax, 0xffff
mov ecx, 0xc3d
mov word [rsp + 0x40], ax
lea rax, str.https:__github.com_pbatard_rufus_wiki_FAQbsods_with_windows_to_go_drives_created_from_windows_10_1809_isos
mov qword [rsp + 0x48], rax
call fcn.1400207e0
lea rdx, str.Windows_To_Go
mov ecx, 0xc38
mov rbx, rax
call fcn.1400207e0
mov r9, rax
mov qword [rsp + 0x20], rbx
lea r8, [rsp + 0x40]
xor edx, edx
xor ecx, ecx
call fcn.140054450
xor r14d, r14d
test r12, r12
je 0x14006ec65
test r15d, r15d
je 0x14006ec65
mov rbx, r12
mov edi, r15d
nop dword [rax]
mov rcx, qword [rbx]
call fcn.1400e9080
mov qword [rbx], r14
lea rbx, [rbx + 8]
sub rdi, 1
jne 0x14006ec50
mov rcx, r12
call fcn.1400e9080
mov rsi, qword [rsp + 0x38]
mov r15, qword [rsp + 0x210]
mov r12, qword [rsp + 0x220]
test rsi, rsi
je 0x14006eca9
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x14006eca9
mov rbx, rsi
mov edi, eax
mov rcx, qword [rbx]
call fcn.1400e9080
mov qword [rbx], r14
lea rbx, [rbx + 8]
sub rdi, 1
jne 0x14006ec94
mov rcx, rsi
call fcn.1400e9080
mov r14, qword [rsp + 0x218]
lea rcx, [rsp + 0x70]
call fcn.14006c740
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test rbx, rbx
je 0x14006ece4
mov rcx, rbx
call fcn.1400e9080
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [0x1401e8fcf], 0
jne 0x14006ecfa
call fcn.14006b900
mov eax, dword [0x140196f9c]
jmp 0x14006e53c
mov eax, 0xffffffff
jmp 0x14006e554