Function at 0x14004d420
Capabilities:
Get disk information

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x440]
sub rsp, 0x540
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x580], rbx
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rbp + 0x430], rax
mov rbx, rdx
mov r14, rcx
movzx eax, byte [rcx + 8]
test al, al
jne 0x14004d6e3
mov rcx, rdx
call fcn.14001f680
test al, al
je 0x14004d6ea
xor esi, esi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov r15d, eax
lea rcx, [rsp + 0x50]
call fcn.14001cac0
nop
mov edi, esi
mov ebx, 1
test r15d, ebx
je 0x14004d588
lea r8d, [rdi + 0x41]
lea rdx, str._c:_
lea rcx, [rbp + 0x360]
call fcn.140006c20
lea rcx, [rbp + 0x360]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x14004d588
movzx ecx, word [rbp + 0x360]
call fcn.14006b510
test al, al
jne 0x14004d588
movzx edx, word [rbp + 0x360]
lea rcx, [rbp + 0x90]
call fcn.14001c510
nop
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x50]
call fcn.14001d690
nop
lea rcx, [rbp + 0x90]
call fcn.14001d440
lea rdx, [0x1402d29e0]
lea rcx, [rbp + 0xb8]
call fcn.14001c950
nop
lea rdx, [rbp + 0xb8]
lea rcx, [rsp + 0x50]
call fcn.14001d850
nop
lea rcx, [rbp + 0xb8]
call fcn.14001d440
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
je 0x14004d576
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.14001c0d0
add qword [rsp + 0x30], 0x28
jmp 0x14004d588
lea r8, [rsp + 0x50]
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400030a0
inc edi
rol ebx, 1
cmp edi, 0x20
jb 0x14004d4a7
lea rcx, [rsp + 0x50]
call fcn.14001d440
mov edi, esi
mov rcx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x28]
sub rcx, r8
movabs r15, 0x6666666666666667
mov rax, r15
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x14004d6d9
mov rax, rsi
nop word [rax + rax]
lea rax, [rax + rax*4]
lea rbx, [rax*8]
lea rdx, [rbx + r8]
lea rcx, [rbp - 0x10]
call fcn.14001c0d0
nop
xor edx, edx
lea rcx, [rbp - 0x10]
call fcn.14001f4b0
lea rdx, [rbp - 0x10]
mov rcx, r14
call fcn.14004c970
test al, al
jne 0x14004d6a1
lea rcx, [rbp + 0x20]
call fcn.14001cac0
nop
lea rcx, [rbp + 0x48]
call fcn.14001cac0
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x70], xmm0
mov qword [rbp + 0x80], rsi
mov dword [rbp + 0x88], esi
mov byte [rbp + 0x8c], 1
mov rdx, qword [rsp + 0x28]
add rdx, rbx
lea rcx, [rbp + 0x20]
call fcn.14001d690
mov rdx, qword [rsp + 0x28]
add rdx, rbx
lea rcx, [rbp + 0x48]
call fcn.14001d690
mov rdx, qword [r14 + 0x18]
lea r8, [rbp + 0x20]
lea rcx, [r14 + 0x10]
cmp qword [r14 + 0x20], rdx
je 0x14004d688
call fcn.14004bfb0
add qword [r14 + 0x18], 0x70
jmp 0x14004d68e
call fcn.14004bcd0
nop
lea rcx, [rbp + 0x48]
call fcn.14001d440
lea rcx, [rbp + 0x20]
call fcn.14001d440
nop
lea rcx, [rbp - 0x10]
call fcn.14001d440
inc edi
mov rcx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x28]
sub rcx, r8
mov rax, r15
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
movsxd rax, edi
cmp rax, rdx
jb 0x14004d5e0
lea rcx, [rsp + 0x28]
call fcn.140002cd0
xor eax, eax
jmp 0x14004d816
mov byte [rsp + 0x20], 1
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140015f00
test al, al
je 0x14004d80b
cmp byte [rsp + 0x20], 0
jne 0x14004d80b
mov rdx, rbx
mov rcx, r14
call fcn.14004c970
test al, al
jne 0x14004d6e3
mov rcx, rbx
call fcn.14002aa20
mov rcx, rax
lea rdx, [rbp + 0x110]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14004d6e3
lea rcx, [rbp - 0x80]
call fcn.14001cac0
nop
lea rcx, [rbp - 0x58]
call fcn.14001cac0
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x30], xmm0
xor esi, esi
mov qword [rbp - 0x20], rsi
mov byte [rbp - 0x14], sil
mov dword [rbp - 0x18], esi
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.14001d690
lea rdx, [rbp + 0x13c]
lea rcx, [rbp + 0xe0]
call fcn.14001c950
nop
lea rdx, [rbp + 0xe0]
lea rcx, [rbp - 0x58]
call fcn.14001d690
nop
lea rcx, [rbp + 0xe0]
call fcn.14001d440
lea rcx, [rbp + 0x124]
call fcn.140032fc0
mov qword [rbp - 0x28], rax
lea rcx, [rbp + 0x114]
call fcn.140032fc0
mov qword [rbp - 0x20], rax
mov byte [rbp - 0x14], sil
mov edx, dword [rbp + 0x12c]
shl rdx, 0x20
mov eax, dword [rbp + 0x130]
add rdx, rax
mov qword [rbp - 0x30], rdx
lea rdx, [rbp - 0x80]
mov rcx, r14
call fcn.14004caf0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
lea rcx, [rbp - 0x58]
call fcn.14001d440
lea rcx, [rbp - 0x80]
call fcn.14001d440
xor eax, eax
jmp 0x14004d816
mov rdx, rbx
mov rcx, r14
call fcn.14004c5c0
mov rcx, qword [rbp + 0x430]
xor rcx, rsp
call fcn.140283120
mov rbx, qword [rsp + 0x580]
add rsp, 0x540
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret