Function at 0x18003f070
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push r13
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x18009a918]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp qword [0x18009cdc0], 0
je 0x18003f0d8
mov eax, 0xe8000002
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18005e1d0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret
xor r15d, r15d
movzx r14d, r15w
mov dword [rsp + 0x30], r15d
lea rcx, [0x180091f08]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x18003f14b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rsi, [0x18009b358]
mov rcx, qword [0x18009b358]
cmp rcx, rsi
je 0x18003f13c
test byte [rcx + 0x1c], 1
je 0x18003f13c
cmp byte [rcx + 0x19], 2
jb 0x18003f13c
lea edx, [r15 + 0xa]
lea r9, str.GetModuleHandle_for_ntdll.dll
mov dword [rsp + 0x20], ebx
lea r8, [0x180092078]
mov rcx, qword [rcx + 0x10]
call fcn.1800012d0
or ebx, 0xe8f00000
mov dword [rsp + 0x30], ebx
jmp 0x18003f31c
lea rdx, str.ZwQueryVolumeInformationFile
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18009c8e8], rax
test rax, rax
jne 0x18003f19c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rsi, [0x18009b358]
mov rcx, qword [0x18009b358]
cmp rcx, rsi
je 0x18003f13c
test byte [rcx + 0x1c], 1
je 0x18003f13c
cmp byte [rcx + 0x19], 2
jb 0x18003f13c
mov edx, 0xb
lea r9, str.GetProcAddress_for_ZwQueryVolumeInformationFile
jmp 0x18003f128
lea rax, str.VolumesList
mov qword [rsp + 0x20], rax
xor edx, edx
mov r9d, 0x1e0000
mov r8d, 0x4000000
lea rcx, [0x18009cdc0]
call fcn.18004b2b0
mov ebx, eax
mov dword [rsp + 0x30], eax
test eax, eax
jns 0x18003f21c
lea rsi, [0x18009b358]
mov rcx, qword [0x18009b358]
cmp rcx, rsi
je 0x18003f31c
test byte [rcx + 0x1c], 1
je 0x18003f31c
cmp byte [rcx + 0x19], 2
jb 0x18003f31c
mov edx, 0xc
mov dword [rsp + 0x20], eax
lea r9, str.LstAllocAndInit
lea r8, [0x180092078]
mov rcx, qword [rcx + 0x10]
call fcn.1800012d0
jmp 0x18003f31c
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov dword [rsp + 0x34], eax
test eax, eax
jne 0x18003f26e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rsi, [0x18009b358]
mov rcx, qword [0x18009b358]
cmp rcx, rsi
je 0x18003f13c
test byte [rcx + 0x1c], 1
je 0x18003f13c
cmp byte [rcx + 0x19], 2
jb 0x18003f13c
lea edx, [rdi + 0xd]
lea r9, [0x180091f80]
jmp 0x18003f128
lea rsi, [0x18009b358]
mov eax, 0x3a
nop word [rax + rax]
test edi, edi
je 0x18003f31c
test dil, 1
je 0x18003f30d
mov dword [rsp + 0x48], 0x3a0041
mov word [rsp + 0x4c], r15w
lea eax, [r14 + 0x41]
mov word [rsp + 0x48], ax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], 0x40004
lea rcx, [rsp + 0x38]
call fcn.18003f490
mov ebx, eax
mov dword [rsp + 0x30], eax
test eax, eax
jns 0x18003f308
mov rcx, qword [0x18009b358]
cmp rcx, rsi
je 0x18003f301
test byte [rcx + 0x1c], 1
je 0x18003f301
cmp byte [rcx + 0x19], 3
jb 0x18003f301
mov edx, 0xe
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x48]
lea r8, [0x180092078]
mov rcx, qword [rcx + 0x10]
call fcn.180001180
mov ebx, r15d
mov dword [rsp + 0x30], ebx
mov eax, 0x3a
shr edi, 1
mov dword [rsp + 0x34], edi
inc r14w
jmp 0x18003f280
test ebx, ebx
jns 0x18003f3c3
mov rcx, qword [0x18009cdc0]
test rcx, rcx
je 0x18003f3c3
xor r8d, r8d
lea rdx, [0x180040860]
call fcn.18004b720
test eax, eax
jns 0x18003f37f
mov rcx, qword [0x18009b358]
cmp rcx, rsi
je 0x18003f37f
test byte [rcx + 0x1c], 1
je 0x18003f37f
cmp byte [rcx + 0x19], 2
jb 0x18003f37f
mov edx, 0xf
mov dword [rsp + 0x20], eax
lea r9, str.LstWalk
lea r8, [0x180092078]
mov rcx, qword [rcx + 0x10]
call fcn.1800012d0
lea rcx, [0x18009cdc0]
call fcn.18004b3f0
mov rcx, qword [0x18009b358]
cmp rcx, rsi
je 0x18003f3c3
test byte [rcx + 0x1c], 1
je 0x18003f3c3
cmp byte [rcx + 0x19], 2
jb 0x18003f3c3
mov edx, 0x10
mov dword [rsp + 0x20], eax
lea r9, str.LstDereferenceList
lea r8, [0x180092078]
mov rcx, qword [rcx + 0x10]
call fcn.1800012d0
mov eax, ebx
jmp 0x18003f0ac