Function at 0x1400478ac
Capabilities:
Get disk information

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7b8]
sub rsp, 0x8b8
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
xor edx, edx
lea rcx, [0x14007e4f0]
mov qword [rbp - 0x68], rax
call fcn.140042a50
xor esi, esi
mov dword [rsp + 0x48], 0x3a0000
mov word [rsp + 0x4c], si
lea ecx, [rsi + 0x32]
lea r12d, [rsi + 0x19]
call fcn.14003f888
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov r13d, eax
lea ebx, [rsi + 0x41]
movzx edi, bx
lea ecx, [rdi - 0x41]
movzx edx, cl
bt r13d, edx
jb 0x140047929
movsxd rax, edi
lea r14, [rbp + rax*8 - 0x268]
jmp 0x1400479b5
mov word [rsp + 0x48], bx
mov rdx, r15
jmp 0x14004796a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140047919
mov r8d, r12d
xor edx, edx
add r8, r8
mov rcx, r15
call sub.ntdll.dll_memset
mov rcx, r15
call fcn.14003ff60
add r12d, r12d
mov ecx, r12d
add rcx, rcx
call fcn.14003f888
mov r15, rax
mov rdx, rax
mov r8d, r12d
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov edx, eax
test eax, eax
je 0x140047933
lea r14, [rbp + rdi*8 - 0x268]
cmp eax, 2
jb 0x1400479b5
lea ecx, [rax - 2]
mov qword [rbp + rdi*8 + 0x2c8], rcx
lea edi, [rax - 1]
add rdi, rdi
mov rcx, rdi
call fcn.14003f888
mov r8, rdi
mov rdx, r15
mov rcx, rax
mov rsi, rax
call sub.ntdll.dll_memcpy
mov qword [r14], rsi
mov r14d, 1
add bx, r14w
lea esi, [r14 - 1]
cmp bx, 0x5a
jbe 0x14004790a
mov r8d, r12d
xor edx, edx
add r8, r8
mov rcx, r15
call sub.ntdll.dll_memset
mov rcx, r15
call fcn.14003ff60
lea rdx, [rbp + 0x5a0]
lea rcx, [0x14007e500]
call fcn.140040a58
mov edx, 0x104
lea rcx, [rbp + 0x70]
call fcn.140044b58
mov r13d, eax
lea rdx, [rbp + 0x70]
lea rcx, [0x14007e50e]
mov dword [rsp + 0x54], r13d
lea rdx, [rdx + r13*2]
call fcn.1400071ac
lea rdx, [rbp + 0x280]
lea rcx, [rbp + 0x70]
call fcn.14003ec90
mov qword [rbp - 0x70], rax
mov rbx, rax
lea esi, [r14 + 0x19]
cmp rax, 0xffffffffffffffff
jne 0x140047a5f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x14007e52c]
call fcn.14003ea04
jmp 0x1400480af
lea rcx, [rbp + 0x70]
mov dword [rbp + 0x808], r14d
mov r12b, r14b
mov byte [rbp + 0x800], r14b
call fcn.14003a550
sub rax, 4
lea rdi, [rbp + 0x70]
mov r15d, 0x80000
mov ecx, r15d
mov qword [rsp + 0x78], r15
lea rdi, [rdi + rax*2]
xor eax, eax
mov word [rdi], ax
mov qword [rsp + 0x40], rdi
call fcn.14003f888
mov r8d, 0x200000
mov qword [rsp + 0x68], rax
mov ecx, r8d
mov qword [rsp + 0x58], r8
mov rsi, rax
call fcn.14003f888
mov ecx, 4
mov qword [rsp + 0x70], rax
lea r8, [rbp - 0x78]
mov r14, rax
lea rdx, [rbp + 0x810]
call fcn.1400467d4
test eax, eax
jns 0x140047af1
mov edx, eax
lea rcx, [0x14007e58e]
call fcn.14003ea04
jmp 0x14004809e
mov ecx, dword [rbp + 0x810]
call fcn.14003f888
mov r8d, 0x100
mov qword [rbp - 0x80], rax
mov ecx, 0x200
mov qword [rsp + 0x60], r8
call fcn.14003f888
mov r13, rax
xor eax, eax
mov edx, 1
test r12b, r12b
jne 0x140047b42
lea rdx, [rbp + 0x280]
mov rcx, rbx
call fcn.14003ece0
mov ecx, eax
mov dword [rbp + 0x808], eax
mov edx, 1
jmp 0x140047b51
mov ecx, dword [rbp + 0x808]
mov r12b, al
mov byte [rbp + 0x800], al
mov eax, dword [rbp + 0x280]
shr eax, 4
test dl, al
mov eax, 0
jne 0x140047b1f
test ecx, ecx
je 0x14004800c
mov rdx, rdi
lea rcx, [rbp + 0x2ac]
call fcn.1400481bc
xor ebx, ebx
cmp dword [rbp + 0x29c], ebx
je 0x140047b95
lea rcx, [0x14007e67a]
call fcn.14003ea04
jmp 0x140047eeb
cmp dword [rbp + 0x2a0], 0xdc
jae 0x140047baa
lea rcx, [0x14007e6ca]
jmp 0x140047b8b
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
lea rcx, [rbp + 0x70]
mov dword [rsp + 0x20], 3
lea edx, [r9 + 1]
lea r8d, [r9 + 7]
call fcn.140028d18
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x140047bf5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x14007e746]
call fcn.14003ea04
jmp 0x140047eeb
mov r8d, dword [rbp + 0x2a0]
cmp r15, r8
jae 0x140047c35
mov r8, r15
xor edx, edx
mov rcx, rsi
call sub.ntdll.dll_memset
mov rcx, rsi
call fcn.14003ff60
mov ecx, dword [rbp + 0x2a0]
call fcn.14003f888
mov r8d, dword [rbp + 0x2a0]
mov rsi, rax
mov qword [rsp + 0x78], r8
mov qword [rsp + 0x68], rax
lea r9, [rbp + 0x818]
mov qword [rsp + 0x20], rbx
mov rdx, rsi
mov rcx, r12
call fcn.140040cc8
test eax, eax
jne 0x140047c69
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x14007e7a2]
call fcn.14003ea04
jmp 0x140047fff
mov eax, dword [rbp + 0x2a0]
cmp dword [rbp + 0x818], eax
je 0x140047c88
lea rcx, [0x14007e7f8]
call fcn.14003ea04
jmp 0x140047fff
cmp dword [rsi], 0x44d414d
mov rdi, rsi
jne 0x140047d35
mov ebx, dword [rsi + 4]
mov rdi, qword [rsp + 0x58]
cmp rdi, rbx
jae 0x140047cd9
mov r8, rdi
xor edx, edx
mov rcx, r14
call sub.ntdll.dll_memset
mov rcx, r14
call fcn.14003ff60
mov ecx, dword [rsi + 4]
call fcn.14003f888
mov edi, dword [rsi + 4]
mov r14, rax
mov qword [rsp + 0x70], rax
mov ebx, edi
mov eax, dword [rbp + 0x2a0]
mov qword [rsp + 0x58], rdi
mov rdx, qword [rbp - 0x80]
lea r9, [rsi + 8]
mov qword [rsp + 0x30], rdx
add eax, 0xfffffff8
lea rdx, [rsp + 0x50]
mov ecx, 4
mov qword [rsp + 0x28], rdx
mov r8d, ebx
mov rdx, r14
mov dword [rsp + 0x20], eax
call fcn.140046764
test eax, eax
jns 0x140047d1e
mov edx, eax
lea rcx, [0x14007e872]
call fcn.14003ea04
jmp 0x140047ffa
cmp dword [rsp + 0x50], ebx
je 0x140047d30
lea rcx, [0x14007e8ec]
jmp 0x140047ff5
mov rdi, r14
jmp 0x140047d37
mov ebx, eax
cmp dword [rdi + 4], 0x41434353
je 0x140047d4c
lea rcx, [0x14007e97c]
jmp 0x140047ff5
cmp dword [rdi + 0xc], ebx
je 0x140047d5d
lea rcx, [0x14007e9d8]
jmp 0x140047ff5
cmp dword [rdi], 0x1e
je 0x140047d6e
lea rcx, [0x14007ea32]
jmp 0x140047ff5
mov ecx, dword [rdi + 0x64]
mov r8d, 0xdc
cmp ecx, r8d
jb 0x140047fee
add ecx, dword [rdi + 0x68]
cmp ecx, dword [rdi + 0xc]
ja 0x140047fee
mov edx, dword [rdi + 0xd4]
cmp edx, r8d
jb 0x140047fa3
mov ecx, dword [rdi + 0xd8]
add ecx, edx
cmp ecx, dword [rdi + 0xc]
ja 0x140047fa3
lea r15, [rdi + rdx]
mov rcx, r15
call sub.ntdll.dll_wcslen
mov ecx, dword [rdi + 0xd8]
mov esi, 1
lea rbx, [rsi + rax]
lea rdx, [rbx*2 + 2]
cmp rdx, rcx
je 0x140047de0
lea rcx, [0x14007ec06]
jmp 0x140047ff5
mov r8d, 8
lea rcx, [0x14007ec64]
mov rdx, r15
call fcn.140048154
xor edx, edx
test al, al
je 0x140047ffa
movzx edi, dx
movzx eax, di
mov rcx, qword [rbp + rax*8 - 0x60]
test rcx, rcx
je 0x140047e28
mov r14, qword [rbp + rax*8 + 0x4d0]
mov rdx, r15
mov r8, r14
call sub.ntdll.dll__wcsnicmp
xor edx, edx
test eax, eax
je 0x140047e41
add di, si
mov eax, 0x1a
cmp di, ax
jb 0x140047e02
lea rcx, [0x14007ec76]
jmp 0x140047ff5
mov rax, qword [rsp + 0x60]
sub rbx, r14
lea rsi, [rbx + 2]
cmp rax, rsi
jae 0x140047e77
lea r8, [rax + rax]
mov rcx, r13
call sub.ntdll.dll_memset
mov rcx, r13
call fcn.14003ff60
lea rcx, [rsi + rsi]
mov qword [rsp + 0x60], rsi
call fcn.14003f888
mov r13, rax
add di, 0x41
mov word [r13 + 2], 0x3a
lea r8, [rbx + rbx]
mov word [r13], di
lea rdx, [r15 + r14*2]
lea rcx, [r13 + 4]
call sub.ntdll.dll_memcpy
mov rcx, r13
call fcn.14003b08c
cmp eax, 0xffffffff
jne 0x140047f0f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, r13
lea rcx, [0x14007ece2]
mov r8d, eax
call fcn.14003ea04
mov rcx, r12
call fcn.1400047c4
lea rcx, [rbp + 0x70]
call fcn.14003e5e4
test eax, eax
jne 0x140047ee6
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x14007ed30]
mov edx, eax
call fcn.14003ea04
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x68]
xor eax, eax
mov rbx, qword [rbp - 0x70]
mov r14, qword [rsp + 0x70]
mov r15, qword [rsp + 0x78]
mov r12b, byte [rbp + 0x800]
mov word [rdi], ax
jmp 0x140047b1a
mov rdx, r13
lea rcx, [0x14008f700]
call fcn.140029444
mov rdx, r13
test al, al
je 0x140047f55
lea rcx, [0x14007ed8c]
call fcn.14003ea04
mov rcx, r12
call fcn.1400047c4
lea rcx, [rbp + 0x70]
call fcn.14003e5e4
test eax, eax
jne 0x140047ee6
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x14007edd0]
jmp 0x140047edf
lea rcx, [rbp + 0x5a0]
call fcn.140029444
test al, al
je 0x140047ffa
mov rdx, r13
lea rcx, [0x14007ee2c]
call fcn.14003ea04
mov rcx, r12
call fcn.1400047c4
lea rcx, [rbp + 0x70]
call fcn.14003e5e4
test eax, eax
jne 0x140047ee6
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x14007ee72]
jmp 0x140047edf
mov rcx, r12
call fcn.1400047c4
lea rcx, [rbp + 0x70]
call fcn.14003e5e4
test eax, eax
jne 0x140047fcc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x14007eae2]
call fcn.14003ea04
mov r9d, dword [rdi + 0xc]
lea rcx, [0x14007eb3e]
mov r8d, dword [rdi + 0xd8]
mov edx, dword [rdi + 0xd4]
call fcn.14003ea04
jmp 0x140047ee6
lea rcx, [0x14007ea84]
call fcn.14003ea04
mov rdi, qword [rsp + 0x40]
mov rcx, r12
call fcn.1400047c4
jmp 0x140047eeb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x14004802b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x14007e61a]
call fcn.14003ea04
xor eax, eax
lea rdi, [rbp + 0x70]
mov ecx, 0x208
mov r8, r15
rep stosb byte [rdi], al
mov rcx, rsi
xor edx, edx
call sub.ntdll.dll_memset
mov rcx, rsi
call fcn.14003ff60
mov r8, qword [rsp + 0x58]
xor edx, edx
mov rcx, r14
call sub.ntdll.dll_memset
mov rcx, r14
call fcn.14003ff60
mov r8d, dword [rbp + 0x810]
xor edx, edx
mov rcx, qword [rbp - 0x80]
call sub.ntdll.dll_memset
mov rcx, qword [rbp - 0x80]
call fcn.14003ff60
mov r8, qword [rsp + 0x60]
xor edx, edx
add r8, r8
mov rcx, r13
call sub.ntdll.dll_memset
mov rcx, r13
call fcn.14003ff60
mov r13d, dword [rsp + 0x54]
mov rcx, rbx
call fcn.14003ec4c
mov esi, 0x1a
lea r14d, [rsi - 0x19]
xor eax, eax
lea rdi, [rbp + 0x280]
mov ecx, 0x250
rep stosb byte [rdi], al
mov ecx, r13d
lea rdi, [rbp + 0x70]
rep stosb byte [rdi], al
mov edi, eax
mov rbx, qword [rbp + rdi - 0x60]
test rbx, rbx
je 0x1400480f3
mov r8, qword [rbp + rdi + 0x4d0]
xor edx, edx
add r8, r8
mov rcx, rbx
call sub.ntdll.dll_memset
mov rcx, rbx
call fcn.14003ff60
xor eax, eax
add rdi, 8
sub rsi, r14
jne 0x1400480ca
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
sub rax, qword [rbp - 0x68]
lea rcx, [0x14007eece]
mov rdx, rax
call fcn.14003ea04
add rsp, 0x8b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret