Function at 0x140048988
Capabilities:
Get disk information

Disassembly:
push rbp
push rbx
push rsi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x1402b1940]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov r14, r8
mov rsi, rdx
mov r12, rcx
xor r13d, r13d
test rcx, rcx
je 0x140048c49
test rdx, rdx
je 0x140048c49
lea r9, [rsp + 0x50]
mov r8, rcx
mov r15d, 0x104
mov edx, r15d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x140048a47
or r9, 0xffffffffffffffff
mov r8, rsi
mov edx, r15d
mov rcx, r12
call fcn.1401ecf88
test eax, eax
je 0x140048a18
cmp eax, 0xc
je 0x140048c4f
cmp eax, 0x50
jne 0x140048c49
mov rdx, rsi
mov rcx, r14
call fcn.140048928
xor eax, eax
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1401b21e0
add rsp, 0x2c0
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret
cmp eax, r15d
jb 0x140048a78
test r14, r14
je 0x140048a23
lfence
mov dword [r14 + 0x10], 3
lfence
mov rcx, rsi
call fcn.1401e27f0
mov r8d, eax
mov rdx, rsi
lea rcx, [r14 + 0x18]
call fcn.140009550
jmp 0x140048a23
call fcn.140014fd4
mov rcx, rax
test rax, rax
je 0x140048c55
lfence
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x1400d81fd.0]
add rax, 0x18
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x40]
mov rcx, r12
call fcn.1400480c8
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
jne 0x140048ba8
mov dword [rsp + 0x38], r13d
mov qword [rsp + 0x30], r13
lea rax, [rsp + 0x48]
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 0x140048c02
mov eax, dword [rsp + 0x48]
test al, 2
jne 0x140048b19
lfence
mov rcx, r12
call qword [sym.imp.USER32.dll_CharUpperW]
mov rbx, qword [rsp + 0x40]
mov eax, dword [rsp + 0x48]
test al, 4
jne 0x140048ba8
lfence
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x140048ba3
lfence
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x140048c02
cmp rax, r12
jbe 0x140048c02
lea rcx, [rbp - 0x74]
call fcn.1401e27f0
mov rcx, qword [rsp + 0x50]
sub rcx, r12
sar rcx, 1
add eax, ecx
cmp eax, r15d
jge 0x140048bd6
lfence
sub r15d, ecx
movsxd rdx, r15d
lea r8, [rbp - 0x74]
mov rcx, qword [rsp + 0x50]
call fcn.1401ecf20
test eax, eax
je 0x140048ba3
cmp eax, 0xc
je 0x140048c43
cmp eax, 0x50
jne 0x140048c60
mov rbx, qword [rsp + 0x40]
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140048bcc
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400d81fd.0]
mov eax, 1
jmp 0x140048a25
test r14, r14
je 0x140048c11
lfence
mov dword [r14 + 0x10], 3
lfence
mov rcx, rsi
call fcn.1401e27f0
mov r8d, eax
mov rdx, rsi
lea rcx, [r14 + 0x18]
call fcn.140009550
jmp 0x140048c11
lfence
mov rdx, rsi
mov rcx, r14
call fcn.140048928
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140048a23
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400d81fd.0]
jmp 0x140048a23
call fcn.140015db8
nop
call fcn.140015d94
int3
call fcn.140015db8
nop
mov ecx, 0x80004005
call fcn.140009870
nop
call fcn.140015d94
int3