Function at 0x140030c40
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x1c8]
sub rsp, 0x2a0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140127190]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rsi, rcx
xor r12d, r12d
mov r14d, r12d
mov dword [rsp + 0x20], r12d
mov rdx, qword [rcx]
mov rdx, qword [rdx]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
lea rcx, [rsp + 0x58]
call fcn.14002fe90
mov rbx, rax
mov rdi, qword [rsi + 8]
cmp rdi, rax
je 0x140030cd6
mov rcx, rdi
call fcn.140031330
mov rcx, qword [rbx]
mov qword [rdi], rcx
mov rcx, qword [rbx + 8]
mov qword [rdi + 8], rcx
mov rax, qword [rbx + 0x10]
mov qword [rdi + 0x10], rax
mov qword [rbx], r12
mov qword [rbx + 8], r12
mov qword [rbx + 0x10], r12
lea rcx, [rsp + 0x58]
call fcn.140031330
mov rax, qword [rsi + 8]
mov rdi, qword [rax]
mov r15, qword [rax + 8]
cmp rdi, r15
je 0x140030f4b
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r12w
or r14d, 1
mov dword [rsp + 0x20], r14d
mov rdx, qword [rdi + 0x10]
inc rdx
lea rcx, [rsp + 0x58]
call fcn.140031f90
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140030d2f
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
lea rcx, [rsp + 0x58]
call fcn.14002b210
mov r8d, 1
lea rdx, [0x1401079f0]
lea rcx, [rsp + 0x58]
call fcn.14002b210
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ebx, eax
and r14d, 0xfffffffe
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140030db3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140030dae
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140030f7c
call fcn.1400765f0
cmp ebx, 4
jne 0x140030f42
mov dword [rsp + 0x78], 0x104
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x140030dd1
mov rcx, qword [rdi]
lea r8, [rsp + 0x78]
lea rdx, [rbp - 0x80]
call qword [sym.imp.MPR.dll_WNetGetConnectionW]
test eax, eax
jne 0x140030f42
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r12w
lea rax, [rbp - 0x80]
mov rdx, 0xffffffffffffffff
nop word [rax + rax]
inc rdx
cmp word [rax + rdx*2], 0
jne 0x140030e10
lea rcx, [rsp + 0x58]
cmp rdx, 7
ja 0x140030e42
mov qword [rsp + 0x68], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
lea rdx, [rbp - 0x80]
call fcn.14009a510
mov word [rsp + rbx + 0x58], r12w
jmp 0x140030e4c
lea r9, [rbp - 0x80]
call fcn.14002d410
nop
mov rbx, qword [rsi + 0x10]
mov rax, qword [rbx + 8]
cmp qword [rbx + 0x10], rax
je 0x140030e6e
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.14002e930
add qword [rbx + 8], 0x20
jmp 0x140030e7e
lea r8, [rsp + 0x58]
mov rdx, rax
mov rcx, rbx
call fcn.140031d10
mov rax, qword [rsi]
mov rcx, qword [rax]
mov qword [rsp + 0x28], rcx
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.14002e930
nop
mov rbx, qword [rsi + 0x18]
mov rdx, qword [rbx + 8]
lea r8, [rsp + 0x28]
cmp qword [rbx + 0x10], rdx
je 0x140030eb8
call fcn.1400319c0
add qword [rbx + 8], 0x10
jmp 0x140030ec1
mov rcx, rbx
call fcn.140031b20
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x140030f04
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140030efe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140030f82
call fcn.1400765f0
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140030f42
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140030f3d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140030f76
call fcn.1400765f0
add rdi, 0x20
jmp 0x140030ceb
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140076590
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.1400a3864
int3
call fcn.1400a3864
nop
call fcn.1400a3864
nop
int3