Function at 0x140047c48
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, [0x14007e48a]
mov qword [rbp - 0x68], rax
call fcn.140042d58
xor esi, esi
mov dword [rsp + 0x48], 0x3a0000
mov word [rsp + 0x4c], si
lea ecx, [rsi + 0x32]
lea r12d, [rsi + 0x19]
call fcn.14003f854
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 0x140047cc5
movsxd rax, edi
lea r14, [rbp + rax*8 - 0x268]
jmp 0x140047d51
mov word [rsp + 0x48], bx
mov rdx, r15
jmp 0x140047d06
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140047cb5
mov r8d, r12d
xor edx, edx
add r8, r8
mov rcx, r15
call sub.ntdll.dll_memset
mov rcx, r15
call fcn.14003ff2c
add r12d, r12d
mov ecx, r12d
add rcx, rcx
call fcn.14003f854
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 0x140047ccf
lea r14, [rbp + rdi*8 - 0x268]
cmp eax, 2
jb 0x140047d51
lea ecx, [rax - 2]
mov qword [rbp + rdi*8 + 0x2c8], rcx
lea edi, [rax - 1]
add rdi, rdi
mov rcx, rdi
call fcn.14003f854
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 0x140047ca6
mov r8d, r12d
xor edx, edx
add r8, r8
mov rcx, r15
call sub.ntdll.dll_memset
mov rcx, r15
call fcn.14003ff2c
lea rdx, [rbp + 0x5a0]
lea rcx, [0x14007e49a]
call fcn.140040a24
mov edx, 0x104
lea rcx, [rbp + 0x70]
call fcn.140044d8c
mov r13d, eax
lea rdx, [rbp + 0x70]
lea rcx, [0x14007e4a8]
mov dword [rsp + 0x54], r13d
lea rdx, [rdx + r13*2]
call fcn.1400071ac
lea rdx, [rbp + 0x280]
lea rcx, [rbp + 0x70]
call fcn.14003ec5c
mov qword [rbp - 0x70], rax
mov rbx, rax
lea esi, [r14 + 0x19]
cmp rax, 0xffffffffffffffff
jne 0x140047dfb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x14007e4c6]
call fcn.14003e9d0
jmp 0x14004844b
lea rcx, [rbp + 0x70]
mov dword [rbp + 0x808], r14d
mov r12b, r14b
mov byte [rbp + 0x800], r14b
call fcn.14003a628
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.14003f854
mov r8d, 0x200000
mov qword [rsp + 0x68], rax
mov ecx, r8d
mov qword [rsp + 0x58], r8
mov rsi, rax
call fcn.14003f854
mov ecx, 4
mov qword [rsp + 0x70], rax
lea r8, [rbp - 0x78]
mov r14, rax
lea rdx, [rbp + 0x810]
call fcn.140046b70
test eax, eax
jns 0x140047e8d
mov edx, eax
lea rcx, [0x14007e528]
call fcn.14003e9d0
jmp 0x14004843a
mov ecx, dword [rbp + 0x810]
call fcn.14003f854
mov r8d, 0x100
mov qword [rbp - 0x80], rax
mov ecx, 0x200
mov qword [rsp + 0x60], r8
call fcn.14003f854
mov r13, rax
xor eax, eax
mov edx, 1
test r12b, r12b
jne 0x140047ede
lea rdx, [rbp + 0x280]
mov rcx, rbx
call fcn.14003ecac
mov ecx, eax
mov dword [rbp + 0x808], eax
mov edx, 1
jmp 0x140047eed
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 0x140047ebb
test ecx, ecx
je 0x1400483a8
mov rdx, rdi
lea rcx, [rbp + 0x2ac]
call fcn.140048558
xor ebx, ebx
cmp dword [rbp + 0x29c], ebx
je 0x140047f31
lea rcx, [0x14007e614]
call fcn.14003e9d0
jmp 0x140048287
cmp dword [rbp + 0x2a0], 0xdc
jae 0x140047f46
lea rcx, [0x14007e664]
jmp 0x140047f27
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.140028dbc
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x140047f91
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x14007e6e0]
call fcn.14003e9d0
jmp 0x140048287
mov r8d, dword [rbp + 0x2a0]
cmp r15, r8
jae 0x140047fd1
mov r8, r15
xor edx, edx
mov rcx, rsi
call sub.ntdll.dll_memset
mov rcx, rsi
call fcn.14003ff2c
mov ecx, dword [rbp + 0x2a0]
call fcn.14003f854
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.140040c94
test eax, eax
jne 0x140048005
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x14007e73c]
call fcn.14003e9d0
jmp 0x14004839b
mov eax, dword [rbp + 0x2a0]
cmp dword [rbp + 0x818], eax
je 0x140048024
lea rcx, [0x14007e792]
call fcn.14003e9d0
jmp 0x14004839b
cmp dword [rsi], 0x44d414d
mov rdi, rsi
jne 0x1400480d1
mov ebx, dword [rsi + 4]
mov rdi, qword [rsp + 0x58]
cmp rdi, rbx
jae 0x140048075
mov r8, rdi
xor edx, edx
mov rcx, r14
call sub.ntdll.dll_memset
mov rcx, r14
call fcn.14003ff2c
mov ecx, dword [rsi + 4]
call fcn.14003f854
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.140046b00
test eax, eax
jns 0x1400480ba
mov edx, eax
lea rcx, [0x14007e80c]
call fcn.14003e9d0
jmp 0x140048396
cmp dword [rsp + 0x50], ebx
je 0x1400480cc
lea rcx, [0x14007e886]
jmp 0x140048391
mov rdi, r14
jmp 0x1400480d3
mov ebx, eax
cmp dword [rdi + 4], 0x41434353
je 0x1400480e8
lea rcx, [0x14007e916]
jmp 0x140048391
cmp dword [rdi + 0xc], ebx
je 0x1400480f9
lea rcx, [0x14007e972]
jmp 0x140048391
cmp dword [rdi], 0x1e
je 0x14004810a
lea rcx, [0x14007e9cc]
jmp 0x140048391
mov ecx, dword [rdi + 0x64]
mov r8d, 0xdc
cmp ecx, r8d
jb 0x14004838a
add ecx, dword [rdi + 0x68]
cmp ecx, dword [rdi + 0xc]
ja 0x14004838a
mov edx, dword [rdi + 0xd4]
cmp edx, r8d
jb 0x14004833f
mov ecx, dword [rdi + 0xd8]
add ecx, edx
cmp ecx, dword [rdi + 0xc]
ja 0x14004833f
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 0x14004817c
lea rcx, [0x14007eba0]
jmp 0x140048391
mov r8d, 8
lea rcx, [0x14007ebfe]
mov rdx, r15
call fcn.1400484f0
xor edx, edx
test al, al
je 0x140048396
movzx edi, dx
movzx eax, di
mov rcx, qword [rbp + rax*8 - 0x60]
test rcx, rcx
je 0x1400481c4
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 0x1400481dd
add di, si
mov eax, 0x1a
cmp di, ax
jb 0x14004819e
lea rcx, [0x14007ec10]
jmp 0x140048391
mov rax, qword [rsp + 0x60]
sub rbx, r14
lea rsi, [rbx + 2]
cmp rax, rsi
jae 0x140048213
lea r8, [rax + rax]
mov rcx, r13
call sub.ntdll.dll_memset
mov rcx, r13
call fcn.14003ff2c
lea rcx, [rsi + rsi]
mov qword [rsp + 0x60], rsi
call fcn.14003f854
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.14003b164
cmp eax, 0xffffffff
jne 0x1400482ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, r13
lea rcx, [0x14007ec7c]
mov r8d, eax
call fcn.14003e9d0
mov rcx, r12
call fcn.1400047c4
lea rcx, [rbp + 0x70]
call fcn.14003e5b0
test eax, eax
jne 0x140048282
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x14007ecca]
mov edx, eax
call fcn.14003e9d0
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 0x140047eb6
mov rdx, r13
lea rcx, [0x14008f700]
call fcn.1400294e8
mov rdx, r13
test al, al
je 0x1400482f1
lea rcx, [0x14007ed26]
call fcn.14003e9d0
mov rcx, r12
call fcn.1400047c4
lea rcx, [rbp + 0x70]
call fcn.14003e5b0
test eax, eax
jne 0x140048282
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x14007ed6a]
jmp 0x14004827b
lea rcx, [rbp + 0x5a0]
call fcn.1400294e8
test al, al
je 0x140048396
mov rdx, r13
lea rcx, [0x14007edc6]
call fcn.14003e9d0
mov rcx, r12
call fcn.1400047c4
lea rcx, [rbp + 0x70]
call fcn.14003e5b0
test eax, eax
jne 0x140048282
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x14007ee0c]
jmp 0x14004827b
mov rcx, r12
call fcn.1400047c4
lea rcx, [rbp + 0x70]
call fcn.14003e5b0
test eax, eax
jne 0x140048368
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x14007ea7c]
call fcn.14003e9d0
mov r9d, dword [rdi + 0xc]
lea rcx, [0x14007ead8]
mov r8d, dword [rdi + 0xd8]
mov edx, dword [rdi + 0xd4]
call fcn.14003e9d0
jmp 0x140048282
lea rcx, [0x14007ea1e]
call fcn.14003e9d0
mov rdi, qword [rsp + 0x40]
mov rcx, r12
call fcn.1400047c4
jmp 0x140048287
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1400483c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x14007e5b4]
call fcn.14003e9d0
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.14003ff2c
mov r8, qword [rsp + 0x58]
xor edx, edx
mov rcx, r14
call sub.ntdll.dll_memset
mov rcx, r14
call fcn.14003ff2c
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.14003ff2c
mov r8, qword [rsp + 0x60]
xor edx, edx
add r8, r8
mov rcx, r13
call sub.ntdll.dll_memset
mov rcx, r13
call fcn.14003ff2c
mov r13d, dword [rsp + 0x54]
mov rcx, rbx
call fcn.14003ec18
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 0x14004848f
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.14003ff2c
xor eax, eax
add rdi, 8
sub rsi, r14
jne 0x140048466
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
sub rax, qword [rbp - 0x68]
lea rcx, [0x14007ee68]
mov rdx, rax
call fcn.14003e9d0
add rsp, 0x8b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret