Function at 0x140050d90
Capabilities:
Get disk information

Disassembly:
push rbp
push rsi
push r12
push r13
sub rsp, 0xbf8
mov rax, qword [0x140112ac0]
xor rax, rsp
mov qword [rsp + 0xbe0], rax
xor r13d, r13d
mov rbp, rcx
mov r12, rdx
mov dword [rsp + 0x1c0], r13d
lea rcx, [rsp + 0x3e2]
xor edx, edx
mov r8d, 0x7fe
mov esi, r13d
mov word [rsp + 0x3e0], r13w
call fcn.1400ac250
lea rdx, [rsp + 0x3e0]
mov ecx, 0x3ff
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x140050e4d
call fcn.14003e110
cmp eax, 2
jg 0x140050e33
lea r9d, [r13 + 2]
lea r8d, [r13 + 0x29]
lea rdx, str.._file_util_win.cc
lea rcx, [rsp + 0xc0]
lea esi, [r13 + 1]
call fcn.1400403f0
lea rdx, str.Failed_to_get_drive_mapping.
lea rcx, [rax + 8]
call fcn.140005bd0
test sil, 1
je 0x140050e46
lea rcx, [rsp + 0xc0]
call fcn.14003feb0
xor al, al
jmp 0x140050f68
mov eax, dword [0x1400eb7bc]
lea rcx, [rsp + 0x1c0]
mov qword [rsp + 0xc30], rbx
mov dword [rcx], eax
movzx eax, word [0x1400eb7c0]
mov qword [rsp + 0xbf0], rdi
lea rbx, [rsp + 0x3e0]
mov word [rcx + 4], ax
cmp word [rsp + 0x3e0], si
je 0x140050f56
nop
movzx eax, word [rbx]
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0x1c0]
mov r8d, 0x104
mov word [rsp + 0x1c0], ax
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x140050f15
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x1d0]
repne scasw ax, word [rdi]
lea rdx, [rsp + 0x1d0]
mov qword [rsp + 0x40], 7
not rcx
mov qword [rsp + 0x38], r13
mov word [rsp + 0x28], r13w
lea r8, [rcx - 1]
lea rcx, [rsp + 0x20]
call fcn.1400041c0
lea rdx, [rsp + 0x20]
mov r8b, 1
mov rcx, rbp
or esi, 2
call fcn.14005f590
test al, al
je 0x140050f15
mov dil, 1
jmp 0x140050f18
xor dil, dil
test sil, 2
je 0x140050f33
and esi, 0xfffffffd
cmp qword [rsp + 0x40], 8
jb 0x140050f33
mov rcx, qword [rsp + 0x28]
call fcn.1400ab7f0
test dil, dil
jne 0x140050f86
nop dword [rax + rax]
movzx eax, word [rbx]
add rbx, 2
test ax, ax
jne 0x140050f40
cmp word [rbx], r13w
jne 0x140050e90
xor al, al
mov rbx, qword [rsp + 0xc30]
mov rdi, qword [rsp + 0xbf0]
mov rcx, qword [rsp + 0xbe0]
xor rcx, rsp
call fcn.1400ac220
add rsp, 0xbf8
pop r13
pop r12
pop rsi
pop rbp
ret
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x1d0]
repne scasw ax, word [rdi]
or r9, 0xffffffffffffffff
mov rdx, rbp
not rcx
mov qword [rsp + 0x90], 7
mov qword [rsp + 0x88], r13
lea r8, [rcx - 1]
lea rcx, [rsp + 0x70]
mov word [rsp + 0x78], r13w
call fcn.140003e20
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x1c0]
lea rdx, [rsp + 0x1c0]
mov qword [rsp + 0x68], 7
repne scasw ax, word [rdi]
mov qword [rsp + 0x60], r13
mov word [rsp + 0x50], r13w
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x48]
call fcn.1400041c0
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
or r9, 0xffffffffffffffff
xor r8d, r8d
call fcn.140004070
lea rcx, [rsp + 0x20]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], r13
mov word [rsp + 0x28], r13w
call fcn.140003e20
cmp qword [rsp + 0x68], 8
jb 0x140051057
mov rcx, qword [rsp + 0x50]
call fcn.1400ab7f0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x98]
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r13
mov word [rsp + 0x50], r13w
call fcn.140069770
mov rdx, rax
mov rcx, r12
call fcn.140069f80
lea rcx, [rsp + 0x98]
call fcn.140069390
cmp qword [rsp + 0x40], 8
jb 0x1400510a7
mov rcx, qword [rsp + 0x28]
call fcn.1400ab7f0
cmp qword [rsp + 0x90], 8
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], r13
mov word [rsp + 0x28], r13w
jb 0x1400510d0
mov rcx, qword [rsp + 0x78]
call fcn.1400ab7f0
mov al, 1
jmp 0x140050f58