Function at 0x140034390
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 + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14012e190]
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.140033090
mov rbx, rax
mov rdi, qword [rsi + 8]
cmp rdi, rax
je 0x140034426
mov rcx, rdi
call fcn.140034c70
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.140034c70
mov rax, qword [rsi + 8]
mov rdi, qword [rax]
mov r15, qword [rax + 8]
cmp rdi, r15
je 0x140034603
nop dword [rax]
nop dword [rax + rax]
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.140035990
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14003448b
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
lea rcx, [rsp + 0x58]
call fcn.14002d5e0
mov r8d, 1
lea rdx, [0x14010dd90]
lea rcx, [rsp + 0x58]
call fcn.14002d5e0
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
lea rcx, [rsp + 0x58]
call fcn.14002d500
cmp ebx, 4
jne 0x1400345f6
mov dword [rsp + 0x78], 0x104
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400344f5
mov rcx, qword [rdi]
lea r8, [rsp + 0x78]
lea rdx, [rbp - 0x80]
call qword [sym.imp.MPR.dll_WNetGetConnectionW]
test eax, eax
jne 0x1400345f6
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], r12w
lea rax, [rbp - 0x80]
mov rdx, 0xffffffffffffffff
nop dword [rax + rax]
inc rdx
cmp word [rax + rdx*2], 0
jne 0x140034530
lea rcx, [rsp + 0x58]
cmp rdx, 7
ja 0x140034562
mov qword [rsp + 0x68], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
lea rdx, [rbp - 0x80]
call fcn.14009df80
mov word [rsp + rbx + 0x58], r12w
jmp 0x14003456c
lea r9, [rbp - 0x80]
call fcn.14002fcb0
nop
mov rbx, qword [rsi + 0x10]
mov rax, qword [rbx + 8]
cmp qword [rbx + 0x10], rax
je 0x14003458e
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.140031cf0
add qword [rbx + 8], 0x20
jmp 0x14003459e
lea r8, [rsp + 0x58]
mov rdx, rax
mov rcx, rbx
call fcn.140035780
mov rax, qword [rsi]
mov rcx, qword [rax]
mov qword [rsp + 0x30], rcx
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x38]
call fcn.140031cf0
nop
mov rbx, qword [rsi + 0x18]
mov rdx, qword [rbx + 8]
lea r8, [rsp + 0x30]
cmp qword [rbx + 0x10], rdx
je 0x1400345d8
call fcn.140035420
add qword [rbx + 8], 0x10
jmp 0x1400345e1
mov rcx, rbx
call fcn.140035590
nop
lea rcx, [rsp + 0x38]
call fcn.14002d500
nop
lea rcx, [rsp + 0x58]
call fcn.14002d500
add rdi, 0x20
cmp rdi, r15
jne 0x140034450
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140079ca0
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