Function at 0x1400cd938
Capabilities:
Get disk information

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x800
mov qword [r11 - 0x670], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x7f0], rax
mov rax, r9
mov qword [rsp + 0x50], rax
mov rbx, rdx
mov qword [rsp + 0x110], r8
mov qword [rsp + 0x40], rax
lea rsi, [0x140023f10]
mov qword [rsp + 0x58], rsi
lea r14, [0x1400259d0]
mov qword [rsp + 0x60], r14
lea r15, [0x140023ef0]
mov qword [rsp + 0x68], r15
mov dword [rsp + 0x70], 0x5a6
mov dword [rsp + 0x74], 1
mov r12d, 0xff
mov dword [rsp + 0x78], r12d
xor edi, edi
mov dword [rsp + 0xf8], 0x1000000
lea r13d, [rdi + 0x78]
mov r8d, r13d
xor edx, edx
lea rcx, [r11 - 0x7a8]
call sub.msvcrt.dll_memset
xor r8d, r8d
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x140]
call fcn.140052e50
nop
mov dword [rsp + 0x48], edi
mov word [rsp + 0x3d0], di
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x3d2]
call sub.msvcrt.dll_memset
mov qword [rsp + 0x130], rdi
lea rax, [0x140001d20]
mov qword [rsp + 0x128], rax
mov r8, rbx
lea edx, [r12 + 5]
lea rcx, [rsp + 0x3d0]
call fcn.14007edcc
mov dword [rsp + 0x148], eax
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r15
mov dword [rsp + 0x70], 0x5b3
mov dword [rsp + 0x74], 1
mov dword [rsp + 0x78], r12d
mov dword [rsp + 0xf8], 0x1000000
mov r8d, r13d
xor edx, edx
lea rcx, [rsp + 0x80]
call sub.msvcrt.dll_memset
lea r8, [0x140025a60]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x140]
call fcn.140073c8c
lea rcx, [rsp + 0x3d0]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x1400cdab9
movzx eax, ax
cmp word [rsp + rax*2 + 0x3ce], 0x5c
je 0x1400cdb4a
lea r8, [0x14000ca50]
mov edx, 0x104
lea rcx, [rsp + 0x3d0]
call fcn.14007ece8
mov dword [rsp + 0x148], eax
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r15
mov dword [rsp + 0x70], 0x5bc
mov dword [rsp + 0x74], 1
mov dword [rsp + 0x78], r12d
mov dword [rsp + 0xf8], 0x1000000
mov r8, r13
xor edx, edx
lea rcx, [rsp + 0x80]
call sub.msvcrt.dll_memset
lea r8, [0x140024c10]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x140]
call fcn.140073c8c
mov eax, edi
mov rcx, qword [rsp + 0x50]
test rcx, rcx
sete al
mov dword [rsp + 0x108], eax
test rcx, rcx
je 0x1400cdf9f
lea r9, [rsp + 0x48]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x3d0]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetVolumePathNamesForVolumeNameW]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
cmp eax, 0xea
je 0x1400cdc25
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r15
mov dword [rsp + 0x70], 0x5d1
mov dword [rsp + 0x74], 1
mov dword [rsp + 0x78], r12d
mov dword [rsp + 0xf8], 0x1000000
mov r8, r13
xor edx, edx
lea rcx, [rsp + 0x80]
call sub.msvcrt.dll_memset
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x1400cdbe6
movzx ebx, ax
or ebx, 0x80070000
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
test eax, eax
jle 0x1400cdbf8
movzx eax, ax
or eax, 0x80070000
mov dword [rsp + 0x28], ebx
lea rcx, [rsp + 0x3d0]
mov qword [rsp + 0x20], rcx
lea r9, [0x140025ab0]
mov r8d, eax
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x140]
call fcn.140101d5c
mov ebx, dword [rsp + 0x48]
lea rcx, [rsp + 0x128]
call fcn.140073d14
lea rdx, [rbx*2 + 2]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
mov qword [rsp + 0x130], rax
test rax, rax
jne 0x1400cdc75
mov dword [rsp + 0x10c], 0x8007000e
lea rdx, [0x140153178]
lea rcx, [rsp + 0x10c]
call sub.msvcrt.dll__CxxThrowException
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x48]
mov rdx, rax
lea rcx, [rsp + 0x3d0]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
jne 0x1400cdd2d
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r15
mov dword [rsp + 0x70], 0x5d9
mov dword [rsp + 0x74], 1
mov dword [rsp + 0x78], r12d
mov dword [rsp + 0xf8], 0x1000000
mov r8, r13
xor edx, edx
lea rcx, [rsp + 0x80]
call sub.msvcrt.dll_memset
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x1400cdcee
movzx ebx, ax
or ebx, 0x80070000
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
test eax, eax
jle 0x1400cdd00
movzx eax, ax
or eax, 0x80070000
mov dword [rsp + 0x28], ebx
lea rcx, [rsp + 0x3d0]
mov qword [rsp + 0x20], rcx
lea r9, [0x140025ab0]
mov r8d, eax
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x140]
call fcn.140101d5c
or rax, 0xffffffffffffffff
mov rcx, rax
inc rcx
cmp word [rbx + rcx*2], di
jne 0x1400cdd34
test rcx, rcx
je 0x1400cdde5
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_DeleteVolumeMountPointW]
test eax, eax
jne 0x1400cddc7
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r15
mov dword [rsp + 0x70], 0x5e5
mov dword [rsp + 0x74], 1
mov dword [rsp + 0x78], r12d
mov dword [rsp + 0xf8], 0x1000000
mov r8, r13
xor edx, edx
lea rcx, [rsp + 0x80]
call sub.msvcrt.dll_memset
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x3d0]
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, [0x140024760]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x140]
call fcn.1400510b0
or rax, 0xffffffffffffffff
mov rcx, rax
inc rcx
cmp word [rbx + rcx*2], di
jne 0x1400cddce
lea rbx, [rbx + rcx*2]
add rbx, 2
jne 0x1400cdd31
mov rbx, qword [rsp + 0x50]
mov qword [rsp + 0x100], rbx
inc rax
cmp word [rbx + rax*2], di
jne 0x1400cddf2
test rax, rax
je 0x1400cdf9f
lea rdx, [rsp + 0x3d0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
test eax, eax
jne 0x1400cdf79
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r15
mov dword [rsp + 0x70], 0x5f5
mov dword [rsp + 0x74], 6
mov dword [rsp + 0x78], r12d
mov dword [rsp + 0xf8], 0x1000000
mov r8, r13
xor edx, edx
lea rcx, [rsp + 0x80]
call sub.msvcrt.dll_memset
mov r8, rbx
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0x58]
call fcn.1400ffa98
lea r8, [rsp + 0x3d0]
lea rdx, [rsp + 0x278]
mov rcx, rax
call fcn.1400ffa98
mov rbx, rax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov r8d, eax
lea rdx, [rsp + 0x320]
mov rcx, rbx
call fcn.1400ffc98
mov r9d, 1
mov r8, rax
mov edx, 0x3041
lea rcx, [rsp + 0x140]
call fcn.14004a830
lea rcx, [rsp + 0x278]
call fcn.1400ff75c
lea rcx, [rsp + 0x1d0]
call fcn.1400ff75c
lea rcx, [rsp + 0x58]
call fcn.1400ff75c
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r15
mov dword [rsp + 0x70], 0x5f7
mov dword [rsp + 0x74], 6
mov dword [rsp + 0x78], r12d
mov dword [rsp + 0xf8], 0x1000000
mov r8, r13
xor edx, edx
lea rcx, [rsp + 0x80]
call sub.msvcrt.dll_memset
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
test eax, eax
jle 0x1400cdf39
movzx eax, ax
or eax, 0x80070000
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x3d0]
mov qword [rsp + 0x20], rax
mov rbx, qword [rsp + 0x100]
mov r9, rbx
lea r8, [0x140025b20]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x140]
call fcn.1400510b0
mov dword [rsp + 0x108], 1
or rax, 0xffffffffffffffff
mov rcx, rax
inc rcx
cmp word [rbx + rcx*2], di
jne 0x1400cdf80
lea rbx, [rbx + rcx*2]
add rbx, 2
mov qword [rsp + 0x100], rbx
jne 0x1400cddf2
jmp 0x1400cdfd4
mov ebx, dword [rsp + 0x148]
test ebx, ebx
jns 0x1400ce04c
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r15
mov dword [rsp + 0x70], 0x605
mov dword [rsp + 0x74], 1
mov dword [rsp + 0x78], r12d
mov dword [rsp + 0xf8], 0x1000000
mov r8, r13
xor edx, edx
lea rcx, [rsp + 0x80]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x20], ebx
lea r9, [rsp + 0x3d0]
lea r8, [0x140025b80]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x140]
call fcn.1400510b0
mov dword [rsp + 0x148], edi
mov ecx, edi
mov dword [rsp + 0x100], ecx
mov rax, qword [rsp + 0x110]
mov eax, dword [rax + 8]
test eax, eax
jle 0x1400ce3d4
mov rdx, rdi
mov qword [rsp + 0x118], rdx
mov rbx, rdi
test rdx, rdx
js 0x1400ce3ce
cmp ecx, eax
jge 0x1400ce3ce
mov rax, qword [rsp + 0x110]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov word [rsp + 0x5e0], di
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x5e2]
call sub.msvcrt.dll_memset
movsxd rax, dword [rsp + 0x108]
or rdx, 0xffffffffffffffff
test rax, rax
mov rax, qword [rsp + 0x40]
lea rcx, [rbx + rax]
je 0x1400ce0e2
inc rdx
cmp word [rcx + rdx*2 + 8], di
jne 0x1400ce0ce
lea r9, [rsp + 0x3d0]
jmp 0x1400ce0f1
inc rdx
cmp word [rcx + rdx*2 + 8], di
jne 0x1400ce0e2
mov r9, qword [rsp + 0x50]
mov rax, qword [rbx + rax]
mov rcx, qword [rax + 0x28]
lea rax, [rcx + rdx*2]
mov qword [rsp + 0x20], rax
lea r8, [0x140023e68]
mov edx, 0x104
lea rcx, [rsp + 0x5e0]
call fcn.14004af20
mov dword [rsp + 0x148], eax
mov ecx, eax
test eax, eax
js 0x1400ce36b
mov rdx, qword [rsp + 0x40]
mov rdx, qword [rbx + rdx]
xor r8d, r8d
mov rdx, qword [rdx]
xor ecx, ecx
call qword [sym.imp.srvcli.dll_NetShareDel]
mov dword [rsp + 0x4c], eax
test eax, eax
je 0x1400ce1b9
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r15
mov dword [rsp + 0x70], 0x621
mov dword [rsp + 0x74], 6
mov dword [rsp + 0x78], r12d
mov dword [rsp + 0xf8], 0x1000000
mov r8, r13
xor edx, edx
lea rcx, [rsp + 0x80]
call sub.msvcrt.dll_memset
mov rax, qword [rsp + 0x40]
mov r9, qword [rbx + rax]
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x20], eax
mov r9, qword [r9]
lea r8, [0x140025c00]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x140]
call fcn.1400510b0
mov rcx, qword [rsp + 0x40]
mov rax, qword [rbx + rcx]
mov rdx, qword [rax + 0x28]
mov qword [rsp + 0x120], rdx
lea r8, [rsp + 0x5e0]
mov qword [rax + 0x28], r8
xor r9d, r9d
mov r8, qword [rbx + rcx]
mov edx, 0x1f6
xor ecx, ecx
call qword [sym.imp.srvcli.dll_NetShareAdd]
mov dword [rsp + 0x4c], eax
test eax, eax
je 0x1400ce317
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r15
mov dword [rsp + 0x70], 0x629
mov dword [rsp + 0x74], 6
mov dword [rsp + 0x78], r12d
mov dword [rsp + 0xf8], 0x1000000
mov r8, r13
xor edx, edx
lea rcx, [rsp + 0x80]
call sub.msvcrt.dll_memset
lea r8, [rsp + 0x5e0]
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0x58]
call fcn.1400ffa98
mov r8d, dword [rsp + 0x4c]
lea rdx, [rsp + 0x320]
mov rcx, rax
call fcn.1400ffc98
mov r9d, 1
mov r8, rax
mov edx, 0x3042
lea rcx, [rsp + 0x140]
call fcn.14004a830
lea rcx, [rsp + 0x1d0]
call fcn.1400ff75c
lea rcx, [rsp + 0x58]
call fcn.1400ff75c
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r15
mov dword [rsp + 0x70], 0x62a
mov dword [rsp + 0x74], 6
mov dword [rsp + 0x78], r12d
mov dword [rsp + 0xf8], 0x1000000
mov r8, r13
xor edx, edx
lea rcx, [rsp + 0x80]
call sub.msvcrt.dll_memset
mov rax, qword [rsp + 0x40]
mov r9, qword [rbx + rax]
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x20], rax
mov r9, qword [r9]
lea r8, [0x140025c40]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x140]
call fcn.1400510b0
mov rax, qword [rsp + 0x40]
mov rax, qword [rbx + rax]
mov rcx, qword [rsp + 0x120]
mov qword [rax + 0x28], rcx
mov ecx, dword [rsp + 0x100]
inc ecx
mov dword [rsp + 0x100], ecx
mov rdx, qword [rsp + 0x118]
inc rdx
mov qword [rsp + 0x118], rdx
add rbx, 0x210
mov rax, qword [rsp + 0x110]
mov eax, dword [rax + 8]
cmp ecx, eax
jl 0x1400ce076
jmp 0x1400ce3d4
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r15
mov dword [rsp + 0x70], 0x61d
mov dword [rsp + 0x74], 1
mov dword [rsp + 0x78], r12d
mov dword [rsp + 0xf8], 0x1000000
mov r8, r13
xor edx, edx
lea rcx, [rsp + 0x80]
call sub.msvcrt.dll_memset
lea r9, [0x140010120]
mov r8d, dword [rsp + 0x148]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x140]
call fcn.1401027cc
int3
call fcn.140085758
nop
lea rcx, [rsp + 0x128]
call fcn.140070d4c
nop
lea rcx, [rsp + 0x140]
call fcn.140050f50
mov rcx, qword [rsp + 0x7f0]
xor rcx, rsp
call fcn.14005dc70
lea r11, [rsp + 0x800]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret