Function at 0x14006f9fc
Capabilities:
Get disk information
Get file system object information

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x698]
sub rsp, 0x798
mov r12, rcx
mov r13d, 1
mov ecx, r13d
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov rcx, qword [r12]
xor r9d, r9d
mov rsi, qword [r12 + 0x28]
xor r8d, r8d
mov edx, 0x406
call qword [sym.imp.USER32.dll_SendMessageW]
xor edi, edi
lea rdx, [0x140138958]
test rbx, rbx
mov rcx, rsi
mov r14, rax
cmovne rdx, rbx
call fcn.14000cd5c
movzx ecx, word [rsi]
cmp ecx, 0x61
lea edx, [rcx - 0x20]
cmovb dx, cx
mov word [rsi], dx
test dx, dx
je 0x14006fa96
mov rcx, rsi
call fcn.14000cd78
cmp word [rsi + rax*2 - 2], 0x5c
je 0x14006fa96
lea rdx, [0x140138898]
mov rcx, rsi
call fcn.14000cd30
mov ebx, 0x146
jmp 0x14006fab2
mov rcx, qword [r12]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x144
call qword [sym.imp.USER32.dll_SendMessageW]
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
mov rcx, r14
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
jne 0x14006fa9d
test byte [r12 + 0x20], 0x80
je 0x14006fc0a
movzx ebx, word [rsi]
lea r13d, [rax + 0x41]
sub ebx, r13d
cmp ebx, 0x19
ja 0x14006fafb
lea rdx, [0x140149740]
mov rcx, rsi
call fcn.14000cd5c
movsx eax, bl
add ax, r13w
jmp 0x14006fb00
or ebx, 0xffffffff
mov eax, edi
mov word [rsi], ax
or r14d, 0xffffffff
lea rax, [rbp + 0x190]
mov dword [rsp + 0x30], gethostname
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x58], edi
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
lea rdx, [0x140149740]
mov r15d, eax
lea rcx, [rsp + 0x70]
call fcn.14000cd5c
lea eax, [r14 + 2]
mov rsi, rdi
bt r15d, edi
jae 0x14006fbf7
lea eax, [rdi + r13]
lea rdx, str.Drive
mov word [rsp + 0x70], ax
lea rcx, [rbp + 0x398]
call fcn.14000cd5c
mov r9d, 0x2b8
mov dword [rsp + 0x20], 0x4001
lea r8, [rbp + 0x180]
xor edx, edx
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [rbp + 0x188]
lea r8, [rbp + 0x180]
mov r9d, 0x2b8
mov dword [rsp + 0x4c], eax
xor edx, edx
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x20], 0x200
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov rcx, qword [r12]
lea rax, [rbp + 0x190]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov qword [rsp + 0x60], rsi
mov edx, 0x40b
call qword [sym.imp.USER32.dll_SendMessageW]
cmp edi, ebx
mov eax, 1
cmove r14d, dword [rsp + 0x38]
add qword [rsp + 0x38], rax
add edi, eax
add rsi, rax
cmp edi, 0x1f
jle 0x14006fb45
jmp 0x140070150
test qword [r12 + 0x20], 0x200
mov r15d, edi
jne 0x14006fc76
mov rdx, rsi
lea rcx, [rsp + 0x70]
call fcn.14000cd5c
movzx eax, word [rsp + 0x70]
lea rbx, [rsp + 0x70]
jmp 0x14006fc43
movzx ecx, ax
call fcn.1400a973c
mov word [rbx], ax
lea rbx, [rbx + 2]
movzx eax, word [rbx]
test ax, ax
jne 0x14006fc31
cmp dword [0x14016267c], edi
je 0x14006fc76
lea rcx, [0x140162470]
call fcn.14000cd78
mov r8, rax
lea rdx, [0x140162470]
lea rcx, [rsp + 0x70]
call fcn.140032bd8
test eax, eax
cmove r15d, r13d
mov rcx, qword [r12]
lea rax, [0x140162680]
mov qword [rsp + 0x40], rax
lea r9, [rsp + 0x30]
mov eax, dword [0x14016225c]
xor r8d, r8d
mov edx, 0x40b
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x30], gethostname
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x58], edi
mov qword [rsp + 0x60], 0xff
call qword [sym.imp.USER32.dll_SendMessageW]
add qword [rsp + 0x38], r13
lea rax, [rbp + 0x190]
add dword [rsp + 0x58], r13d
mov r14d, edi
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [rbp + 0x6f0], eax
mov ebx, edi
mov rdx, r13
mov dword [rbp + 0x6e8], ebx
mov ecx, eax
mov r13d, 0x41
mov rax, rdi
mov qword [rbp + 0x6f8], rax
bt ecx, ebx
jae 0x14006ff58
lea rdx, [0x140149740]
lea rcx, [rsp + 0x70]
call fcn.14000cd5c
lea eax, [rbx + r13]
lea rdx, str.Drive
mov word [rsp + 0x70], ax
lea rcx, [rbp + 0x398]
call fcn.14000cd5c
mov r9d, 0x2b8
mov dword [rsp + 0x20], 0x4001
lea r8, [rbp + 0x180]
xor edx, edx
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [rbp + 0x188]
lea r8, [rbp + 0x180]
mov r9d, 0x2b8
mov dword [rsp + 0x4c], eax
xor edx, edx
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x20], 0x200
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov rax, qword [rbp + 0x6f8]
lea r9, [rsp + 0x30]
mov rcx, qword [r12]
xor r8d, r8d
mov qword [rsp + 0x60], rax
mov edx, 0x40b
lea rax, [rbp + 0x190]
mov qword [rsp + 0x40], rax
call qword [sym.imp.USER32.dll_SendMessageW]
mov r8d, 6
lea rcx, [rsp + 0x70]
mov rdx, rsi
call fcn.1400491a0
test eax, eax
jne 0x14006ff41
test r15d, r15d
jne 0x14006ff41
lea eax, [r15 + 3]
mov ebx, eax
mov r14d, eax
movzx eax, word [rsi + 6]
lea edx, [rbx - 2]
test ax, ax
je 0x14006ff30
mov dword [rbp + 0x6e0], 0x100fd
jmp 0x14006fe12
test ax, ax
je 0x14006fe18
add r14d, edx
add rbx, rdx
movzx eax, word [rsi + rbx*2]
cmp ax, 0x5c
jne 0x14006fe03
cmp word [rsi + rbx*2], di
je 0x14006ff17
lea rdx, str.Unknown
lea rcx, [rbp + 0x398]
call fcn.14000cd5c
movsxd r8, r14d
lea rcx, [rsp + 0x70]
add r8, r8
mov rdx, rsi
call fcn.14001b8e0
lea rdx, [rbp + 0x440]
mov word [rsp + rbx*2 + 0x70], di
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x14006ff12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r13d, 1
mov dword [rsp + 0x20], 0x4001
add qword [rsp + 0x38], r13
lea r8, [rbp + 0x180]
add dword [rsp + 0x58], r13d
lea rcx, [rsp + 0x70]
mov r9d, 0x2b8
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [rbp + 0x188]
lea r8, [rbp + 0x180]
mov r9d, 0x2b8
mov dword [rsp + 0x4c], eax
xor edx, edx
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x20], 0x200
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
movsxd rax, dword [rbp + 0x6e0]
lea r9, [rsp + 0x30]
mov rcx, qword [r12]
xor r8d, r8d
mov qword [rsp + 0x60], rax
mov edx, 0x40b
lea rax, [rbp + 0x190]
mov qword [rsp + 0x40], rax
call qword [sym.imp.USER32.dll_SendMessageW]
add dword [rbp + 0x6e0], 0x10000
mov edx, r13d
jmp 0x14006ff17
mov edx, 1
add rbx, rdx
add r14d, edx
movzx eax, word [rsi + rbx*2]
test ax, ax
jne 0x14006fe12
mov r13d, 0x41
mov r14d, dword [rsp + 0x38]
mov ebx, dword [rbp + 0x6e8]
mov dword [rsp + 0x58], edx
jmp 0x14006ff46
mov edx, 1
add qword [rsp + 0x38], rdx
mov rax, qword [rbp + 0x6f8]
mov ecx, dword [rbp + 0x6f0]
add ebx, edx
add rax, rdx
mov dword [rbp + 0x6e8], ebx
mov qword [rbp + 0x6f8], rax
cmp ebx, 0x1f
jle 0x14006fd03
cmp dword [0x14016267c], edi
je 0x14006ffc5
mov eax, dword [r12 + 0x20]
bt rax, 9
jb 0x14006ffc5
mov eax, dword [0x140162258]
lea r9, [rsp + 0x30]
mov rcx, qword [r12]
xor r8d, r8d
mov dword [rsp + 0x4c], eax
mov edx, 0x40b
mov dword [rsp + 0x50], eax
lea rax, [0x140162050]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x58], edi
mov qword [rsp + 0x60], 0xfe
call qword [sym.imp.USER32.dll_SendMessageW]
test r15d, r15d
je 0x140070150
lea rcx, [0x140162260]
mov r15d, edi
mov r14d, edi
call fcn.14000cd78
mov r13, rsi
cmp word [r13], 0x5c
lea eax, [r15 + 1]
lea rcx, [0x140162260]
cmovne eax, r15d
lea r13, [r13 + 2]
inc r14d
mov r15d, eax
movsxd rbx, r14d
call fcn.14000cd78
cmp rbx, rax
jbe 0x14006ffe3
mov r13d, 1
add r14d, r13d
movsxd rbx, r14d
movzx eax, word [rsi + rbx*2]
test ax, ax
je 0x14007014b
shl r15d, 0x10
add r15d, 0xfd
jmp 0x140070044
test ax, ax
je 0x14007004a
add r14d, r13d
add rbx, r13
movzx eax, word [rsi + rbx*2]
cmp ax, 0x5c
jne 0x140070035
cmp word [rsi + rbx*2], di
je 0x140070138
lea rdx, str.Unknown
lea rcx, [rbp + 0x398]
call fcn.14000cd5c
movsxd r8, r14d
lea rcx, [rsp + 0x70]
add r8, r8
mov rdx, rsi
call fcn.14001b8e0
lea rdx, [rbp + 0x440]
mov word [rsp + rbx*2 + 0x70], di
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x140070138
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
add qword [rsp + 0x38], r13
lea r8, [rbp + 0x180]
add dword [rsp + 0x58], r13d
lea rcx, [rsp + 0x70]
mov r13d, 0x2b8
mov dword [rsp + 0x20], 0x4001
mov r9d, r13d
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [rbp + 0x188]
lea r8, [rbp + 0x180]
mov r9d, r13d
mov dword [rsp + 0x4c], eax
xor edx, edx
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x20], 0x200
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov rcx, qword [r12]
lea r9, [rsp + 0x30]
movsxd rax, r15d
xor r8d, r8d
mov qword [rsp + 0x60], rax
mov edx, 0x40b
lea rax, [rbp + 0x190]
mov qword [rsp + 0x40], rax
call qword [sym.imp.USER32.dll_SendMessageW]
add r15d, 0x10000
mov r13d, 1
add rbx, r13
add r14d, r13d
movzx eax, word [rsi + rbx*2]
test ax, ax
jne 0x140070044
mov r14d, dword [rsp + 0x38]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov rcx, qword [r12]
xor r9d, r9d
movsxd r8, r14d
mov edx, 0x14e
call qword [sym.imp.USER32.dll_SendMessageW]
add rsp, 0x798
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret