Function at 0x1403d0f5c
Capabilities:
Get disk information

Disassembly:
push rbp
push rbx
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x1405dd080]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rdi, r8
mov r14, rdx
mov r12, rcx
xor r13d, r13d
test rcx, rcx
je 0x1403d11e2
test rdx, rdx
je 0x1403d11e2
lea r9, [rsp + 0x50]
mov r8, rcx
mov r15d, 0x104
mov edx, r15d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x1403d101b
or r9, 0xffffffffffffffff
mov r8, r14
mov edx, r15d
mov rcx, r12
call fcn.14054ddb0
test eax, eax
je 0x1403d0fec
cmp eax, 0xc
je 0x1403d11e8
cmp eax, 0x50
jne 0x1403d11e2
mov rdx, r14
mov rcx, rdi
call fcn.1403d0efc
xor eax, eax
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.14055b570
add rsp, 0x2c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret
cmp eax, r15d
jb 0x1403d1045
test rdi, rdi
je 0x1403d0ff7
mov dword [rdi + 0x10], 3
mov rcx, r14
call sub.msvcrt.dll_wcslen
mov r8d, eax
mov rdx, r14
lea rcx, [rdi + 0x18]
call fcn.1403ca478
jmp 0x1403d0ff7
call fcn.1403cc7d4
mov rcx, rax
test rax, rax
je 0x1403d11ee
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x1403f1b1a.0]
add rax, 0x18
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x48]
mov rcx, r12
call fcn.1403d0640
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
jne 0x1403d1156
mov dword [rsp + 0x38], r13d
mov qword [rsp + 0x30], r13
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 0x1403d11a6
mov eax, dword [rsp + 0x40]
test al, 2
jne 0x1403d10db
mov rcx, r12
call qword [sym.imp.USER32.dll_CharUpperW]
mov eax, dword [rsp + 0x40]
test al, 4
jne 0x1403d1156
lea rdx, [rsp + 0x60]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x1403d1156
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x1403d11a6
cmp rax, r12
jbe 0x1403d11a6
lea rcx, [rbp - 0x74]
call sub.msvcrt.dll_wcslen
mov rcx, qword [rsp + 0x50]
mov rdx, rcx
sub rdx, r12
sar rdx, 1
add eax, edx
cmp eax, r15d
jge 0x1403d1181
sub r15d, edx
movsxd rdx, r15d
lea r8, [rbp - 0x74]
call fcn.14054df00
test eax, eax
je 0x1403d1156
cmp eax, 0xc
je 0x1403d11dc
cmp eax, 0x50
jne 0x1403d11f9
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1403d1177
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1403f1b1a.0]
mov eax, 1
jmp 0x1403d0ff9
test rdi, rdi
je 0x1403d11b2
mov dword [rdi + 0x10], 3
mov rcx, r14
call sub.msvcrt.dll_wcslen
mov r8d, eax
mov rdx, r14
lea rcx, [rdi + 0x18]
call fcn.1403ca478
jmp 0x1403d11b2
mov rdx, r14
mov rcx, rdi
call fcn.1403d0efc
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1403d0ff7
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1403f1b1a.0]
jmp 0x1403d0ff7
call fcn.1403c9774
nop
call fcn.1403c9750
int3
call fcn.1403c9774
nop
mov ecx, 0x80004005
call fcn.1403c941c
nop
call fcn.1403c9750
int3