Function at 0x14001a564
Capabilities:
Check if file exists
Get disk size

Disassembly:
mov qword [rsp + 0x18], r8
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x80
xor ebx, ebx
xor eax, eax
mov rsi, rdx
lea ebp, [rbx + 3]
mov r12d, ecx
mov dword [rsp + 0x58], ebx
mov qword [rsp + 0x60], rax
cmp rdx, rbx
jne 0x14001a5bc
mov edx, 0xc0000000
call qword [0x14010be98]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14001a71a
mov edx, 0x80000000
mov ecx, r12d
call qword [0x14010be98]
jmp 0x14001a68d
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r12d, 0x3a
cmp eax, 2
jne 0x14001a5d7
cmp word [rsi + 2], r12w
jmp 0x14001a5f6
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, ebp
jne 0x14001a5fd
lea rcx, [rsi + 2]
lea rdx, [0x1400f13f8]
call fcn.1400d3154
cmp eax, ebx
mov ecx, ebx
sete cl
jmp 0x14001a5ff
mov ecx, ebx
mov edx, 0xc0000000
cmp ecx, ebx
je 0x14001a6ae
mov rax, qword [str.._:]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rbx
mov qword [rcx], rax
mov eax, dword [0x1400f13f0]
mov r12d, 0x20000000
mov dword [rcx + 8], eax
movzx eax, word [0x1400f13f4]
xor r9d, r9d
mov word [rcx + 0xc], ax
movzx eax, word [rsi]
lea rcx, [rsp + 0x48]
mov r8d, ebp
mov dword [rsp + 0x28], r12d
mov word [rsp + 0x50], ax
mov dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14001a71a
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x48]
xor r9d, r9d
mov r8d, ebp
mov edx, 0x80000000
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14001a71a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
setne bl
lea eax, [rbx + 1]
jmp 0x14001a85d
mov rcx, rsi
call qword [0x14010bea0]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14001a71a
mov edx, 0x80000000
mov rcx, rsi
call qword [0x14010bea0]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14001a71a
call qword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 1
je 0x14001a710
sub eax, 0x56
je 0x14001a710
sub eax, r12d
je 0x14001a6f8
sub eax, 0x7a
je 0x14001a6f8
cmp eax, 0x101b
jne 0x14001a710
call fcn.1400d2f30
lea rdx, str.Not_a_mount_point:__1_ws__n
mov r8, rsi
lea rcx, [rax + 0x60]
call fcn.140019ae8
mov eax, 9
jmp 0x14001a85d
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x38], rbx
lea r8, [rsp + 0x58]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0xb8]
mov r9d, 0x10
mov qword [rsp + 0x30], rax
mov edx, 0x7c0d0
mov rcx, rdi
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x58], 1
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, ebx
je 0x14001a852
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0xb8]
mov ebp, 8
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xc8]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x7405c
mov rcx, rdi
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, ebx
jne 0x14001a7cd
call fcn.1400d2f30
lea rdx, str._1_ws_:_Is_that_drive_really_an_ImDisk_drive_
mov r8, rsi
lea rcx, [rax + 0x60]
call fcn.140019ae8
mov ebp, 2
jmp 0x14001a852
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0xb8]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x68]
xor r8d, r8d
mov edx, 0x70000
mov rcx, rdi
mov dword [rsp + 0x28], 0x18
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, ebx
je 0x14001a7ab
mov ecx, dword [rsp + 0x7c]
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x38], rbx
cqo
lea r8, [rsp + 0x40]
mov r9d, ebp
idiv rcx
mov edx, 0x900f0
mov rcx, rdi
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ebp, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
add rsp, 0x80
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret