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

Disassembly:
push rbp
push rdi
lea rbp, [rsp - 0x3d8]
sub rsp, 0x4d8
mov rax, qword [0x140067040]
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 [0x14006f5e8], eax
jle 0x140012b5c
lea rcx, [0x14006f5e8]
call fcn.140023aac
cmp dword [0x14006f5e8], 0xffffffff
jne 0x140012b5c
lea ecx, [rdi + 0x60]
mov qword [0x14006f5f0], rdi
mov qword [0x14006f5f8], rdi
call fcn.14002398c
lea rcx, [0x140048350]
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [0x14006f5f0], rax
call fcn.140023d4c
lea rcx, [0x14006f5e8]
call fcn.140023a40
cmp byte [0x14006d5c8], dil
jne 0x140012f63
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.140046c00
xor edx, edx
mov word [rbp - 0x70], di
mov r8d, 0x206
lea rcx, [rbp - 0x6e]
call fcn.140046c00
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 0x140012f08
cmp word [rbp - 0x70], 0x5c
jne 0x140012f23
cmp word [rbp - 0x6e], 0x5c
jne 0x140012f23
cmp word [rbp - 0x6c], 0x3f
jne 0x140012f23
cmp word [rbp - 0x6a], 0x5c
jne 0x140012f23
cdqe
lea rbx, [rax*2 - 2]
cmp word [rbp + rbx - 0x70], 0x5c
jne 0x140012f23
cmp rbx, 0x208
jae 0x140012f82
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 0x140012f23
mov ecx, 0x20a
mov dword [rbp - 0x80], 0x105
call fcn.140023d64
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 0x140012cf8
nop word [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x140012cf8
mov rcx, rsi
call fcn.1400239d0
mov ecx, dword [rbp - 0x80]
mov eax, 2
mul rcx
cmovo rax, r15
mov rcx, rax
call fcn.140023d64
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 0x140012cb0
lea rdx, [0x14005d744]
lea rcx, [rsp + 0x50]
call fcn.140005f50
mov r14, rax
mov rbx, r15
lea rax, [rbp + 0x1a0]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140012d16
mov rcx, qword [r14 + 0x18]
mov r8, qword [r14 + 0x10]
mov rax, rcx
sub rax, r8
cmp rbx, rax
ja 0x140012de4
lea rax, [r8 + rbx]
mov r12, r14
mov qword [r14 + 0x10], rax
cmp rcx, 7
jbe 0x140012d4b
mov r12, qword [r14]
lea rax, [rbp + 0x1a0]
lea rax, [rax + rbx*2]
cmp rax, r12
jbe 0x140012d8e
lea rax, [r12 + r8*2]
lea rcx, [rbp + 0x1a0]
cmp rcx, rax
ja 0x140012d8e
lea rax, [rbp + 0x1a0]
cmp r12, rax
ja 0x140012d7c
mov r15, rdi
jmp 0x140012d91
lea rax, [rbp + 0x1a0]
mov r15, r12
sub r15, rax
sar r15, 1
jmp 0x140012d91
mov r15, rbx
lea rcx, [r12 + rbx*2]
mov rdx, r12
lea r8, [r8*2 + 2]
call fcn.140046fc0
lea rdi, [r15 + r15]
mov rcx, r12
mov r8, rdi
lea rdx, [rbp + 0x1a0]
call fcn.140046fc0
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.140046fc0
xor edi, edi
lea r15, [rdi - 1]
jmp 0x140012e03
lea rax, [rbp + 0x1a0]
mov qword [rsp + 0x28], rbx
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov rcx, r14
call fcn.140014280
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.140013b70
mov r8, r15
mov rcx, qword [rax]
add rcx, 0x40
inc r8
cmp word [rsi + r8*2], 0
jne 0x140012e51
mov rdx, rsi
call fcn.14000f170
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x140012ea6
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012ea1
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012f7c
call fcn.1400239d0
mov rdx, qword [rsp + 0x68]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], di
cmp rdx, 7
jbe 0x140012efb
mov rcx, qword [rsp + 0x50]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012ef6
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012f7c
call fcn.1400239d0
mov rcx, rsi
call fcn.1400239d0
mov esi, 0x5c
mov r8d, 0x104
lea rdx, [rbp - 0x70]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x140012bf0
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 [0x14006d5c8], 1
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.1400236d0
add rsp, 0x4d8
pop rdi
pop rbp
ret
call fcn.14002fcf8
int3
call fcn.1400237f8
int3