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

Disassembly:
push rbp
push rdi
lea rbp, [rsp - 0x3d8]
sub rsp, 0x4d8
mov rax, qword [0x140073040]
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 [0x14007b608], eax
jle 0x140012b1c
lea rcx, [0x14007b608]
call fcn.14002c6cc
cmp dword [0x14007b608], 0xffffffff
jne 0x140012b1c
lea ecx, [rdi + 0x60]
mov qword [0x14007b610], rdi
mov qword [0x14007b618], rdi
call fcn.14002c5ac
lea rcx, [0x1400524e0]
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [0x14007b610], rax
call fcn.14002c96c
lea rcx, [0x14007b608]
call fcn.14002c660
cmp byte [0x1400795f0], dil
jne 0x140012f23
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.140050d90
xor edx, edx
mov word [rbp - 0x70], di
mov r8d, 0x206
lea rcx, [rbp - 0x6e]
call fcn.140050d90
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 0x140012ec8
cmp word [rbp - 0x70], 0x5c
jne 0x140012ee3
cmp word [rbp - 0x6e], 0x5c
jne 0x140012ee3
cmp word [rbp - 0x6c], 0x3f
jne 0x140012ee3
cmp word [rbp - 0x6a], 0x5c
jne 0x140012ee3
cdqe
lea rbx, [rax*2 - 2]
cmp word [rbp + rbx - 0x70], 0x5c
jne 0x140012ee3
cmp rbx, 0x208
jae 0x140012f42
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 0x140012ee3
mov ecx, 0x20a
mov dword [rbp - 0x80], 0x105
call fcn.14002c984
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 0x140012cb8
nop word [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x140012cb8
mov rcx, rsi
call fcn.14002c5f0
mov ecx, dword [rbp - 0x80]
mov eax, 2
mul rcx
cmovo rax, r15
mov rcx, rax
call fcn.14002c984
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 0x140012c70
lea rdx, [0x140068d04]
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 0x140012cd6
mov rcx, qword [r14 + 0x18]
mov r8, qword [r14 + 0x10]
mov rax, rcx
sub rax, r8
cmp rbx, rax
ja 0x140012da4
lea rax, [r8 + rbx]
mov r12, r14
mov qword [r14 + 0x10], rax
cmp rcx, 7
jbe 0x140012d0b
mov r12, qword [r14]
lea rax, [rbp + 0x1a0]
lea rax, [rax + rbx*2]
cmp rax, r12
jbe 0x140012d4e
lea rax, [r12 + r8*2]
lea rcx, [rbp + 0x1a0]
cmp rcx, rax
ja 0x140012d4e
lea rax, [rbp + 0x1a0]
cmp r12, rax
ja 0x140012d3c
mov r15, rdi
jmp 0x140012d51
lea rax, [rbp + 0x1a0]
mov r15, r12
sub r15, rax
sar r15, 1
jmp 0x140012d51
mov r15, rbx
lea rcx, [r12 + rbx*2]
mov rdx, r12
lea r8, [r8*2 + 2]
call fcn.140051150
lea rdi, [r15 + r15]
mov rcx, r12
mov r8, rdi
lea rdx, [rbp + 0x1a0]
call fcn.140051150
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.140051150
xor edi, edi
lea r15, [rdi - 1]
jmp 0x140012dc3
lea rax, [rbp + 0x1a0]
mov qword [rsp + 0x28], rbx
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov rcx, r14
call fcn.140014240
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.140013b30
mov r8, r15
mov rcx, qword [rax]
add rcx, 0x40
inc r8
cmp word [rsi + r8*2], 0
jne 0x140012e11
mov rdx, rsi
call fcn.14000f130
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x140012e66
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012e61
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012f3c
call fcn.14002c5f0
mov rdx, qword [rsp + 0x68]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], di
cmp rdx, 7
jbe 0x140012ebb
mov rcx, qword [rsp + 0x50]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012eb6
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012f3c
call fcn.14002c5f0
mov rcx, rsi
call fcn.14002c5f0
mov esi, 0x5c
mov r8d, 0x104
lea rdx, [rbp - 0x70]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x140012bb0
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 [0x1400795f0], 1
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.14002c2f0
add rsp, 0x4d8
pop rdi
pop rbp
ret
call fcn.1400395bc
int3
call fcn.14002c418
int3