Function at 0x140020da0
Capabilities:
Get disk information

Disassembly:
push rbx
push rbp
push rdi
push r12
push r13
push r14
sub rsp, 0x178
mov rax, qword [0x1400546f0]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor r14d, r14d
mov rbp, r8
mov r13, rdx
mov ebx, r14d
mov rdi, rcx
lea r12d, [r14 + 1]
cmp dword [0x140072a78], ebx
jne 0x140020dee
call fcn.140020cc0
test eax, eax
jne 0x140020dee
xor eax, eax
jmp 0x140021012
test rdi, rdi
je 0x140020ebb
cmp byte [rdi], bl
je 0x140020ebb
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
cmp eax, 0x104
ja 0x140020de7
lea rax, [rsp + 0x50]
lea r8d, [rbx + 1]
lea rcx, [rsp + 0x50]
sub rdi, rax
mov edx, r8d
mov r10d, 0x5c
nop dword [rax + rax]
movzx eax, byte [rdi + rcx]
cmp al, 0x2f
cmove eax, r10d
inc rcx
dec rdx
mov byte [rcx - 1], al
jne 0x140020e30
movzx eax, byte [rsp + 0x51]
cmp byte [rsp + 0x50], r10b
jne 0x140020ea2
cmp al, r10b
jne 0x140020ea2
mov ecx, 2
mov eax, r14d
cmp ebx, ecx
jbe 0x140020ebb
lea rdx, [rsp + 0x52]
cmp byte [rdx], r10b
jne 0x140020e73
inc eax
cmp eax, 2
je 0x140020e97
inc ecx
inc rdx
cmp ecx, ebx
jb 0x140020e67
cmp eax, r12d
jne 0x140020ebb
cmp byte [rsp + rbx + 0x50], r10b
je 0x140020ebb
mov byte [rsp + rbx + 0x50], r10b
mov byte [rsp + r8 + 0x50], r14b
mov ebx, r8d
jmp 0x140020ebb
inc ecx
mov ebx, ecx
mov byte [rsp + rcx + 0x50], r14b
jmp 0x140020ebb
cmp al, 0x3a
jne 0x140020eb3
mov word [rsp + 0x52], r10w
mov ebx, 3
jmp 0x140020ebb
mov byte [rsp + 0x50], r14b
mov ebx, r14d
lea rcx, [0x140073d20]
mov qword [rsp + 0x170], rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x140073be0], r14d
je 0x140020ef3
lea rdx, [rsp + 0x50]
lea rcx, [0x140073bfc]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x140020fca
lea rcx, [0x140073d20]
mov edi, r14d
mov dword [rsp + 0x44], r14d
mov esi, r14d
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [rsp + 0x50], sil
mov dword [rsp + 0x38], r14d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], r14
cmove rcx, r14
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov r12d, eax
test eax, eax
je 0x140020f81
test byte [rsp + 0x40], 8
je 0x140020f81
cmp dword [rbp + 8], r14d
je 0x140020f81
cmp byte [rsp + 0x50], sil
lea rcx, [rsp + 0x50]
cmove rcx, r14
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 4
jne 0x140020f81
lea rdx, [rsp + 0x44]
mov rcx, r13
lea esi, [rax - 3]
call fcn.140020a70
mov edi, dword [rsp + 0x44]
lea rcx, [0x140073d20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test r12d, r12d
je 0x140020ff3
lea r8d, [rbx + 1]
lea rdx, [rsp + 0x50]
lea rcx, [0x140073bfc]
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [rsp + 0x40]
mov dword [0x140073bf0], esi
mov dword [0x140073bec], eax
mov dword [0x140073bf4], edi
mov qword [0x140073be0], 1
mov eax, dword [rbp + 8]
lea rdx, [0x140073be0]
mov rcx, rbp
mov dword [0x140073be8], eax
mov eax, dword [rbp + 0x18]
mov r8d, 0x124
mov dword [0x140073bf8], eax
call fcn.140023790
jmp 0x140020ffa
mov dword [0x140073be0], r14d
lea rcx, [0x140073d20]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rsi, qword [rsp + 0x170]
mov eax, r12d
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400235a0
add rsp, 0x178
pop r14
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret