Function at 0x140124698
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 - 0x6a8]
sub rsp, 0x7a8
mov r12, rcx
mov r13d, 1
mov rbx, rdx
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov rcx, qword [r12]
mov rsi, qword [r12 + 0x28]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x406
call qword [sym.imp.USER32.dll_SendMessageW]
lea rdx, [0x14021d568]
xor edi, edi
test rbx, rbx
mov rcx, rsi
mov r14, rax
cmovne rdx, rbx
call fcn.1400e60fd
cmp word [rsi], 0x61
movzx ecx, word [rsi]
jb 0x14012470a
sub ecx, 0x20
mov word [rsi], cx
test cx, cx
je 0x140124731
mov rcx, rsi
call sub.msvcrt.dll_wcslen
cmp word [rsi + rax*2 - 2], 0x5c
je 0x140124731
lea rdx, [0x140233664]
mov rcx, rsi
call sub.msvcrt.dll_wcscat
mov ebx, 0x146
jmp 0x14012474d
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 0x140124738
test byte [r12 + 0x20], 0x80
je 0x1401248a2
movzx ebx, word [rsi]
lea r13d, [rax + 0x41]
sub ebx, r13d
cmp ebx, 0x19
ja 0x140124799
lea rdx, [0x140233668]
mov rcx, rsi
call fcn.1400e60fd
movsx eax, bl
add ax, r13w
mov word [rsi], ax
jmp 0x14012479f
or ebx, 0xffffffff
mov word [rsi], di
lea rax, [rbp + 0x1a0]
mov dword [rsp + 0x30], 0x37
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x58], edi
or r14d, 0xffffffff
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
lea rdx, [0x140233668]
lea rcx, [rbp - 0x80]
mov r15d, eax
call fcn.1400e60fd
mov rsi, rdi
lea eax, [r14 + 2]
bt r15d, edi
jae 0x14012488f
lea eax, [rdi + r13]
lea rdx, [0x140233670]
lea rcx, [rbp + 0x3a8]
mov word [rbp - 0x80], ax
call fcn.1400e60fd
lea r8, [rbp + 0x190]
lea rcx, [rbp - 0x80]
mov r9d, 0x2b8
xor edx, edx
mov dword [rsp + 0x20], 0x4001
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [rbp + 0x198]
lea r8, [rbp + 0x190]
lea rcx, [rbp - 0x80]
mov r9d, 0x2b8
xor edx, edx
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x20], 0x200
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov rcx, qword [r12]
lea rax, [rbp + 0x1a0]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov edx, 0x40b
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x40], rax
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 0x1401247e0
jmp 0x140124de4
test qword [r12 + 0x20], 0x200
mov r15d, edi
mov dword [rbp + 0x700], edi
jne 0x140124914
lea rcx, [rbp - 0x80]
mov rdx, rsi
call fcn.1400e60fd
lea rbx, [rbp - 0x80]
cmp word [rbp - 0x80], di
je 0x1401248e0
movzx ecx, word [rbx]
call sub.msvcrt.dll_tolower
mov word [rbx], ax
lea rbx, [rbx + 2]
cmp word [rbx], di
jne 0x1401248cc
cmp dword [0x14036365c], edi
je 0x140124914
lea rcx, [0x140363a80]
call sub.msvcrt.dll_wcslen
lea rdx, [0x140363a80]
lea rcx, [rbp - 0x80]
mov r8, rax
call sub.msvcrt.dll_wcsncmp
test eax, eax
cmove r15d, r13d
mov dword [rbp + 0x700], r15d
mov rcx, qword [r12]
lea rax, [0x140363c90]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov eax, dword [0x140363658]
xor r8d, r8d
mov edx, 0x40b
mov dword [rsp + 0x30], 0x37
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x58], edi
mov qword [rsp + 0x60], 0xff
call qword [sym.imp.USER32.dll_SendMessageW]
add qword [rsp + 0x38], r13
add dword [rsp + 0x58], r13d
lea rax, [rbp + 0x1a0]
mov r14d, edi
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov r13d, 0x41
mov ecx, eax
mov dword [rbp + 0x708], eax
movsxd rax, r15d
mov qword [rsp + 0x70], rax
mov ebx, edi
mov rax, rdi
mov r15, qword [rsp + 0x70]
mov qword [rsp + 0x68], rax
mov dword [rbp + 0x6f8], ebx
lea edx, [r13 - 0x40]
bt ecx, ebx
jae 0x140124bf7
lea rdx, [0x140233668]
lea rcx, [rbp - 0x80]
call fcn.1400e60fd
lea eax, [rbx + r13]
lea rdx, [0x140233670]
lea rcx, [rbp + 0x3a8]
mov word [rbp - 0x80], ax
call fcn.1400e60fd
lea r8, [rbp + 0x190]
lea rcx, [rbp - 0x80]
mov r9d, 0x2b8
xor edx, edx
mov dword [rsp + 0x20], 0x4001
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [rbp + 0x198]
lea r8, [rbp + 0x190]
lea rcx, [rbp - 0x80]
mov r9d, 0x2b8
xor edx, edx
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x20], 0x200
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov rax, qword [rsp + 0x68]
mov rcx, qword [r12]
mov qword [rsp + 0x60], rax
lea rax, [rbp + 0x1a0]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov edx, 0x40b
mov qword [rsp + 0x40], rax
call qword [sym.imp.USER32.dll_SendMessageW]
lea rcx, [rbp - 0x80]
mov r8d, 6
mov rdx, rsi
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x140124be2
test r15, r15
jne 0x140124be2
lea eax, [r15 + 3]
mov ebx, eax
mov r14d, eax
lea rax, [rsi + 6]
lea edx, [rbx - 2]
cmp word [rax], di
je 0x140124bd1
mov dword [rbp + 0x6f0], 0x100fd
movzx eax, word [rax]
jmp 0x140124ab8
test ax, ax
je 0x140124abe
add r14d, edx
add rbx, rdx
movzx eax, word [rsi + rbx*2]
cmp ax, 0x5c
jne 0x140124aa9
cmp word [rsi + rbx*2], di
je 0x140124bb9
lea rdx, str.Unknown
lea rcx, [rbp + 0x3a8]
call fcn.1400e60fd
movsxd r8, r14d
lea rcx, [rbp - 0x80]
add r8, r8
mov rdx, rsi
call sub.msvcrt.dll_memcpy
lea rdx, [rbp + 0x450]
lea rcx, [rbp - 0x80]
mov word [rbp + rbx*2 - 0x80], di
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x140124bb4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r15d, 1
lea r8, [rbp + 0x190]
add qword [rsp + 0x38], r15
add dword [rsp + 0x58], r15d
lea rcx, [rbp - 0x80]
mov r9d, 0x2b8
xor edx, edx
mov dword [rsp + 0x20], 0x4001
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [rbp + 0x198]
lea r8, [rbp + 0x190]
lea rcx, [rbp - 0x80]
mov r9d, 0x2b8
xor edx, edx
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x20], 0x200
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
movsxd rax, dword [rbp + 0x6f0]
mov rcx, qword [r12]
mov qword [rsp + 0x60], rax
lea rax, [rbp + 0x1a0]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov edx, 0x40b
mov qword [rsp + 0x40], rax
call qword [sym.imp.USER32.dll_SendMessageW]
add dword [rbp + 0x6f0], 0x10000
mov edx, r15d
jmp 0x140124bb9
mov edx, 1
add rbx, rdx
add r14d, edx
lea rax, [rsi + rbx*2]
cmp word [rax], di
jne 0x140124aa4
mov r15, qword [rsp + 0x70]
mov r14d, dword [rsp + 0x38]
mov ebx, dword [rbp + 0x6f8]
mov dword [rsp + 0x58], edx
jmp 0x140124be7
mov edx, 1
add qword [rsp + 0x38], rdx
mov rax, qword [rsp + 0x68]
mov ecx, dword [rbp + 0x708]
add ebx, edx
add rax, rdx
mov dword [rbp + 0x6f8], ebx
mov qword [rsp + 0x68], rax
cmp ebx, 0x1f
jle 0x1401249ad
cmp dword [0x14036365c], edi
mov r15d, dword [rbp + 0x700]
je 0x140124c69
mov eax, dword [r12 + 0x20]
bt rax, 9
jb 0x140124c69
mov eax, dword [0x140363654]
mov rcx, qword [r12]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x50], eax
lea rax, [0x140363660]
xor r8d, r8d
mov edx, 0x40b
mov dword [rsp + 0x58], edi
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x60], 0xfe
call qword [sym.imp.USER32.dll_SendMessageW]
test r15d, r15d
je 0x140124de4
lea rcx, [0x140363870]
mov r15d, edi
mov r14d, edi
call sub.msvcrt.dll_wcslen
mov r13, rsi
cmp word [r13], 0x5c
jne 0x140124c92
inc r15d
lea rcx, [0x140363870]
inc r14d
add r13, 2
movsxd rbx, r14d
call sub.msvcrt.dll_wcslen
cmp rbx, rax
jbe 0x140124c87
mov r13d, 1
add r14d, r13d
movsxd rbx, r14d
cmp word [rsi + rbx*2], di
je 0x140124ddf
shl r15d, 0x10
add r15d, 0xfd
jmp 0x140124cdb
test ax, ax
je 0x140124ce5
add r14d, r13d
add rbx, r13
movzx eax, word [rsi + rbx*2]
cmp ax, 0x5c
jne 0x140124cd0
cmp word [rsi + rbx*2], di
je 0x140124dcf
lea rdx, str.Unknown
lea rcx, [rbp + 0x3a8]
call fcn.1400e60fd
movsxd r8, r14d
lea rcx, [rbp - 0x80]
add r8, r8
mov rdx, rsi
call sub.msvcrt.dll_memcpy
lea rdx, [rbp + 0x450]
lea rcx, [rbp - 0x80]
mov word [rbp + rbx*2 - 0x80], di
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x140124dcf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
add qword [rsp + 0x38], r13
add dword [rsp + 0x58], r13d
mov r13d, 0x2b8
lea r8, [rbp + 0x190]
lea rcx, [rbp - 0x80]
xor edx, edx
mov r9d, r13d
mov dword [rsp + 0x20], 0x4001
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [rbp + 0x198]
lea r8, [rbp + 0x190]
lea rcx, [rbp - 0x80]
mov r9d, r13d
xor edx, edx
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x20], 0x200
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov rcx, qword [r12]
movsxd rax, r15d
mov qword [rsp + 0x60], rax
lea rax, [rbp + 0x1a0]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov edx, 0x40b
mov qword [rsp + 0x40], rax
call qword [sym.imp.USER32.dll_SendMessageW]
add r15d, 0x10000
mov r13d, 1
add rbx, r13
add r14d, r13d
cmp word [rsi + rbx*2], di
jne 0x140124cdb
mov r14d, dword [rsp + 0x38]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov rcx, qword [r12]
movsxd r8, r14d
xor r9d, r9d
mov edx, 0x14e
call qword [sym.imp.USER32.dll_SendMessageW]
add rsp, 0x7a8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret