Function at 0x140047cc0
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, [0x14007e01c]
mov qword [rbp - 0x68], rax
call fcn.140042d9c
xor esi, esi
mov dword [rsp + 0x48], 0x3a0000
mov word [rsp + 0x4c], si
lea ecx, [rsi + 0x32]
lea r12d, [rsi + 0x19]
call fcn.14003f898
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 0x140047d3d
movsxd rax, edi
lea r14, [rbp + rax*8 - 0x268]
jmp 0x140047dc9
mov word [rsp + 0x48], bx
mov rdx, r15
jmp 0x140047d7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140047d2d
mov r8d, r12d
xor edx, edx
add r8, r8
mov rcx, r15
call sub.ntdll.dll_memset
mov rcx, r15
call fcn.14003ff70
add r12d, r12d
mov ecx, r12d
add rcx, rcx
call fcn.14003f898
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 0x140047d47
lea r14, [rbp + rdi*8 - 0x268]
cmp eax, 2
jb 0x140047dc9
lea ecx, [rax - 2]
mov qword [rbp + rdi*8 + 0x2c8], rcx
lea edi, [rax - 1]
add rdi, rdi
mov rcx, rdi
call fcn.14003f898
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 0x140047d1e
mov r8d, r12d
xor edx, edx
add r8, r8
mov rcx, r15
call sub.ntdll.dll_memset
mov rcx, r15
call fcn.14003ff70
lea rdx, [rbp + 0x5a0]
lea rcx, [0x14007e02c]
call fcn.140040a68
mov edx, 0x104
lea rcx, [rbp + 0x70]
call fcn.140044f6c
mov r13d, eax
lea rdx, [rbp + 0x70]
lea rcx, [0x14007e03a]
mov dword [rsp + 0x54], r13d
lea rdx, [rdx + r13*2]
call fcn.1400071ac
lea rdx, [rbp + 0x280]
lea rcx, [rbp + 0x70]
call fcn.14003eca0
mov qword [rbp - 0x70], rax
mov rbx, rax
lea esi, [r14 + 0x19]
cmp rax, 0xffffffffffffffff
jne 0x140047e73
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x14007e058]
call fcn.14003ea14
jmp 0x1400484c3
lea rcx, [rbp + 0x70]
mov dword [rbp + 0x808], r14d
mov r12b, r14b
mov byte [rbp + 0x800], r14b
call fcn.14003a5c0
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.14003f898
mov r8d, 0x200000
mov qword [rsp + 0x68], rax
mov ecx, r8d
mov qword [rsp + 0x58], r8
mov rsi, rax
call fcn.14003f898
mov ecx, 4
mov qword [rsp + 0x70], rax
lea r8, [rbp - 0x78]
mov r14, rax
lea rdx, [rbp + 0x810]
call fcn.140046be8
test eax, eax
jns 0x140047f05
mov edx, eax
lea rcx, [0x14007e0ba]
call fcn.14003ea14
jmp 0x1400484b2
mov ecx, dword [rbp + 0x810]
call fcn.14003f898
mov r8d, 0x100
mov qword [rbp - 0x80], rax
mov ecx, 0x200
mov qword [rsp + 0x60], r8
call fcn.14003f898
mov r13, rax
xor eax, eax
mov edx, 1
test r12b, r12b
jne 0x140047f56
lea rdx, [rbp + 0x280]
mov rcx, rbx
call fcn.14003ecf0
mov ecx, eax
mov dword [rbp + 0x808], eax
mov edx, 1
jmp 0x140047f65
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 0x140047f33
test ecx, ecx
je 0x140048420
mov rdx, rdi
lea rcx, [rbp + 0x2ac]
call fcn.1400485d0
xor ebx, ebx
cmp dword [rbp + 0x29c], ebx
je 0x140047fa9
lea rcx, [0x14007e1a6]
call fcn.14003ea14
jmp 0x1400482ff
cmp dword [rbp + 0x2a0], 0xdc
jae 0x140047fbe
lea rcx, [0x14007e1f6]
jmp 0x140047f9f
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.140028d50
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x140048009
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x14007e272]
call fcn.14003ea14
jmp 0x1400482ff
mov r8d, dword [rbp + 0x2a0]
cmp r15, r8
jae 0x140048049
mov r8, r15
xor edx, edx
mov rcx, rsi
call sub.ntdll.dll_memset
mov rcx, rsi
call fcn.14003ff70
mov ecx, dword [rbp + 0x2a0]
call fcn.14003f898
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.140040cd8
test eax, eax
jne 0x14004807d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x14007e2ce]
call fcn.14003ea14
jmp 0x140048413
mov eax, dword [rbp + 0x2a0]
cmp dword [rbp + 0x818], eax
je 0x14004809c
lea rcx, [0x14007e324]
call fcn.14003ea14
jmp 0x140048413
cmp dword [rsi], 0x44d414d
mov rdi, rsi
jne 0x140048149
mov ebx, dword [rsi + 4]
mov rdi, qword [rsp + 0x58]
cmp rdi, rbx
jae 0x1400480ed
mov r8, rdi
xor edx, edx
mov rcx, r14
call sub.ntdll.dll_memset
mov rcx, r14
call fcn.14003ff70
mov ecx, dword [rsi + 4]
call fcn.14003f898
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.140046b78
test eax, eax
jns 0x140048132
mov edx, eax
lea rcx, [0x14007e39e]
call fcn.14003ea14
jmp 0x14004840e
cmp dword [rsp + 0x50], ebx
je 0x140048144
lea rcx, [0x14007e418]
jmp 0x140048409
mov rdi, r14
jmp 0x14004814b
mov ebx, eax
cmp dword [rdi + 4], 0x41434353
je 0x140048160
lea rcx, [0x14007e4a8]
jmp 0x140048409
cmp dword [rdi + 0xc], ebx
je 0x140048171
lea rcx, [0x14007e504]
jmp 0x140048409
cmp dword [rdi], 0x1e
je 0x140048182
lea rcx, [0x14007e55e]
jmp 0x140048409
mov ecx, dword [rdi + 0x64]
mov r8d, 0xdc
cmp ecx, r8d
jb 0x140048402
add ecx, dword [rdi + 0x68]
cmp ecx, dword [rdi + 0xc]
ja 0x140048402
mov edx, dword [rdi + 0xd4]
cmp edx, r8d
jb 0x1400483b7
mov ecx, dword [rdi + 0xd8]
add ecx, edx
cmp ecx, dword [rdi + 0xc]
ja 0x1400483b7
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 0x1400481f4
lea rcx, [0x14007e732]
jmp 0x140048409
mov r8d, 8
lea rcx, [0x14007e790]
mov rdx, r15
call fcn.140048568
xor edx, edx
test al, al
je 0x14004840e
movzx edi, dx
movzx eax, di
mov rcx, qword [rbp + rax*8 - 0x60]
test rcx, rcx
je 0x14004823c
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 0x140048255
add di, si
mov eax, 0x1a
cmp di, ax
jb 0x140048216
lea rcx, [0x14007e7a2]
jmp 0x140048409
mov rax, qword [rsp + 0x60]
sub rbx, r14
lea rsi, [rbx + 2]
cmp rax, rsi
jae 0x14004828b
lea r8, [rax + rax]
mov rcx, r13
call sub.ntdll.dll_memset
mov rcx, r13
call fcn.14003ff70
lea rcx, [rsi + rsi]
mov qword [rsp + 0x60], rsi
call fcn.14003f898
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.14003b0fc
cmp eax, 0xffffffff
jne 0x140048323
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, r13
lea rcx, [0x14007e80e]
mov r8d, eax
call fcn.14003ea14
mov rcx, r12
call fcn.1400047c4
lea rcx, [rbp + 0x70]
call fcn.14003e5f4
test eax, eax
jne 0x1400482fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x14007e85c]
mov edx, eax
call fcn.14003ea14
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 0x140047f2e
mov rdx, r13
lea rcx, [0x14008f700]
call fcn.14002947c
mov rdx, r13
test al, al
je 0x140048369
lea rcx, [0x14007e8b8]
call fcn.14003ea14
mov rcx, r12
call fcn.1400047c4
lea rcx, [rbp + 0x70]
call fcn.14003e5f4
test eax, eax
jne 0x1400482fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x14007e8fc]
jmp 0x1400482f3
lea rcx, [rbp + 0x5a0]
call fcn.14002947c
test al, al
je 0x14004840e
mov rdx, r13
lea rcx, [0x14007e958]
call fcn.14003ea14
mov rcx, r12
call fcn.1400047c4
lea rcx, [rbp + 0x70]
call fcn.14003e5f4
test eax, eax
jne 0x1400482fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x14007e99e]
jmp 0x1400482f3
mov rcx, r12
call fcn.1400047c4
lea rcx, [rbp + 0x70]
call fcn.14003e5f4
test eax, eax
jne 0x1400483e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x14007e60e]
call fcn.14003ea14
mov r9d, dword [rdi + 0xc]
lea rcx, [0x14007e66a]
mov r8d, dword [rdi + 0xd8]
mov edx, dword [rdi + 0xd4]
call fcn.14003ea14
jmp 0x1400482fa
lea rcx, [0x14007e5b0]
call fcn.14003ea14
mov rdi, qword [rsp + 0x40]
mov rcx, r12
call fcn.1400047c4
jmp 0x1400482ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x14004843f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x14007e146]
call fcn.14003ea14
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.14003ff70
mov r8, qword [rsp + 0x58]
xor edx, edx
mov rcx, r14
call sub.ntdll.dll_memset
mov rcx, r14
call fcn.14003ff70
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.14003ff70
mov r8, qword [rsp + 0x60]
xor edx, edx
add r8, r8
mov rcx, r13
call sub.ntdll.dll_memset
mov rcx, r13
call fcn.14003ff70
mov r13d, dword [rsp + 0x54]
mov rcx, rbx
call fcn.14003ec5c
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 0x140048507
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.14003ff70
xor eax, eax
add rdi, 8
sub rsi, r14
jne 0x1400484de
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
sub rax, qword [rbp - 0x68]
lea rcx, [0x14007e9fa]
mov rdx, rax
call fcn.14003ea14
add rsp, 0x8b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret