Function at 0x140034a34
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, [0x1400afc20]
test rbx, rbx
mov rcx, rsi
mov r14, rax
cmovne rdx, rbx
call fcn.140091cdc
movzx ecx, word [rsi]
cmp ecx, 0x61
lea edx, [rcx - 0x20]
cmovb dx, cx
mov word [rsi], dx
test dx, dx
je 0x140034ace
mov rcx, rsi
call fcn.140016160
cmp word [rsi + rax*2 - 2], 0x5c
je 0x140034ace
lea rdx, [0x1400ac428]
mov rcx, rsi
call fcn.140091cb0
mov ebx, 0x146
jmp 0x140034aea
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 0x140034ad5
test byte [r12 + 0x20], 0x80
je 0x140034c42
movzx ebx, word [rsi]
lea r13d, [rax + 0x41]
sub ebx, r13d
cmp ebx, 0x19
ja 0x140034b33
lea rdx, [0x1400b5458]
mov rcx, rsi
call fcn.140091cdc
movsx eax, bl
add ax, r13w
jmp 0x140034b38
or ebx, 0xffffffff
mov eax, edi
mov word [rsi], ax
or r14d, 0xffffffff
lea rax, [rbp + 0x190]
mov dword [rsp + 0x30], 0x37
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x58], edi
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
lea rdx, [0x1400b5458]
mov r15d, eax
lea rcx, [rsp + 0x70]
call fcn.140091cdc
lea eax, [r14 + 2]
mov rsi, rdi
bt r15d, edi
jae 0x140034c2f
lea eax, [rdi + r13]
lea rdx, str.Drive
mov word [rsp + 0x70], ax
lea rcx, [rbp + 0x398]
call fcn.140091cdc
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 0x140034b7d
jmp 0x140035188
test qword [r12 + 0x20], 0x200
mov r15d, edi
jne 0x140034cae
mov rdx, rsi
lea rcx, [rsp + 0x70]
call fcn.140091cdc
movzx eax, word [rsp + 0x70]
lea rbx, [rsp + 0x70]
jmp 0x140034c7b
movzx ecx, ax
call fcn.140092fa8
mov word [rbx], ax
lea rbx, [rbx + 2]
movzx eax, word [rbx]
test ax, ax
jne 0x140034c69
cmp dword [0x14039416c], edi
je 0x140034cae
lea rcx, [0x140393f60]
call fcn.140016160
mov r8, rax
lea rdx, [0x140393f60]
lea rcx, [rsp + 0x70]
call fcn.140016464
test eax, eax
cmove r15d, r13d
mov rcx, qword [r12]
lea rax, [0x140394170]
mov qword [rsp + 0x40], rax
lea r9, [rsp + 0x30]
mov eax, dword [0x140393d4c]
xor r8d, r8d
mov edx, 0x40b
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x30], 0x37
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 0x140034f90
lea rdx, [0x1400b5458]
lea rcx, [rsp + 0x70]
call fcn.140091cdc
lea eax, [rbx + r13]
lea rdx, str.Drive
mov word [rsp + 0x70], ax
lea rcx, [rbp + 0x398]
call fcn.140091cdc
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.14001f4d0
test eax, eax
jne 0x140034f79
test r15d, r15d
jne 0x140034f79
lea eax, [r15 + 3]
mov ebx, eax
mov r14d, eax
movzx eax, word [rsi + 6]
lea edx, [rbx - 2]
test ax, ax
je 0x140034f68
mov dword [rbp + 0x6e0], 0x100fd
jmp 0x140034e4a
test ax, ax
je 0x140034e50
add r14d, edx
add rbx, rdx
movzx eax, word [rsi + rbx*2]
cmp ax, 0x5c
jne 0x140034e3b
cmp word [rsi + rbx*2], di
je 0x140034f4f
lea rdx, str.Unknown
lea rcx, [rbp + 0x398]
call fcn.140091cdc
movsxd r8, r14d
lea rcx, [rsp + 0x70]
add r8, r8
mov rdx, rsi
call fcn.14001f620
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 0x140034f4a
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 0x140034f4f
mov edx, 1
add rbx, rdx
add r14d, edx
movzx eax, word [rsi + rbx*2]
test ax, ax
jne 0x140034e4a
mov r13d, 0x41
mov r14d, dword [rsp + 0x38]
mov ebx, dword [rbp + 0x6e8]
mov dword [rsp + 0x58], edx
jmp 0x140034f7e
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 0x140034d3b
cmp dword [0x14039416c], edi
je 0x140034ffd
mov eax, dword [r12 + 0x20]
bt rax, 9
jb 0x140034ffd
mov eax, dword [0x140393d48]
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, [0x140393b40]
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 0x140035188
lea rcx, [0x140393d50]
mov r15d, edi
mov r14d, edi
call fcn.140016160
mov r13, rsi
cmp word [r13], 0x5c
lea eax, [r15 + 1]
lea rcx, [0x140393d50]
cmovne eax, r15d
lea r13, [r13 + 2]
inc r14d
mov r15d, eax
movsxd rbx, r14d
call fcn.140016160
cmp rbx, rax
jbe 0x14003501b
mov r13d, 1
add r14d, r13d
movsxd rbx, r14d
movzx eax, word [rsi + rbx*2]
test ax, ax
je 0x140035183
shl r15d, 0x10
add r15d, 0xfd
jmp 0x14003507c
test ax, ax
je 0x140035082
add r14d, r13d
add rbx, r13
movzx eax, word [rsi + rbx*2]
cmp ax, 0x5c
jne 0x14003506d
cmp word [rsi + rbx*2], di
je 0x140035170
lea rdx, str.Unknown
lea rcx, [rbp + 0x398]
call fcn.140091cdc
movsxd r8, r14d
lea rcx, [rsp + 0x70]
add r8, r8
mov rdx, rsi
call fcn.14001f620
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 0x140035170
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 0x14003507c
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