Function at 0x14006d820
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.140136540
xor r13d, r13d
mov dword [0x140196f9c], 0xffffffff
cmp dword [0x1401d0500], 0x62
mov dword [rsp + 0x40], r13d
mov dword [0x1401a0498], r13d
jb 0x14006e235
xor ecx, ecx
call fcn.140068780
test al, 4
je 0x14006e235
mov rcx, qword [0x1401e87b0]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x147
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [0x1401e87b0]
xor r9d, r9d
movsxd r8, eax
mov edx, 0x150
call qword [sym.imp.USER32.dll_SendMessageW]
cmp rax, 2
jne 0x14006e235
movzx eax, byte [0x1401e8f57]
mov qword [rsp + 0x248], rsi
lea rsi, [0x1401e8c82]
mov qword [rsp + 0x240], rbx
mov qword [rsp + 0x250], rdi
cmp al, 1
jbe 0x14006da5a
mov edi, eax
test al, al
je 0x14006d921
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 0x14006d910
mov ecx, 0xc3b
call fcn.140021050
mov ecx, 0xc3a
mov rbx, rax
call fcn.140021050
inc dword [0x14019f600]
mov ecx, 0x68
mov qword [0x1401e4140], rax
lea rax, [rsp + 0x50]
mov qword [0x1401e3fe8], rbx
mov rbx, qword [0x1401e89e8]
mov qword [0x1401e5168], rax
mov dword [0x1401e3fe0], edi
mov dword [0x1401e5150], 9
mov dword [0x1401e3f18], 1
mov dword [0x1401e4148], 0xffffffff
call fcn.140058d60
mov rcx, qword [0x1401e89e8]
mov edx, 1
mov rdi, rax
call qword [sym.imp.USER32.dll_ShowWindow]
test rdi, rdi
jne 0x14006d9c0
mov r8d, 0x737
lea rdx, str.D:_a_rufus_rufus_src_stdlg.c
lea rcx, str.rcTemplate___NULL
call fcn.1400fbe54
mov rcx, qword [0x1401e87b8]
lea r9, [0x140054060]
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.1400e8c70
dec dword [0x14019f600]
mov ecx, r13d
test ebx, ebx
jns 0x14006da03
mov dword [0x1401a0498], 0xfffffffe
jmp 0x14006da17
sar ebx, 1
je 0x14006da0d
inc ecx
sar ebx, 1
jne 0x14006da07
mov dword [0x1401a0498], ecx
test ecx, ecx
jns 0x14006da4e
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.1400b2a30
add rsp, 0x228
pop r13
pop rbp
ret
cmp ecx, 4
jl 0x14006da5a
mov dword [0x1401a0498], r13d
cmp byte [0x1401e8f4f], r13b
jne 0x14006daca
mov rcx, qword [0x14019f588]
xor edx, edx
call fcn.14006ab70
mov rcx, rax
test rax, rax
jne 0x14006da8c
lea rcx, str.Could_not_mount_ISO_for_Windows_To_Go_selection
call fcn.14004f2f0
mov eax, 0xffffffff
jmp 0x14006da1c
movsxd rax, dword [0x1401a0498]
lea r9, [0x140163980]
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.140004fd0
mov byte [rbp + 0xff], r13b
lea r9, [rsp + 0x70]
call fcn.14006bed0
test eax, eax
je 0x14006dadf
cmp byte [rsp + 0x70], r13b
jne 0x14006db08
mov eax, dword [0x140172238]
movsd xmm0, qword [str..RufVXml.tmp]
mov dword [rsp + 0x78], eax
movzx eax, word [0x14017223c]
mov word [rsp + 0x7c], ax
mov byte [rsp + 0x7d], r13b
movsd qword [rsp + 0x70], xmm0
lea rcx, [rsp + 0x70]
call fcn.14006bbf0
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 0x14006db33
mov rcx, rbx
call fcn.1400e8c70
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [0x1401e8f4f], r13b
lea rcx, [rbp + 0x80]
lea r9, [rsp + 0x70]
mov dword [rsp + 0x20], r13d
cmovne rcx, qword [0x14019f588]
lea r8, str._1_.xml
xor edx, edx
call fcn.1400696f0
test eax, eax
jne 0x14006db7e
lea rcx, str.Could_not_acquire_WIM_index
call fcn.14004f2f0
jmp 0x14006e1a9
mov qword [rsp + 0x220], r12
mov esi, 0x10
mov qword [rsp + 0x218], r14
mov ecx, esi
mov qword [rsp + 0x210], r15
mov edx, 8
mov r15d, r13d
call fcn.1400c4f6c
mov r12, rax
test rax, rax
jne 0x14006dbbe
lea rcx, str.Could_not_allocate_string_array
call fcn.14004f2f0
mov edx, 8
mov dword [rsp + 0x34], esi
mov rcx, rsi
mov dword [rsp + 0x30], r13d
mov r14d, r13d
call fcn.1400c4f6c
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14006dbed
lea rcx, str.Could_not_allocate_string_array
call fcn.14004f2f0
mov ebx, 1
nop dword [rax]
nop word [rax + rax]
mov r8d, ebx
lea rdx, [rsp + 0x70]
lea rcx, str.IMAGE_INDEX
call fcn.140026e40
mov rcx, qword [rsp + 0x38]
mov rdi, rax
test rcx, rcx
je 0x14006de6d
test rax, rax
je 0x14006de6d
mov eax, dword [rsp + 0x34]
cmp r14d, eax
jne 0x14006dc61
add eax, eax
mov r14, rcx
mov edx, eax
shl rdx, 3
mov dword [rsp + 0x34], eax
call fcn.1400c5b50
mov qword [rsp + 0x38], rax
mov rcx, rax
test rax, rax
je 0x14006de59
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 0x14006de6d
mov r8d, ebx
lea rdx, [rsp + 0x70]
lea rcx, str.DISPLAYNAME
call fcn.140026e40
mov rdi, rax
test r12, r12
je 0x14006dd29
test rax, rax
je 0x14006dd29
cmp r15d, esi
jne 0x14006dd14
lea ecx, [rsi + rsi]
mov r14, r12
mov edx, ecx
mov esi, ecx
mov rcx, r12
shl rdx, 3
call fcn.1400c5b50
mov r12, rax
test rax, rax
jne 0x14006dd14
mov rcx, r14
call fcn.1400e8c70
lea rcx, str.Could_not_reallocate_string_array
call fcn.14004f2f0
mov r8d, ebx
lea rdx, [rsp + 0x70]
lea rcx, str.DESCRIPTION
call fcn.140026e40
mov edx, ebx
mov dword [rsp + 0x40], 1
lea rcx, str.Warning:_Could_not_find_a_description_for_image_index__d
call fcn.14004f2f0
mov r14d, dword [rsp + 0x30]
inc r13d
inc ebx
jmp 0x14006dc00
mov eax, r15d
mov qword [r12 + rax*8], rdi
mov eax, r15d
inc r15d
test eax, eax
jns 0x14006de4a
mov r8d, ebx
mov dword [rsp + 0x40], 1
lea rdx, [rsp + 0x70]
lea rcx, str.DESCRIPTION
call fcn.140026e40
mov rdi, rax
test r12, r12
je 0x14006ddbb
test rax, rax
je 0x14006ddbb
cmp r15d, esi
jne 0x14006dda6
lea ecx, [rsi + rsi]
mov r14, r12
mov edx, ecx
mov esi, ecx
mov rcx, r12
shl rdx, 3
call fcn.1400c5b50
mov r12, rax
test rax, rax
jne 0x14006dda6
mov rcx, r14
call fcn.1400e8c70
lea rcx, str.Could_not_reallocate_string_array
call fcn.14004f2f0
mov edx, ebx
lea rcx, str.Warning:_Could_not_find_a_description_for_image_index__d
call fcn.14004f2f0
mov r14d, dword [rsp + 0x30]
inc r13d
inc ebx
jmp 0x14006dc00
mov eax, r15d
mov qword [r12 + rax*8], rdi
mov eax, r15d
inc r15d
test eax, eax
jns 0x14006de4a
mov edx, ebx
lea rcx, str.Warning:_Could_not_find_a_description_for_image_index__d
call fcn.14004f2f0
test r12, r12
je 0x14006de4a
cmp r15d, esi
jne 0x14006de14
lea eax, [rsi + rsi]
mov rcx, r12
mov edx, eax
mov rdi, r12
shl rdx, 3
mov esi, eax
call fcn.1400c5b50
mov r12, rax
test rax, rax
jne 0x14006de14
mov rcx, rdi
call fcn.1400e8c70
lea rcx, str.Could_not_reallocate_string_array
call fcn.14004f2f0
mov r14d, dword [rsp + 0x30]
inc r13d
inc ebx
jmp 0x14006dc00
lea rcx, str.Unknown_Windows_Version
call fcn.1400fc834
mov ecx, r15d
mov qword [r12 + rcx*8], rax
test rax, rax
jne 0x14006de47
lea rcx, str.Could_not_store_string_in_array
call fcn.14004f2f0
mov r14d, dword [rsp + 0x30]
inc r13d
inc ebx
jmp 0x14006dc00
inc r15d
mov r14d, dword [rsp + 0x30]
inc r13d
inc ebx
jmp 0x14006dc00
mov rcx, r14
call fcn.1400e8c70
lea rcx, str.Could_not_reallocate_string_array
call fcn.14004f2f0
cmp dword [rsp + 0x40], 0
je 0x14006de80
lea rcx, str.Warning:_Nonstandard_Windows_image__missing__DISPLAYNAME__entries_
call fcn.14004f2f0
cmp r13d, 1
jle 0x14006df7a
mov ecx, 0xcdc
call fcn.140021050
mov ecx, 0xcdb
mov rbx, rax
call fcn.140021050
inc dword [0x14019f600]
mov ecx, 0x68
mov qword [0x1401e3fe8], rbx
mov rbx, qword [0x1401e89e8]
mov qword [0x1401e4140], rax
mov qword [0x1401e5168], r12
mov dword [0x1401e3fe0], r13d
mov dword [0x1401e5150], 9
mov dword [0x1401e3f18], 1
mov dword [0x1401e4148], 0xffffffff
call fcn.140058d60
mov rcx, qword [0x1401e89e8]
mov edx, 1
mov rdi, rax
call qword [sym.imp.USER32.dll_ShowWindow]
test rdi, rdi
jne 0x14006df25
mov r8d, 0x737
lea rdx, str.D:_a_rufus_rufus_src_stdlg.c
lea rcx, str.rcTemplate___NULL
call fcn.1400fbe54
mov rcx, qword [0x1401e87b8]
lea r9, [0x140054060]
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.1400e8c70
dec dword [0x14019f600]
xor eax, eax
test ebx, ebx
jns 0x14006df66
mov eax, 0xfffffffe
jmp 0x14006df76
sar ebx, 1
je 0x14006df76
nop word [rax + rax]
inc eax
sar ebx, 1
jne 0x14006df70
lea r13d, [rax + 1]
test r13d, r13d
jns 0x14006df8e
mov dword [0x140196f9c], 0xfffffffe
jmp 0x14006e12a
jne 0x14006df9f
mov dword [0x140196f9c], 1
jmp 0x14006e12a
mov rdi, qword [rsp + 0x38]
movsxd rbx, r13d
mov rcx, qword [rdi + rbx*8 - 8]
call fcn.140108ab0
mov dword [0x140196f9c], eax
test r13d, r13d
jle 0x14006e12a
mov edx, r13d
lea rcx, [rsp + 0x70]
call fcn.14006d090
cmp word [0x1401e8f6e], 0
je 0x14006dfe3
movzx eax, word [0x1401e8f72]
test ax, ax
jne 0x14006dff6
lea rcx, str.Warning:_Could_not_obtain_version_information_from_XML_index__Nonstandard_Windows_image__
call fcn.14004f2f0
movzx eax, word [0x1401e8f72]
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.14004f2f0
mov eax, 0x3a98
cmp word [0x1401e8f72], ax
jae 0x14006e0d2
cmp dword [0x1401e9098], 0xc
je 0x14006e0d2
cmp dword [0x14019f590], 0
mov eax, 0x180034
movzx esi, word [0x1401941e8]
mov r14d, 0x34
mov ecx, 0xc76
cmovne r14d, eax
call fcn.140021050
mov ecx, 0xc1a
mov rbx, rax
call fcn.140021050
mov rdi, qword [0x1401e89e8]
mov rcx, rax
call fcn.14006bbf0
mov rcx, rbx
mov r13, rax
call fcn.14006bbf0
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 0x14006e0ae
mov rcx, r13
call fcn.1400e8c70
test rbx, rbx
je 0x14006e0bb
mov rcx, rbx
call fcn.1400e8c70
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, 6
je 0x14006e0d2
mov dword [0x140196f9c], 0xfffffffe
mov eax, 0x4563
cmp word [0x1401e8f72], ax
jne 0x14006e12a
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.140021050
lea rdx, str.Windows_To_Go
mov ecx, 0xc38
mov rbx, rax
call fcn.140021050
mov r9, rax
mov qword [rsp + 0x20], rbx
lea r8, [rsp + 0x40]
xor edx, edx
xor ecx, ecx
call fcn.140053e90
xor r14d, r14d
test r12, r12
je 0x14006e155
test r15d, r15d
je 0x14006e155
mov rbx, r12
mov edi, r15d
nop dword [rax]
mov rcx, qword [rbx]
call fcn.1400e8c70
mov qword [rbx], r14
lea rbx, [rbx + 8]
sub rdi, 1
jne 0x14006e140
mov rcx, r12
call fcn.1400e8c70
mov rsi, qword [rsp + 0x38]
mov r15, qword [rsp + 0x210]
mov r12, qword [rsp + 0x220]
test rsi, rsi
je 0x14006e199
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x14006e199
mov rbx, rsi
mov edi, eax
mov rcx, qword [rbx]
call fcn.1400e8c70
mov qword [rbx], r14
lea rbx, [rbx + 8]
sub rdi, 1
jne 0x14006e184
mov rcx, rsi
call fcn.1400e8c70
mov r14, qword [rsp + 0x218]
lea rcx, [rsp + 0x70]
call fcn.14006bbf0
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 0x14006e1d4
mov rcx, rbx
call fcn.1400e8c70
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [0x1401e8f4f], 0
jne 0x14006e22a
mov rcx, qword [0x14019cca0]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14006e223
xor r8d, r8d
xor edx, edx
call qword [sym.imp.VirtDisk.dll_DetachVirtualDisk]
mov rcx, qword [0x14019cca0]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14006e223
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14019cca0], 0xffffffffffffffff
mov byte [0x1401e5bd0], 0
mov eax, dword [0x140196f9c]
jmp 0x14006da1c
mov eax, 0xffffffff
jmp 0x14006da34