Function at 0x140078414
Capabilities:
Get disk information

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
movzx r14d, dx
mov edx, 0x400015
mov ebx, r8d
mov r15, rcx
call fcn.1400633a0
lea rcx, [rsp + 0x38]
mov edx, 0xca
call fcn.140063314
mov r11d, dword [rsp + 0xb0]
xor r8d, r8d
mov eax, r8d
mov ecx, r8d
mov r10d, r11d
and r10d, 0x100
mov edx, r11d
movsx ebp, r11b
and edx, 0x200
cmp r14w, r8w
mov dword [rsp + 0xb0], ebp
setne cl
cmp ebx, r8d
mov dword [rsp + 0x20], edx
setne al
mov r13b, r8b
lea eax, [rcx + rax + 1]
mov dword [rsp + 0x98], eax
movsxd rax, r10d
mov qword [rsp + 0x28], rax
cmp edx, r8d
jne 0x14007858d
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov rbx, qword [r15]
xor r10d, r10d
mov edi, eax
or eax, 0xffffffff
cmp ebp, r10d
mov r12d, 1
mov esi, r10d
cmovl r12d, eax
lea eax, [r10 + 0x19]
cmp ebp, r10d
cmovl esi, eax
mov eax, dword [rsp + 0xa8]
cmp eax, r10d
je 0x1400784f6
cmp eax, 1
not edi
jle 0x1400784f6
and edi, 0xfffffffc
cmp esi, 0x1a
jge 0x140078574
mov r15d, 0x3a
cmp esi, r10d
jl 0x14007856c
mov ecx, esi
mov edx, 1
movsx eax, r12b
shl edx, cl
lea ebp, [rsi + 0x41]
add esi, eax
test edi, edx
je 0x140078567
cmp qword [rsp + 0x28], r10
je 0x140078534
movsx ecx, bpl
call fcn.140101148
xor r10d, r10d
cmp eax, r10d
je 0x140078567
cmp r13b, r10b
je 0x140078547
cmp r14w, r10w
je 0x140078547
mov word [rbx], r14w
add rbx, 2
movsx eax, bpl
mov r13b, 1
mov word [rbx], ax
add rbx, 2
cmp dword [rsp + 0xa0], r10d
je 0x140078567
mov word [rbx], r15w
add rbx, 2
cmp esi, 0x1a
jl 0x140078501
mov r15, qword [rsp + 0x90]
mov r13d, dword [rsp + 0xa8]
mov r12d, dword [rsp + 0x98]
mov word [rbx], r10w
jmp 0x1400787bd
mov rbx, qword [r15]
xor ecx, ecx
lea rdi, [rbx + 0x400010]
mov rdx, rdi
mov qword [rdi], r8
mov qword [rbx], r8
mov r8d, 0x1ffffe
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
xor r10d, r10d
mov r12d, 0x3a
mov eax, eax
cmp rax, r10
mov qword [rsp + 0x30], rax
lea rbp, [rdi + rax*2]
jle 0x140078659
cmp rdi, rbp
jae 0x140078659
mov r15d, dword [rsp + 0xa0]
movzx esi, word [rdi]
add rdi, 2
cmp esi, r10d
je 0x14007863c
cmp word [rdi], r12w
jne 0x14007863c
cmp word [rdi + 2], r10w
jne 0x14007863c
cmp qword [rsp + 0x28], r10
je 0x14007860c
movzx ecx, si
call fcn.140101148
xor r10d, r10d
cmp eax, r10d
je 0x14007863c
cmp r13b, r10b
je 0x14007861f
cmp r14w, r10w
je 0x14007861f
mov word [rbx], r14w
add rbx, 2
mov word [rbx], si
add rbx, 2
mov r13b, 1
cmp r15d, r10d
je 0x14007863c
mov word [rbx], r12w
add rbx, 2
jmp 0x14007863c
add rdi, 2
cmp word [rdi], r10w
jne 0x140078638
add rdi, 2
cmp word [rdi], r10w
je 0x140078651
cmp rdi, rbp
jb 0x1400785dc
mov r15, qword [rsp + 0x90]
mov r13d, dword [rsp + 0xa8]
mov word [rbx], r10w
cmp r13d, r10d
je 0x140078753
mov rbp, qword [rsp + 0xb8]
cmp rbp, r10
je 0x140078753
mov rdi, qword [r15]
mov rbx, rbp
mov edx, 0x2a
cmp word [rbp], r10w
je 0x1400786c3
mov r13d, edx
movzx edx, word [rbx]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_StrChrIW]
xor r10d, r10d
cmp rax, r10
je 0x1400786ac
mov word [rbx], r13w
add rbx, 2
cmp word [rbx], r10w
jne 0x140078694
mov r13d, dword [rsp + 0xa8]
mov edx, 0x2a
mov rbx, qword [r15]
mov sil, r10b
mov rdi, rbp
cmp word [rbp], r10w
je 0x14007874f
mov r15d, dword [rsp + 0xa0]
movzx ecx, word [rdi]
mov eax, ecx
cmp ecx, edx
je 0x140078738
cmp r13d, 1
jle 0x1400786f7
and eax, 0xffffffdf
cmp eax, 0x41
je 0x140078738
cmp eax, 0x42
je 0x140078738
cmp qword [rsp + 0x28], r10
je 0x14007870b
call fcn.140101148
xor r10d, r10d
cmp eax, r10d
je 0x140078738
cmp sil, r10b
je 0x14007871e
cmp r14w, r10w
je 0x14007871e
mov word [rbx], r14w
add rbx, 2
movzx eax, word [rdi]
mov sil, 1
mov word [rbx], ax
add rbx, 2
cmp r15d, r10d
je 0x140078738
mov word [rbx], r12w
add rbx, 2
add rdi, 2
mov edx, 0x2a
cmp word [rdi], r10w
jne 0x1400786db
mov r15, qword [rsp + 0x90]
mov word [rbx], r10w
movsxd r12, dword [rsp + 0x98]
mov esi, dword [rsp + 0xb0]
mov rdx, qword [r15]
lea r9, [r12 + r12]
mov r8, rbx
sub r8, r9
cmp esi, r10d
je 0x1400787bd
cmp qword [rsp + 0x30], r10
je 0x1400787bd
cmp rdx, r8
jae 0x1400787bd
xor r14d, r14d
lea r10, [r9 + rdx]
mov rcx, r10
cmp r10, rbx
jae 0x1400787b2
movzx edi, word [rcx]
movzx r11d, word [rdx]
mov eax, edi
sub eax, r11d
imul eax, esi
cmp eax, r14d
jge 0x1400787aa
mov word [rcx], r11w
mov word [rdx], di
add rcx, r9
cmp rcx, rbx
jb 0x14007878f
mov rdx, r10
cmp r10, r8
jb 0x140078783
xor r10d, r10d
mov rbp, qword [rsp + 0xb8]
cmp rbp, r10
je 0x140078827
cmp dword [rsp + 0x20], r10d
je 0x1400787d6
cmp r13d, r10d
jne 0x140078827
lea rdi, [rbx + 2]
mov rbx, qword [r15]
mov cx, word [rbx]
cmp cx, r10w
je 0x140078827
movsxd rax, r12d
sub rdi, rax
xor r14d, r14d
lea rsi, [rax + rax]
movzx edx, cx
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_StrChrIW]
cmp rax, r14
je 0x140078809
add rbx, rsi
jmp 0x14007881e
mov r8, rdi
lea rdx, [rsi + rbx]
mov rcx, rbx
sub r8, rbx
call fcn.14001d790
sub rdi, rsi
mov cx, word [rbx]
cmp cx, r14w
jne 0x1400787f3
mov rbx, qword [r15]
lea rcx, [rsp + 0x38]
call fcn.14005aef8
mov rax, rbx
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret