Function at 0x140061400
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
push r12
push r13
push r14
sub rsp, 0x2f0
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401620c0]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
mov r12, rcx
xor r14d, r14d
mov dword [rsp + 0x24], r14d
lea ecx, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [rsp + 0x20], 0x5c3a43
mov edx, 0x2b7a
mov rcx, qword [r12 + 0x20]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov r13, rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1009
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageA]
mov edi, r14d
mov dword [rsp + 0x60], r14d
cmp edi, 0x1a
jge 0x140061822
lea eax, [rdi + 0x41]
mov byte [rsp + 0x20], al
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov esi, eax
mov ecx, eax
test eax, eax
je 0x14006168d
sub ecx, 2
je 0x140061620
sub ecx, 1
je 0x1400615b0
sub ecx, 1
je 0x140061540
cmp ecx, 1
je 0x1400614d6
mov byte [rsp + 0x190], 0
jmp 0x1400616ec
mov rbx, qword [0x140167138]
mov rax, qword [0x140160e18]
mov qword [rsp + 0x40], rax
lea rdx, [0x1400e4ec8]
lea rcx, [rsp + 0x40]
call fcn.14002d430
mov r8, rbx
mov edx, 0x2b7d
lea rcx, [rsp + 0x40]
call fcn.14002e500
nop
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x190]
nop
nop
movzx eax, byte [rcx]
mov byte [rdx], al
add rcx, 1
add rdx, 1
test al, al
jne 0x140061520
lea rcx, [rsp + 0x40]
call fcn.14002d2c0
jmp 0x1400616ec
mov rbx, qword [0x140167138]
mov rax, qword [0x140160e18]
mov qword [rsp + 0x28], rax
lea rdx, [0x1400e4ec8]
lea rcx, [rsp + 0x28]
call fcn.14002d430
mov r8, rbx
mov edx, 0x2b7f
lea rcx, [rsp + 0x28]
call fcn.14002e500
nop
mov rcx, qword [rsp + 0x28]
lea rdx, [rsp + 0x190]
nop
nop
nop
movzx eax, byte [rcx]
mov byte [rdx], al
add rcx, 1
add rdx, 1
test al, al
jne 0x140061590
lea rcx, [rsp + 0x28]
call fcn.14002d2c0
jmp 0x1400616ec
mov rbx, qword [0x140167138]
mov rax, qword [0x140160e18]
mov qword [rsp + 0x30], rax
lea rdx, [0x1400e4ec8]
lea rcx, [rsp + 0x30]
call fcn.14002d430
mov r8, rbx
mov edx, 0x2b7e
lea rcx, [rsp + 0x30]
call fcn.14002e500
nop
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x190]
nop
nop
nop
movzx eax, byte [rcx]
mov byte [rdx], al
add rcx, 1
add rdx, 1
test al, al
jne 0x140061600
lea rcx, [rsp + 0x30]
call fcn.14002d2c0
jmp 0x1400616ec
mov rbx, qword [0x140167138]
mov rax, qword [0x140160e18]
mov qword [rsp + 0x38], rax
lea rdx, [0x1400e4ec8]
lea rcx, [rsp + 0x38]
call fcn.14002d430
mov r8, rbx
mov edx, 0x2b80
lea rcx, [rsp + 0x38]
call fcn.14002e500
nop
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x190]
nop
nop
nop
movzx eax, byte [rcx]
mov byte [rdx], al
add rcx, 1
add rdx, 1
test al, al
jne 0x140061670
lea rcx, [rsp + 0x38]
call fcn.14002d2c0
jmp 0x1400616ec
mov rbx, qword [0x140167138]
mov rax, qword [0x140160e18]
mov qword [rsp + 0x48], rax
lea rdx, [0x1400e4ec8]
lea rcx, [rsp + 0x48]
call fcn.14002d430
mov r8, rbx
mov edx, 0x2b7c
lea rcx, [rsp + 0x48]
call fcn.14002e500
nop
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x190]
movzx eax, byte [rcx]
mov byte [rdx], al
add rcx, 1
add rdx, 1
test al, al
jne 0x1400616d1
lea rcx, [rsp + 0x48]
call fcn.14002d2c0
lea rdx, [0x1400e4ec8]
lea rcx, [rsp + 0x50]
call fcn.14002e750
nop
movsxd rax, edi
lea r8, [r12 + rax*8 + 0xb8]
lea rdx, [rsp + 0x50]
mov rcx, r12
call fcn.14005edf0
lea r8d, [rdi + 0x41]
lea r9, [rsp + 0x190]
lea rdx, str._c:__s
lea rcx, [rsp + 0x1d0]
call fcn.1400c2cf0
xor r11d, r11d
mov qword [rsp + 0x68], r11
mov qword [rsp + 0x70], r11
mov qword [rsp + 0x78], r11
mov qword [rsp + 0x80], r11
mov qword [rsp + 0x88], r11
mov qword [rsp + 0x90], r11
mov qword [rsp + 0x98], r11
mov dword [rsp + 0x68], 5
lea rax, [rsp + 0x20]
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x6c], edi
mov qword [rsp + 0x90], rsi
mov dword [rsp + 0x70], r14d
lea r9, [rsp + 0x68]
xor r8d, r8d
mov edx, 0x1007
mov rcx, r13
call qword [sym.imp.USER32.dll_SendMessageA]
mov dword [rsp + 0xb0], 1
lea rcx, [rsp + 0x190]
mov qword [rsp + 0xc0], rcx
mov ebx, eax
lea r9, [rsp + 0xa8]
mov r8d, eax
mov edx, 0x102e
mov rcx, r13
call qword [sym.imp.USER32.dll_SendMessageA]
mov dword [rsp + 0x120], 2
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x130], rax
lea r9, [rsp + 0x118]
mov r8, rbx
mov edx, 0x102e
mov rcx, r13
call qword [sym.imp.USER32.dll_SendMessageA]
nop
lea rcx, [rsp + 0x50]
call fcn.14002d2c0
add edi, 1
mov dword [rsp + 0x60], edi
jmp 0x140061486
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
lea rdx, [0x1400e4ec8]
lea rcx, [rsp + 0x58]
call fcn.14002e750
nop
movsxd rax, edi
lea r8, [r12 + rax*8 + 0xb8]
lea rdx, [rsp + 0x58]
mov rcx, r12
call fcn.14005edf0
mov dword [rsp + 0x1d0], 0x434e55
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], rax
mov dword [rsp + 0x68], 5
lea rax, [rsp + 0x1d0]
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x6c], edi
mov qword [rsp + 0x90], r14
mov dword [rsp + 0x70], r14d
lea r9, [rsp + 0x68]
xor r8d, r8d
mov edx, 0x1007
mov rcx, r13
call qword [sym.imp.USER32.dll_SendMessageA]
mov rbx, rax
mov dword [rsp + 0x160], 2
mov dword [rsp + 0x15c], 2
lea r9, [rsp + 0x150]
xor r8d, r8d
mov edx, 0x102b
mov rcx, r13
call qword [sym.imp.USER32.dll_SendMessageA]
mov dword [rsp + 0xe8], 2
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0xf8], rcx
mov r8d, ebx
lea r9, [rsp + 0xe0]
mov edx, 0x102e
mov rcx, r13
call qword [sym.imp.USER32.dll_SendMessageA]
mov dword [rsp + 0x24], 1
lea rcx, [rsp + 0x58]
call fcn.14002d2c0
nop
mov eax, 1
jmp 0x140061950
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.1400c2a20
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret