Function at 0x1400a556c
Capabilities:
Get disk information

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x1402aa8c0]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rdi, r8
mov rsi, rdx
mov r15, rcx
xor r12d, r12d
test rcx, rcx
je 0x1400a57f9
test rdx, rdx
je 0x1400a57f9
lea r9, [rsp + 0x50]
mov r8, rcx
mov r14d, 0x104
mov edx, r14d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x1400a5632
or r9, 0xffffffffffffffff
mov r8, rsi
mov edx, r14d
mov rcx, r15
call fcn.1401d4634
test eax, eax
je 0x1400a5604
cmp eax, 0xc
je 0x1400a57ff
cmp eax, 0x50
jne 0x1400a57f9
mov rdx, rsi
mov rcx, rdi
call fcn.1400a550c
xor eax, eax
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1401c8d10
add rsp, 0x2d0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
cmp eax, r14d
jb 0x1400a565c
test rdi, rdi
je 0x1400a560f
mov dword [rdi + 0x10], 3
mov rcx, rsi
call fcn.1401d4330
mov r8, rax
mov rdx, rsi
lea rcx, [rdi + 0x18]
call fcn.14000b710
jmp 0x1400a560f
call fcn.1400347dc
mov rcx, rax
test rax, rax
je 0x1400a5805
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14005e6be.0]
add rax, 0x18
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x48]
mov rcx, r15
call fcn.1400a4cdc
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
jne 0x1400a576d
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x1400a57bd
mov eax, dword [rsp + 0x40]
test al, 2
jne 0x1400a56f2
mov rcx, r15
call qword [sym.imp.USER32.dll_CharUpperW]
mov eax, dword [rsp + 0x40]
test al, 4
jne 0x1400a576d
lea rdx, [rsp + 0x70]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x1400a576d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x1400a57bd
cmp rax, r15
jbe 0x1400a57bd
lea rcx, [rbp - 0x64]
call fcn.1401d4330
mov rcx, qword [rsp + 0x50]
mov rdx, rcx
sub rdx, r15
sar rdx, 1
add eax, edx
cmp eax, r14d
jge 0x1400a5798
sub r14d, edx
movsxd rdx, r14d
lea r8, [rbp - 0x64]
call fcn.1401d47e0
test eax, eax
je 0x1400a576d
cmp eax, 0xc
je 0x1400a57f3
cmp eax, 0x50
jne 0x1400a5810
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400a578e
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14005e6be.0]
mov eax, 1
jmp 0x1400a5611
test rdi, rdi
je 0x1400a57c9
mov dword [rdi + 0x10], 3
mov rcx, rsi
call fcn.1401d4330
mov r8, rax
mov rdx, rsi
lea rcx, [rdi + 0x18]
call fcn.14000b710
jmp 0x1400a57c9
mov rdx, rsi
mov rcx, rdi
call fcn.1400a550c
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400a560f
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14005e6be.0]
jmp 0x1400a560f
call fcn.1400355d0
nop
call fcn.1400355ac
int3
call fcn.1400355d0
int3
mov ecx, 0x80004005
call fcn.14000bb00
nop
call fcn.1400355ac
int3