Function at 0x14006b350
Capabilities:
Create thread
Get disk size
Set registry value

Disassembly:
push rbp
push rbx
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x140193440]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov rcx, qword [0x1401e8690]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x147
call qword [sym.imp.USER32.dll_SendMessageW]
mov ecx, 0xd0f
mov rbx, rax
call fcn.140021050
mov ecx, 0xd0e
mov qword [rbp - 0x68], rax
call fcn.140021050
mov ecx, 0xd10
mov qword [rbp - 0x60], rax
call fcn.140021050
mov qword [rbp - 0x58], rax
xorps xmm0, xmm0
lea rax, [rbp - 0x50]
mov qword [rbp - 0x80], rax
lea rax, [rbp - 0x68]
mov qword [rbp - 0x70], rax
lea r15, str..vhd
mov qword [rbp - 0x78], r15
movups xmmword [0x1401e5ba0], xmm0
movups xmmword [0x1401e5bb0], xmm0
movups xmmword [0x1401e5bc0], xmm0
test ebx, ebx
js 0x14006b926
cmp qword [0x14019f5c8], 0
jne 0x14006b926
mov qword [rsp + 0x270], rsi
lea rcx, [0x14019f668]
mov qword [rsp + 0x278], rdi
lea r9, [0x14014fa20]
movsxd rbx, ebx
mov edx, 0x80
imul rax, rbx, 0x38
mov qword [rsp + 0x280], r12
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x288], r14
mov rax, qword [rax + rcx]
lea rcx, [rbp - 0x50]
mov qword [rsp + 0x20], rax
call fcn.140004fd0
mov rcx, qword [0x1401e8690]
xor r9d, r9d
mov r8, rbx
mov byte [rbp + 0x2f], 0
mov edx, 0x150
call qword [sym.imp.USER32.dll_SendMessageW]
mov ecx, eax
mov dword [0x1401e5ba4], eax
call fcn.140005f90
cmp dword [0x14019f5b4], 0
mov qword [0x1401e5bb8], rax
je 0x14006b49e
cmp dword [0x1401e909c], 1
mov r11d, 3
je 0x14006b4a4
mov r11d, 2
mov rsi, qword [0x1401a0450]
lea r12, str._NULL_
mov ecx, 1
mov qword [rsp + 0x78], r11
test rsi, rsi
mov dword [rsp + 0x50], 1
mov r9d, ecx
mov r14d, ecx
cmove rsi, r12
mov r10d, ecx
mov eax, ecx
nop word [rax + rax]
lea eax, [rax - 1]
mov r8, r12
mov rdi, qword [r15 + rax*8]
mov ebx, r11d
add rdi, 2
mov rax, rsi
cmovne r8, rdi
test rdi, rdi
cmovne r10d, ecx
sub r8, rsi
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x14006b515
inc rax
test ecx, ecx
jne 0x14006b502
test edx, edx
je 0x14006b539
test rdi, rdi
cmovne r9d, r14d
inc r9d
mov dword [rsp + 0x50], r9d
mov eax, r9d
mov r10d, r9d
mov r14d, r9d
mov ecx, r9d
cmp r9d, r11d
jbe 0x14006b4e0
mov r14, qword [rsp + 0x288]
mov r12, qword [rsp + 0x280]
cmp r10d, ebx
jbe 0x14006b556
mov dword [rsp + 0x50], 2
lea r9, [rsp + 0x50]
xor edx, edx
lea r8, [rsp + 0x78]
mov ecx, 1
call fcn.140052510
xor esi, esi
mov qword [0x1401e5bc0], rax
mov r8, rax
test rax, rax
je 0x14006b8e7
mov rcx, qword [rsp + 0x78]
mov dword [rsp + 0x50], ecx
test ecx, ecx
je 0x14006b5c7
mov eax, ecx
lea eax, [rax - 1]
mov rcx, r8
mov rdx, qword [r15 + rax*8]
inc rdx
call fcn.1400b4230
test rax, rax
jne 0x14006b5bf
mov eax, dword [rsp + 0x50]
sub eax, 1
mov ecx, eax
mov dword [rsp + 0x50], eax
je 0x14006b5c3
mov r8, qword [0x1401e5bc0]
jmp 0x14006b590
mov ecx, dword [rsp + 0x50]
test ecx, ecx
jne 0x14006b5e0
lea rcx, str.Warning:_Can_not_determine_image_type_from_extension___Saving_to_uncompressed_VHD.
call fcn.14004f2f0
mov dword [rsp + 0x50], 1
jmp 0x14006b735
lea eax, [rcx - 1]
mov rdi, qword [r15 + rax*8]
add rdi, 2
cmp qword [0x14019f580], rsi
mov qword [0x1401a0450], rdi
je 0x14006b60f
mov rdx, rdi
lea rcx, str.PreferredSaveImageType
call fcn.140026fa0
jmp 0x14006b735
test rdi, rdi
jne 0x14006b619
mov rbx, rsi
jmp 0x14006b629
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rdi + rbx], sil
jne 0x14006b620
mov edx, 0x5c
mov qword [rsp + 0x58], rsi
lea rcx, str.PreferredSaveImageType
mov qword [rsp + 0x60], rsi
call fcn.1400b41b4
test rax, rax
je 0x14006b662
mov r8d, 0x91
lea rdx, str.D:_a_rufus_rufus_src_registry.h
lea rcx, str.strchr_key_name_____NULL
call fcn.1400fbe54
mov edx, 0x5c
lea rcx, str.PreferredSaveImageType
call fcn.1400b41b4
test rax, rax
jne 0x14006b735
lea rax, [rsp + 0x58]
mov r9d, 0x2001d
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14006b6a9
mov qword [rsp + 0x58], rsi
jmp 0x14006b725
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
lea rdx, str.SOFTWAREAkeo_ConsultingRufus
lea rax, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 7
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x14006b6f1
mov qword [rsp + 0x60], rsi
jmp 0x14006b715
mov rcx, qword [rsp + 0x60]
lea rdx, str.PreferredSaveImageType
mov dword [rsp + 0x28], ebx
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14006b725
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14006b735
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x50]
sub eax, 1
je 0x14006b75b
cmp eax, 2
je 0x14006b74f
mov dword [0x1401e5ba0], 3
jmp 0x14006b765
mov dword [0x1401e5ba0], 0x63
jmp 0x14006b765
mov dword [0x1401e5ba0], 2
cmp qword [0x1401e5bb8], rsi
mov rax, qword [0x1401e9080]
mov qword [0x1401e5bb0], rax
mov dword [0x1401e5ba8], 0x2000000
je 0x14006b8e7
cmp qword [0x1401e5bc0], rsi
je 0x14006b8e7
mov rcx, qword [0x1401e89e8]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8002
call qword [sym.imp.USER32.dll_SendMessageW]
cmp dword [0x1401e5ba0], 2
mov dword [0x14019f120], esi
jne 0x14006b826
mov rcx, qword [0x1401e5bc0]
lea rdx, [rbp + 0x30]
mov r8d, 0x104
mov qword [rsp + 0x68], rsi
call qword [sym.imp.KERNEL32.dll_GetVolumePathNameA]
test eax, eax
je 0x14006b826
xor r9d, r9d
lea rdx, [rsp + 0x68]
xor r8d, r8d
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x14006b826
mov rax, qword [0x1401e9080]
add rax, 0x200
cmp qword [rsp + 0x68], rax
jge 0x14006b826
lea rcx, str.The_VHD_size_is_too_large_for_the_target_drive
call fcn.14004f2f0
mov dword [0x14019f120], 0xc00300df
jmp 0x14006b8cf
xor edx, edx
xor ecx, ecx
call fcn.140033570
mov ecx, 1
mov dword [0x14019f120], esi
call fcn.140065ac0
cmp dword [0x1401e5ba0], 0x63
lea rax, [0x14006b200]
lea r8, [0x14006af00]
mov qword [rsp + 0x28], rsi
cmove r8, rax
mov dword [rsp + 0x20], esi
xor edx, edx
lea r9, [0x1401e5ba0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x14019f5c8], rax
test rax, rax
je 0x14006b8b9
lea rcx, str._r_nSave_to_VHD_operation_started
call fcn.14004f2f0
mov r9d, 0xffffffff
xor r8d, r8d
xor edx, edx
mov ecx, 1
call fcn.140021510
mov rcx, qword [0x1401e89e8]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8009
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x14006b8e7
lea rcx, str.Unable_to_start_VHD_save_thread
call fcn.14004f2f0
mov dword [0x14019f120], 0xe0031205
mov rcx, qword [0x1401e89e8]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8000
call qword [sym.imp.USER32.dll_PostMessageW]
cmp qword [0x14019f5c8], rsi
mov rdi, qword [rsp + 0x278]
jne 0x14006b91e
mov rcx, qword [0x1401e5bb8]
call fcn.1400e8c70
mov rcx, qword [0x1401e5bc0]
mov qword [0x1401e5bb8], rsi
call fcn.1400e8c70
mov qword [0x1401e5bc0], rsi
mov rsi, qword [rsp + 0x270]
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1400b2a30
add rsp, 0x250
pop r15
pop rbx
pop rbp
ret