Function at 0x140013020
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
push rbp
push rdi
lea rbp, [rsp - 0x3d8]
sub rsp, 0x4d8
mov rax, qword [0x140074040]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
mov rax, qword gs:[0x58]
xor edi, edi
mov ecx, 4
mov rax, qword [rax]
mov eax, dword [rcx + rax]
cmp dword [0x14007c918], eax
jle 0x1400130bc
lea rcx, [0x14007c918]
call fcn.14002d10c
cmp dword [0x14007c918], 0xffffffff
jne 0x1400130bc
lea ecx, [rdi + 0x60]
mov qword [0x14007c920], rdi
mov qword [0x14007c928], rdi
call fcn.14002cfec
lea rcx, [0x140053480]
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [0x14007c920], rax
call fcn.14002d3ac
lea rcx, [0x14007c918]
call fcn.14002d0a0
cmp byte [0x14007a900], dil
jne 0x1400134c3
mov qword [rsp + 0x4f0], rbx
lea rcx, [rbp + 0x1a2]
mov qword [rsp + 0x4f8], rsi
xor edx, edx
mov qword [rsp + 0x4d0], r13
mov r8d, 0x206
mov qword [rsp + 0x4c0], r15
mov word [rbp + 0x1a0], di
call fcn.140051d20
xor edx, edx
mov word [rbp - 0x70], di
mov r8d, 0x206
lea rcx, [rbp - 0x6e]
call fcn.140051d20
mov edx, 0x104
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov qword [rsp + 0x500], r12
mov esi, 0x5c
mov r13, rax
mov qword [rsp + 0x4c8], r14
mov r15, 0xffffffffffffffff
nop word [rax + rax]
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [rax - 1]
test ecx, ecx
jle 0x140013468
cmp word [rbp - 0x70], 0x5c
jne 0x140013483
cmp word [rbp - 0x6e], 0x5c
jne 0x140013483
cmp word [rbp - 0x6c], 0x3f
jne 0x140013483
cmp word [rbp - 0x6a], 0x5c
jne 0x140013483
cdqe
lea rbx, [rax*2 - 2]
cmp word [rbp + rbx - 0x70], 0x5c
jne 0x140013483
cmp rbx, 0x208
jae 0x1400134e2
mov r8d, 0x104
mov word [rbp + rbx - 0x70], di
lea rdx, [rbp + 0x1a0]
lea rcx, [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov word [rbp + rbx - 0x70], si
test eax, eax
je 0x140013483
mov ecx, 0x20a
mov dword [rbp - 0x80], 0x105
call fcn.14002d3c4
mov r8d, dword [rbp - 0x80]
lea r9, [rbp - 0x80]
mov rdx, rax
lea rcx, [rbp - 0x70]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
jne 0x140013258
nop word [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x140013258
mov rcx, rsi
call fcn.14002d030
mov ecx, dword [rbp - 0x80]
mov eax, 2
mul rcx
cmovo rax, r15
mov rcx, rax
call fcn.14002d3c4
mov r8d, dword [rbp - 0x80]
lea r9, [rbp - 0x80]
mov rdx, rax
lea rcx, [rbp - 0x70]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
je 0x140013210
lea rdx, [0x140069f04]
lea rcx, [rsp + 0x50]
call fcn.140005c40
mov r14, rax
mov rbx, r15
lea rax, [rbp + 0x1a0]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140013276
mov rcx, qword [r14 + 0x18]
mov r8, qword [r14 + 0x10]
mov rax, rcx
sub rax, r8
cmp rbx, rax
ja 0x140013344
lea rax, [r8 + rbx]
mov r12, r14
mov qword [r14 + 0x10], rax
cmp rcx, 7
jbe 0x1400132ab
mov r12, qword [r14]
lea rax, [rbp + 0x1a0]
lea rax, [rax + rbx*2]
cmp rax, r12
jbe 0x1400132ee
lea rax, [r12 + r8*2]
lea rcx, [rbp + 0x1a0]
cmp rcx, rax
ja 0x1400132ee
lea rax, [rbp + 0x1a0]
cmp r12, rax
ja 0x1400132dc
mov r15, rdi
jmp 0x1400132f1
lea rax, [rbp + 0x1a0]
mov r15, r12
sub r15, rax
sar r15, 1
jmp 0x1400132f1
mov r15, rbx
lea rcx, [r12 + rbx*2]
mov rdx, r12
lea r8, [r8*2 + 2]
call fcn.1400520e0
lea rdi, [r15 + r15]
mov rcx, r12
mov r8, rdi
lea rdx, [rbp + 0x1a0]
call fcn.1400520e0
lea rax, [r15 + rbx]
mov r8, rbx
sub r8, r15
lea rdx, [rbp + 0x1a0]
add r8, r8
lea rdx, [rdx + rax*2]
lea rcx, [rdi + r12]
call fcn.1400520e0
xor edi, edi
lea r15, [rdi - 1]
jmp 0x140013363
lea rax, [rbp + 0x1a0]
mov qword [rsp + 0x28], rbx
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov rcx, r14
call fcn.1400146c0
mov r14, rax
mov qword [rsp + 0x40], rdi
lea r8, [rsp + 0x30]
mov qword [rsp + 0x48], rdi
lea rdx, [rsp + 0x70]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [r14]
movups xmmword [rsp + 0x30], xmm0
movups xmm1, xmmword [r14 + 0x10]
movups xmmword [rsp + 0x40], xmm1
mov qword [r14 + 0x10], rdi
mov qword [r14 + 0x18], 7
mov word [r14], di
call fcn.140013fb0
mov r8, r15
mov rcx, qword [rax]
add rcx, 0x40
inc r8
cmp word [rsi + r8*2], 0
jne 0x1400133b1
mov rdx, rsi
call fcn.14000f6f0
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x140013406
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013401
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400134dc
call fcn.14002d030
mov rdx, qword [rsp + 0x68]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], di
cmp rdx, 7
jbe 0x14001345b
mov rcx, qword [rsp + 0x50]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013456
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400134dc
call fcn.14002d030
mov rcx, rsi
call fcn.14002d030
mov esi, 0x5c
mov r8d, 0x104
lea rdx, [rbp - 0x70]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x140013150
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov r14, qword [rsp + 0x4c8]
mov r12, qword [rsp + 0x500]
mov r13, qword [rsp + 0x4d0]
mov rsi, qword [rsp + 0x4f8]
mov rbx, qword [rsp + 0x4f0]
mov r15, qword [rsp + 0x4c0]
mov byte [0x14007a900], 1
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.14002cd30
add rsp, 0x4d8
pop rdi
pop rbp
ret
call fcn.14003a96c
int3
call fcn.14002ce58
int3