Function at 0x140027bb0
Capabilities:
Get disk information
Get disk size

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x4e0
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x140229498]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
mov rsi, rcx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ebx, eax
mov dword [rsp + 0x6c], eax
mov byte [rsp + 0x50], 0
movsx r8d, byte [rsi]
lea rdx, str._c:_
lea rcx, [rsp + 0x50]
call fcn.140027110
xor edi, edi
mov dword [rsp + 0x20], edi
or r9d, 0xffffffff
mov r8d, 0xfde9
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14007bc10
nop
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [rsi + 0x20], 0xffffffff
sub eax, 2
je 0x140027cb8
sub eax, 1
je 0x140027cac
sub eax, 1
je 0x140027c92
sub eax, 1
je 0x140027c82
sub eax, 1
je 0x140027c76
mov rcx, qword [rsp + 0x40]
call fcn.14011e0c0
nop
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
xor al, al
jmp 0x140027f11
lea rbp, str.RAM_Disk
mov dword [rsi + 0x20], edi
jmp 0x140027cd6
lea rbp, str.CD_Drive
mov dword [rsi + 0x20], 5
jmp 0x140027cd6
mov rcx, qword [rsp + 0x40]
call fcn.14011e0c0
nop
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
xor al, al
jmp 0x140027f11
lea rbp, str.Local_Disk
mov dword [rsi + 0x20], edi
jmp 0x140027cd6
movzx eax, byte [rsi]
cmp al, 0x41
je 0x140027ccc
cmp al, 0x42
je 0x140027ccc
lea rbp, str.Removable_Disk
jmp 0x140027cd3
lea rbp, str.Floppy_Disk
mov dword [rsi + 0x20], edi
mov word [rsp + 0xb0], 0
mov dword [rsp + 0x38], 0x105
lea rax, [rsp + 0x2c0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x74]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x105
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
or r9d, 0xffffffff
mov r8d, 0xfde9
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x48]
call fcn.14007ba40
nop
mov qword [rsp + 0x58], rdi
mov dword [rsp + 0x60], edi
mov rax, qword [rsp + 0x48]
cmp byte [rax], 0
cmovne rbp, rax
movsx r9d, byte [rsi]
mov r8, rbp
lea rdx, str._s___c:_
lea rcx, [rsp + 0x58]
call fcn.14007aa50
mov rax, qword [rsi + 8]
test rax, rax
je 0x140027daf
mov r8, qword [rsp + 0x58]
test r8, r8
je 0x140027dc0
mov rdx, r8
sub rdx, rax
movzx ecx, byte [rax]
cmp cl, byte [rax + rdx]
jne 0x140027da8
add rax, 1
test cl, cl
jne 0x140027d96
jmp 0x140027dbc
sbb edi, edi
sbb edi, 0xffffffff
jmp 0x140027dbc
mov r8, qword [rsp + 0x58]
mov rax, r8
neg rax
sbb edi, edi
test edi, edi
je 0x140027ddb
or edx, 0xffffffff
mov rcx, r8
call fcn.14007b6e0
mov rdi, rax
mov rcx, qword [rsi + 8]
call fcn.14011e950
mov qword [rsi + 8], rdi
lea r9, [rsp + 0x98]
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x140027e53
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
movsx r8d, byte [rsi]
lea rdx, str.GetDiskFreeSpaceEx__c:__failed:__d
lea rcx, [0x14023b200]
call fcn.140002f80
nop
mov rcx, qword [rsp + 0x58]
call fcn.14011e950
nop
mov rcx, qword [rsp + 0x48]
call fcn.14011e0c0
nop
mov rcx, qword [rsp + 0x40]
call fcn.14011e0c0
nop
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
xor al, al
jmp 0x140027f11
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x8c]
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
jne 0x140027ecf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
movsx r8d, byte [rsi]
lea rdx, str.GetDiskFreeSpaceA__c:__failed:__d
lea rcx, [0x14023b200]
call fcn.140002f80
nop
mov rcx, qword [rsp + 0x58]
call fcn.14011e950
nop
mov rcx, qword [rsp + 0x48]
call fcn.14011e0c0
nop
mov rcx, qword [rsp + 0x40]
call fcn.14011e0c0
nop
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
xor al, al
jmp 0x140027f11
mov eax, dword [rsp + 0x68]
mov dword [rsi + 0x10], eax
mov rax, qword [rsp + 0x80]
mov qword [rsi + 0x18], rax
mov byte [rsi + 0x24], 1
mov rcx, qword [rsp + 0x58]
call fcn.14011e950
nop
mov rcx, qword [rsp + 0x48]
call fcn.14011e0c0
nop
mov rcx, qword [rsp + 0x40]
call fcn.14011e0c0
nop
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov al, 1
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.14011f1c0
lea r11, [rsp + 0x4e0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret