Function at 0x18002ad00
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1e8]
sub rsp, 0x2c0
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1801345d0]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov r13, rcx
cmp dword [0x180153b70], 0
je 0x18002ad6a
lea r9, str._CNFSRemoteDriverMgr::CheckNFSRemoteDriver__CheckNFSRemoteDriver_1
lea r8, str.safedisk
mov edx, 4
lea rcx, [0x180153288]
call fcn.18006d360
xor ebx, ebx
mov dword [rsp + 0x40], ebx
cmp dword [0x1801334f4], ebx
jne 0x18002ad95
mov rcx, qword [r13 + 0x10]
test rcx, rcx
je 0x18002ae94
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x18002ae94
cmp dword [0x180153b70], ebx
je 0x18002adbc
lea r9, str._CNFSRemoteDriverMgr::CheckNFSRemoteDriver__GetFitUserProc_And_OpenProcess_Start
lea r8, str.safedisk
mov edx, 4
lea rcx, [0x180153288]
call fcn.18006d360
mov rcx, qword [r13 + 8]
test rcx, rcx
je 0x18002adcf
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r13 + 8], rbx
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [0x180150eb8]
call fcn.180017620
mov qword [r13 + 8], rax
test rax, rax
jne 0x18002ae1c
cmp dword [0x180153b70], ebx
je 0x18002b2c6
lea r9, str._CNFSRemoteDriverMgr::CheckNFSRemoteDriver__GetFitUserProc_Fail
lea r8, str.safedisk
mov edx, 4
lea rcx, [0x180153288]
call fcn.18006d360
jmp 0x18002b2c6
mov rcx, qword [r13 + 0x10]
test rcx, rcx
je 0x18002ae2f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r13 + 0x10], rbx
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [r13 + 0x10], rax
test rax, rax
jne 0x18002ae5f
cmp dword [0x180153b70], ebx
je 0x18002b2c6
lea r9, str._CNFSRemoteDriverMgr::CheckNFSRemoteDriver__OpenProcess_Fail
jmp 0x18002adff
mov dword [0x1801334f4], ebx
cmp dword [0x180153b70], ebx
je 0x18002ae94
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x20], eax
lea r9, str._CNFSRemoteDriverMgr::CheckNFSRemoteDriver__GetFitUserProc_And_OpenProcess_Success_dwProcID__d_
lea r8, str.safedisk
mov edx, 4
lea rcx, [0x180153288]
call fcn.18006d360
mov rdx, qword [r13 + 8]
test rdx, rdx
je 0x18002b2c6
lea rcx, [rsp + 0x50]
call fcn.18005c3d0
nop
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov r14d, eax
cmp dword [0x180153b70], 0
je 0x18002aeea
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 0x6d
lea r9, str._CNFSRemoteDriverMgr::CheckNFSRemoteDriver__Line:_d__Drivers__08x_
lea r8, str.safedisk
mov edx, 4
lea rcx, [0x180153288]
call fcn.18006d360
nop
lea rcx, [rsp + 0x50]
call fcn.18005c290
cmp r14d, dword [r13]
je 0x18002b2c6
test r14d, r14d
je 0x18002b2c6
mov dword [r13], r14d
cmp dword [0x180153b70], 0
je 0x18002af40
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 0x75
lea r9, str._CNFSRemoteDriverMgr::CheckNFSRemoteDriver__Line:_d__Drivers__08x_
lea r8, str.safedisk
mov edx, 4
lea rcx, [0x180153288]
call fcn.18006d360
mov dword [rbp - 0x68], 0x41
xor eax, eax
mov word [rbp - 0x64], ax
mov r15d, ebx
lea rcx, [rsp + 0x60]
call fcn.18002a650
nop
lea rcx, [rsp + 0x60]
call fcn.18002acd0
mov rdx, qword [r13 + 8]
lea rcx, [rbp - 0x78]
call fcn.18005c3d0
nop
mov r12d, ebx
nop word [rax + rax]
mov ecx, r12d
mov esi, 1
shl esi, cl
lea eax, [r12 + 0x41]
mov word [rbp - 0x68], ax
cmp dword [0x180153b70], 0
je 0x18002afd5
lea rax, [rbp - 0x68]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 0x88
lea r9, str._CNFSRemoteDriverMgr::CheckNFSRemoteDriver__Line:_d__Value__08x__lsValue__d__Driver__s_
lea r8, str.safedisk
mov edx, 4
lea rcx, [0x180153288]
call fcn.18006d360
test r14d, esi
je 0x18002b152
lea rdx, [0x1800e1f10]
lea rcx, [rsp + 0x48]
call fcn.180042f80
nop
lea r8, [rbp - 0x68]
lea rdx, [0x1800ed1b8]
lea rcx, [rsp + 0x48]
call fcn.1800415c0
lea rcx, [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov edi, eax
cmp dword [0x180153b70], 0
je 0x18002b04f
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0x93
lea r9, str._CNFSRemoteDriverMgr::CheckNFSRemoteDriver__Line:_d__Driver__s__Type__08x_
lea r8, str.safedisk
mov edx, 4
lea rcx, [0x180153288]
call fcn.18006d360
cmp edi, 4
je 0x18002b05d
cmp edi, 1
jne 0x18002b148
mov rdx, qword [rsp + 0x48]
mov rcx, r13
call fcn.18002a2e0
test eax, eax
je 0x18002b148
mov word [rbp - 0x60], bx
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp - 0x5e]
call fcn.18006f140
mov dword [rsp + 0x58], 0x104
lea r8, [rsp + 0x58]
lea rdx, [rbp - 0x60]
mov rcx, qword [rsp + 0x48]
call sub.MPR.dll_WNetGetConnectionW
test eax, eax
jne 0x18002b148
lea rcx, [rsp + 0x78]
call fcn.18002b340
nop
mov dword [rsp + 0x78], esi
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x80]
call fcn.180040790
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x60]
call fcn.18002ace0
mov qword [rsp + 0x50], rbx
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x60]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov dword [rsp + 0x54], ecx
lea r15d, [r15 + rcx*2 + 0xa]
cmp dword [0x180153b70], eax
je 0x18002b13d
lea rax, [rbp - 0x60]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], esi
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xa9
lea r9, str._CNFSRemoteDriverMgr::CheckNFSRemoteDriver__Line:_d__Add_Driver__s__08x__Path__s_
lea r8, str.safedisk
mov edx, 4
lea rcx, [0x180153288]
call fcn.18006d360
nop
lea rcx, [rsp + 0x78]
call fcn.18002b300
nop
lea rcx, [rsp + 0x48]
call fcn.180040610
inc r12d
cmp r12d, 0x1a
jl 0x18002af80
lea rcx, [rbp - 0x78]
call fcn.18005c290
lea rcx, [rsp + 0x60]
call fcn.18002a660
mov esi, eax
test eax, eax
je 0x18002b28b
test r15d, r15d
je 0x18002b28b
add r15d, 4
mov edi, r15d
mov ecx, r15d
call fcn.18006f3c0
mov r12, rax
test rax, rax
jne 0x18002b1d4
cmp dword [0x180153b70], eax
je 0x18002b1cf
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 0xbd
lea r9, str._CNFSRemoteDriverMgr::CheckNFSRemoteDriver__Line:_d__Alloc_Mem__d__Fail.
lea r8, str.safedisk
lea edx, [rax + 4]
lea rcx, [0x180153288]
call fcn.18006d360
nop
jmp 0x18002b2bc
mov r8, rdi
xor edx, edx
mov rcx, rax
call fcn.18006f140
mov dword [r12], esi
lea rdi, [r12 + 4]
test esi, esi
jle 0x18002b233
nop
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.18002aa80
mov ecx, dword [rax]
mov dword [rdi], ecx
mov rcx, qword [rax + 8]
mov edx, dword [rcx - 8]
mov dword [rdi + 4], edx
mov rcx, qword [rax + 8]
lea rdx, [rdi + 8]
movzx eax, word [rcx]
mov word [rdx], ax
add rcx, 2
add rdx, 2
test ax, ax
jne 0x18002b212
mov eax, dword [rdi + 4]
lea rdi, [rdi + rax*2 + 0xa]
inc ebx
cmp ebx, esi
jl 0x18002b1f0
mov dword [rsp + 0x20], 1
mov r9d, 0x26
mov r8d, r15d
mov rdx, r12
mov rcx, r13
call fcn.18002a860
test eax, eax
jne 0x18002b280
cmp dword [0x180153b70], eax
je 0x18002b280
mov dword [rsp + 0x20], 0xd4
lea r9, str._CNFSRemoteDriverMgr::CheckNFSRemoteDriver__Line:_d__Update_Fail...
lea r8, str.safedisk
lea edx, [rax + 4]
lea rcx, [0x180153288]
call fcn.18006d360
mov rcx, r12
call fcn.18006f310
nop
jmp 0x18002b2bc
cmp dword [0x180153b70], 0
je 0x18002b2bc
mov dword [rsp + 0x20], VariantTimeToSystemTime
lea r9, str._CNFSRemoteDriverMgr::CheckNFSRemoteDriver__Line:_d__Size_is_Zero
lea r8, str.safedisk
mov edx, 4
lea rcx, [0x180153288]
call fcn.18006d360
nop
lea rcx, [rsp + 0x60]
call fcn.18002aac0
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.18006f110
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret