Function at 0x14001ac40
Capabilities:
Get disk information
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x14002a010]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rbx, rcx
mov rcx, qword [rcx + 8]
cmp qword [rcx + 0x18], 8
jb 0x14001ac7b
mov rcx, qword [rcx]
xor esi, esi
mov edi, 3
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], 0xa0000000
mov edx, 0xc0000000
mov dword [rsp + 0x20], edi
lea r8d, [rsi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [rbx + 8]
mov qword [rcx + 0x28], rax
mov rax, qword [rbx + 8]
mov rcx, qword [rax + 0x28]
cmp rcx, 0xffffffffffffffff
jne 0x14001ad12
cmp qword [rax + 0x20], rsi
je 0x14001ad01
cmp qword [rax + 0x18], 8
jb 0x14001accb
mov rax, qword [rax]
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0xa0000000
mov edx, 0xc0000000
mov rcx, rax
mov dword [rsp + 0x20], 1
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [rbx + 8]
mov qword [rcx + 0x28], rax
mov rax, qword [rbx + 8]
cmp qword [rax + 0x28], 0xffffffffffffffff
jne 0x14001ad2d
mov eax, 2
jmp 0x14001aee7
lea rdx, [rbp + 0x47]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, qword [rbp + 0x47]
test rcx, rcx
je 0x14001ad2d
mov rax, qword [rbx + 8]
mov qword [rax + 0x20], rcx
mov rdx, qword [rbx + 8]
mov r8, rdi
mov qword [rbp + 0xf], rsi
mov qword [rbp + 0x1f], rsi
mov qword [rbp + 0x27], 7
cmp qword [rdx + 0x10], rdi
cmovb r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 8
jb 0x14001ad57
mov rdx, qword [rdx]
lea rcx, [rbp + 0xf]
call fcn.14000f990
cmp qword [rbp + 0x27], 8
lea rax, [rbp + 7]
mov dword [rsp + 0x38], 0x104
lea rcx, [rbp + 0xf]
cmovae rcx, qword [rbp + 0xf]
mov r8d, 0x104
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov rdx, qword [rbp + 0x27]
cmp rdx, 8
jb 0x14001addd
mov rcx, qword [rbp + 0xf]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001add8
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001add8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001f1ac
test byte [rbp + 7], 0x40
mov rcx, qword [rbx + 8]
jne 0x14001ae80
mov qword [rbp + 0xf], rsi
mov qword [rbp + 0x1f], rsi
mov qword [rbp + 0x27], 7
cmp qword [rcx + 0x10], rdi
cmovb rdi, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 8
jb 0x14001ae0e
mov rcx, qword [rcx]
mov rdx, rcx
mov r8, rdi
lea rcx, [rbp + 0xf]
call fcn.14000f990
cmp qword [rbp + 0x27], 8
lea rdx, [rbp + 0xf]
lea rcx, str.Volume__s_does_not_support_sparse_files._n
cmovae rdx, qword [rbp + 0xf]
call fcn.14000f040
mov rdx, qword [rbp + 0x27]
cmp rdx, 8
jb 0x14001aee5
mov rcx, qword [rbp + 0xf]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001ae79
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001ae79
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001f1ac
jmp 0x14001aee5
mov rcx, qword [rcx + 0x28]
lea rdx, [rbp + 0xf]
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test dword [rbp + 0xf], 0x200
jne 0x14001aee5
mov rcx, qword [rbx + 8]
lea rax, [rbp + 0x47]
mov qword [rsp + 0x38], rsi
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov dword [rsp + 0x28], esi
mov edx, 0x900c4
mov rcx, qword [rcx + 0x28]
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14001aee5
mov rdx, qword [rbx + 8]
cmp qword [rdx + 0x18], 8
jb 0x14001aed9
mov rdx, qword [rdx]
lea rcx, str.Failed_to_make_image_file_sparse:__s_n
call fcn.14000f040
xor eax, eax
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.14001ef00
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret