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

Disassembly:
push rbp
push rbx
push r14
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x140106438]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov rcx, qword [0x14015a210]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x147
call qword [sym.imp.USER32.dll_SendMessageW]
mov ecx, 0xd0f
mov rbx, rax
call fcn.14001b320
mov ecx, 0xd0e
mov qword [rbp - 0x68], rax
call fcn.14001b320
mov ecx, 0xd10
mov qword [rbp - 0x60], rax
call fcn.14001b320
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 r14, str..vhd
mov qword [rbp - 0x78], r14
movups xmmword [0x140158090], xmm0
movups xmmword [0x1401580a0], xmm0
movups xmmword [0x1401580b0], xmm0
test ebx, ebx
js 0x140056f59
cmp qword [0x140112918], 0
jne 0x140056f59
lea rcx, [0x140111ad8]
mov qword [rsp + 0x270], rsi
movsxd rbx, ebx
lea r9, [0x1400d10a0]
imul rax, rbx, 0x38
mov qword [rsp + 0x278], rdi
mov edx, 0x80
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x280], r15
mov rax, qword [rax + rcx]
lea rcx, [rbp - 0x50]
mov qword [rsp + 0x20], rax
call fcn.1400034e0
mov rcx, qword [0x14015a210]
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 [0x140158094], eax
call fcn.140003f00
cmp dword [0x140112904], 0
mov r15d, 2
mov qword [0x1401580a8], rax
je 0x140056afa
cmp dword [0x14015b55c], 1
lea r11d, [r15 + 1]
je 0x140056afd
mov r11, r15
mov rdi, qword [0x140111ab8]
lea rsi, str._NULL_
mov r9d, 1
mov qword [rsp + 0x78], r11
test rdi, rdi
mov dword [rsp + 0x50], r9d
mov ebx, r9d
mov r10d, r11d
cmove rdi, rsi
nop dword [rax + rax]
lea eax, [r9 - 1]
mov r8, rsi
mov rax, qword [r14 + rax*8]
add rax, r15
cmovne r8, rax
mov rax, rdi
sub r8, rdi
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140056b63
inc rax
test ecx, ecx
jne 0x140056b50
test edx, edx
je 0x140056b7a
inc r9d
mov r10d, r11d
mov dword [rsp + 0x50], r9d
mov ebx, r9d
cmp r9d, r11d
jbe 0x140056b30
cmp ebx, r10d
lea r8, [rsp + 0x78]
cmova r9d, r15d
xor edx, edx
mov dword [rsp + 0x50], r9d
lea r9, [rsp + 0x50]
lea ecx, [rdx + 1]
call fcn.140043550
xor esi, esi
mov qword [0x1401580b0], rax
mov r8, rax
test rax, rax
je 0x140056f12
mov rcx, qword [rsp + 0x78]
mov dword [rsp + 0x50], ecx
test ecx, ecx
je 0x140056bf1
nop dword [rax]
lea eax, [rcx - 1]
mov rcx, r8
mov rdx, qword [r14 + rax*8]
inc rdx
call fcn.1400930e8
mov ecx, dword [rsp + 0x50]
test rax, rax
jne 0x140056bed
add ecx, 0xffffffff
mov dword [rsp + 0x50], ecx
je 0x140056bed
mov r8, qword [0x1401580b0]
jmp 0x140056bc0
test ecx, ecx
jne 0x140056c0a
lea rcx, str.Warning:_Can_not_determine_image_type_from_extension___Saving_to_uncompressed_VHD.
call fcn.140041aa0
mov dword [rsp + 0x50], 1
jmp 0x140056d65
lea eax, [rcx - 1]
mov rdi, qword [r14 + rax*8]
add rdi, r15
cmp qword [0x1401128c8], rsi
mov qword [0x140111ab8], rdi
je 0x140056c38
mov rdx, rdi
lea rcx, str.PreferredSaveImageType
call fcn.140020f90
jmp 0x140056d65
test rdi, rdi
jne 0x140056c42
mov rbx, rsi
jmp 0x140056c59
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rdi + rbx], sil
jne 0x140056c50
mov edx, 0x5c
mov qword [rsp + 0x58], rsi
lea rcx, str.PreferredSaveImageType
mov qword [rsp + 0x60], rsi
call fcn.140093068
test rax, rax
je 0x140056c92
mov r8d, 0x91
lea rdx, str.C:_src_r3dusb_src_registry.h
lea rcx, str.strchr_key_name_____NULL
call fcn.1400a15c4
mov edx, 0x5c
lea rcx, str.PreferredSaveImageType
call fcn.140093068
test rax, rax
jne 0x140056d65
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 0x140056cd9
mov qword [rsp + 0x58], rsi
jmp 0x140056d55
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
lea rdx, str.SOFTWAREAlex313031R3dusb
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 0x140056d21
mov qword [rsp + 0x60], rsi
jmp 0x140056d45
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 0x140056d55
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140056d65
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x50]
sub eax, 1
je 0x140056d8b
cmp eax, r15d
je 0x140056d7f
mov dword [0x140158090], 3
jmp 0x140056d92
mov dword [0x140158090], 0x63
jmp 0x140056d92
mov dword [0x140158090], r15d
cmp qword [0x1401580a8], rsi
mov rax, qword [0x14015b540]
mov qword [0x1401580a0], rax
mov dword [0x140158098], 0x2000000
je 0x140056f12
cmp qword [0x1401580b0], rsi
je 0x140056f12
mov rcx, qword [0x14015a568]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8002
call qword [sym.imp.USER32.dll_SendMessageW]
cmp dword [0x140158090], r15d
mov dword [0x140111620], esi
jne 0x140056e53
mov rcx, qword [0x1401580b0]
lea rdx, [rbp + 0x30]
mov r8d, 0x104
mov qword [rsp + 0x68], rsi
call qword [sym.imp.KERNEL32.dll_GetVolumePathNameA]
test eax, eax
je 0x140056e53
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 0x140056e53
mov rax, qword [0x14015b540]
add rax, 0x200
cmp qword [rsp + 0x68], rax
jge 0x140056e53
lea rcx, str.The_VHD_size_is_too_large_for_the_target_drive
call fcn.140041aa0
mov dword [0x140111620], 0xc00300df
jmp 0x140056efa
xor edx, edx
xor ecx, ecx
call fcn.14002a540
mov ecx, 1
mov dword [0x140111620], esi
call fcn.140051e00
cmp dword [0x140158090], 0x63
lea rax, [0x140056860]
lea r8, [0x1400564b0]
mov qword [rsp + 0x28], rsi
cmove r8, rax
mov dword [rsp + 0x20], esi
xor edx, edx
lea r9, [0x140158090]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x140112918], rax
test rax, rax
je 0x140056ee4
lea rcx, str._r_nSave_to_VHD_operation_started
call fcn.140041aa0
xor edx, edx
mov r9d, 0xffffffff
xor r8d, r8d
lea ecx, [rdx + 1]
call fcn.14001b7e0
mov rcx, qword [0x14015a568]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8009
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x140056f12
lea rcx, str.Unable_to_start_VHD_save_thread
call fcn.140041aa0
mov dword [0x140111620], 0xe0031205
mov rcx, qword [0x14015a568]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8000
call qword [sym.imp.USER32.dll_PostMessageW]
cmp qword [0x140112918], rsi
mov r15, qword [rsp + 0x280]
mov rdi, qword [rsp + 0x278]
jne 0x140056f51
mov rcx, qword [0x1401580a8]
call fcn.14009b5a0
mov rcx, qword [0x1401580b0]
mov qword [0x1401580a8], rsi
call fcn.14009b5a0
mov qword [0x1401580b0], rsi
mov rsi, qword [rsp + 0x270]
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140092060
add rsp, 0x250
pop r14
pop rbx
pop rbp
ret