Function at 0x140057048
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x13b8]
mov eax, 0x1490
call fcn.140039d40
sub rsp, rax
mov rax, qword [0x1400d1548]
xor rax, rsp
mov qword [rbp + 0x1380], rax
mov ebx, edx
mov r14d, ecx
mov dword [rsp + 0x30], ecx
mov r12d, 1
test byte [0x1400d3b41], 8
je 0x1400570bf
lea rax, [rbp + 0x12f0]
mov qword [rsp + 0x20], rax
mov r9d, r12d
lea rdx, [0x1400b17e8]
lea rcx, [0x1400d0680]
call fcn.14005ce9c
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], 0x41
xor r13d, r13d
mov word [rsp + 0x58], r13w
lea rax, [0x1400a2bc8]
mov qword [rsp + 0x40], rax
mov rdx, qword [0x1400d2120]
lea rcx, [rbp + 0x980]
call fcn.14002d9d8
nop
cmp qword [0x1400d2120], r13
je 0x140057169
lea rax, [rbp + 0x178]
mov qword [rbp + 0x168], rax
mov qword [rbp + 0x170], 0x401
mov word [rbp + 0x178], r13w
lea rax, [0x1400a3e28]
mov qword [rbp + 0x160], rax
lea rdx, [rbp + 0x160]
mov ecx, ebx
call fcn.14005ab14
xor r9d, r9d
mov r8, qword [rbp + 0x168]
mov edx, 0x800003f0
lea rcx, [rbp + 0x980]
call fcn.14005bbec
nop
lea rcx, [rbp + 0x160]
call fcn.14002ec48
mov r9d, 0x20019
lea r8, str.SOFTWAREMicrosoftWindows_Search
mov rdx, 0xffffffff80000002
lea rcx, [rbp + 0xa0]
call fcn.14002eb60
nop
mov ebx, r13d
lea r8, [rsp + 0x40]
lea rdx, str.DataDirectory
lea rcx, [rbp + 0xa0]
call fcn.14001195c
mov edi, 0x80070000
test eax, eax
jne 0x1400571e8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x1400571c5
movzx ebx, ax
or ebx, edi
mov rcx, qword [rbp + 0x13b8]
mov r9d, ebx
lea r8, [0x1400abd20]
mov edx, 0x61a
call fcn.14005afe8
test ebx, ebx
js 0x1400572e6
mov r8d, dword [rsp + 0x54]
lea edx, [r8 - 1]
mov rax, qword [rsp + 0x48]
movzx ecx, word [rax + rdx*2]
call fcn.1400191e8
test eax, eax
je 0x140057212
lea rcx, [rsp + 0x40]
call fcn.140011b00
mov r8d, dword [rsp + 0x54]
mov rax, qword [rsp + 0x40]
movabs r10, 0x8cc4973714525370
or r9d, 0xffffffff
lea rdx, str.Applications_
lea rcx, [rsp + 0x40]
mov rax, qword [rax + 0x20]
call qword [case.0x14001f589.0]
test byte [0x1400d3b41], 8
je 0x14005725c
mov r8, qword [rsp + 0x48]
lea rdx, [0x1400b17d8]
lea rcx, [0x1400d0680]
call fcn.14005cff8
mov edx, r12d
mov rcx, qword [rsp + 0x48]
call fcn.14006abac
test eax, eax
jne 0x1400572e6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x91
jne 0x14005729c
xor edx, edx
mov rcx, qword [rsp + 0x48]
call fcn.14006abac
test eax, eax
jne 0x1400572e6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, 0xfffffffc
jne 0x1400572a8
cmp eax, r12d
jne 0x1400572e6
test eax, eax
jg 0x1400572b0
mov ebx, eax
jmp 0x1400572b5
movzx ebx, ax
or ebx, edi
mov rcx, qword [rbp + 0x13b8]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, str.DataDirectory:__ls
mov qword [rsp + 0x20], rax
mov r9d, ebx
lea r8, [0x1400abd20]
mov edx, 0x635
call fcn.14005b01c
call fcn.140025360
test al, al
je 0x14005745d
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetLogicalDrives]
nop dword [rax + rax]
mov r15d, eax
mov edi, r13d
mov r14d, 0x41
bt r15d, edi
jae 0x14005744c
lea esi, [r14 + rdi]
movabs rax, 0x5c003a0020
mov qword [rbp + 0x12f0], rax
mov word [rbp + 0x12f0], si
lea rcx, [rbp + 0x12f0]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
nop dword [rax + rax]
cmp eax, 3
jne 0x14005744c
mov rax, qword [rsp + 0x40]
movabs r10, 0x8cc4973714525370
or r9d, 0xffffffff
xor r8d, r8d
lea rdx, [0x1400ad990]
lea rcx, [rsp + 0x40]
mov rax, qword [rax + 0x20]
call qword [case.0x14001f589.0]
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.140011b30
mov word [rax], si
mov rax, qword [rsp + 0x40]
movabs r10, 0x8cc4973714525370
or r9d, 0xffffffff
mov r8d, dword [rsp + 0x54]
lea rdx, str.System_Volume_InformationMicrosoftWindows_Search_
lea rcx, [rsp + 0x40]
mov rax, qword [rax + 0x20]
call qword [case.0x14001f589.0]
mov edx, r12d
mov rcx, qword [rsp + 0x48]
call fcn.14006abac
test eax, eax
jne 0x14005744c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x91
jne 0x1400573fa
xor edx, edx
mov rcx, qword [rsp + 0x48]
call fcn.14006abac
test eax, eax
jne 0x14005744c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, 0xfffffffc
jne 0x140057406
cmp eax, r12d
jne 0x14005744c
test ebx, ebx
js 0x14005744c
test eax, eax
jg 0x140057412
mov ebx, eax
jmp 0x14005741b
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rbp + 0x13b8]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, str.VolumeDataDirectory:__ls
mov qword [rsp + 0x20], rax
mov r9d, ebx
lea r8, [0x1400abd20]
mov edx, 0x654
call fcn.14005b01c
add edi, r12d
cmp edi, 0x1a
jb 0x14005730b
mov r14d, dword [rsp + 0x30]
lea rax, str.Applications
mov qword [rbp + 0x1300], rax
lea rax, str.CatalogNames
mov qword [rbp + 0x1308], rax
lea rax, str.Databases
mov qword [rbp + 0x1310], rax
lea rax, str.Gather
mov qword [rbp + 0x1318], rax
lea rax, str.Gathering_ManagerApplications
mov qword [rbp + 0x1320], rax
lea rax, str.UsnNotifier
mov qword [rbp + 0x1328], rax
lea rax, str.CrawlScopeManager
mov qword [rbp + 0x1330], rax
lea rax, str.CatalogListApplications
mov qword [rbp + 0x1338], rax
mov ecx, 2
call fcn.140039874
mov r12d, eax
lea r15, [rbp + 0x1300]
sub r14d, 3
neg r14d
sbb rsi, rsi
add rsi, 8
lea rax, [rbp]
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], 0x41
mov word [rbp], r13w
lea rax, [0x1400a2bc8]
mov qword [rbp - 0x18], rax
lea rax, [0x1400a2b08]
mov qword [rbp - 0x20], rax
mov dword [rbp + 0x88], r13d
mov qword [rbp + 0x90], r13
mov r14, qword [r15]
mov rax, qword [rbp + 0xb0]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
mov r8, r14
mov rdx, qword [rbp + 0x150]
lea rcx, [rbp - 0x20]
call fcn.140013564
mov edi, eax
test eax, eax
js 0x1400575a8
mov dword [rsp + 0x30], 0x100
lea r9, [rsp + 0x30]
lea r8, [rbp + 0x160]
xor edx, edx
lea rcx, [rbp - 0x20]
call fcn.1400136a4
test eax, eax
je 0x1400575a8
lea rdx, [rbp + 0x160]
lea rcx, [rbp - 0x20]
call fcn.14006a1e0
test eax, eax
jne 0x140057556
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jle 0x1400575a8
movzx edi, ax
or edi, 0x80070000
cmp r12d, edi
je 0x1400575bb
mov ecx, 3
call fcn.140039874
cmp eax, edi
jne 0x1400575be
mov edi, r13d
mov rcx, qword [rbp + 0x13b8]
mov qword [rsp + 0x28], r14
lea rax, str.CleanupRegKey:__ls
mov qword [rsp + 0x20], rax
mov r9d, edi
lea r8, [0x1400abd20]
mov edx, 0x692
call fcn.14005b058
nop
test ebx, ebx
cmovs edi, ebx
mov ebx, edi
lea rcx, [rbp - 0x20]
call fcn.140014d5c
add r15, 8
sub rsi, 1
jne 0x1400574ef
cmp qword [0x1400d2120], r13
je 0x1400576f6
test ebx, ebx
js 0x140057663
xor r8d, r8d
mov edx, 0x400003f2
lea rcx, [rbp + 0x980]
call fcn.1400314d0
test byte [0x1400d3b41], 8
je 0x1400576f6
lea rax, [rbp + 0x12f0]
mov qword [rsp + 0x20], rax
lea r9d, [rsi + 1]
lea rdx, [0x1400b17c8]
lea rcx, [0x1400d0680]
call fcn.14005ce9c
jmp 0x1400576f6
xor r9d, r9d
lea r8, [0x1400aa378]
lea edi, [r9 + 0x20]
mov edx, edi
lea rcx, [rbp + 0x1340]
call fcn.14003046c
mov r9d, ebx
lea r8, str.0x_x
mov edx, edi
lea rcx, [rbp + 0x1300]
call fcn.14003046c
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x1300]
lea r8, [rbp + 0x1340]
mov edx, 0xc00003f3
lea rcx, [rbp + 0x980]
call fcn.14005b8fc
test byte [0x1400d3b41], 0x80
je 0x1400576da
mov r8d, ebx
lea rdx, [0x1400b17b8]
lea rcx, [0x1400d0680]
call fcn.14005cefc
mov rcx, qword [rbp + 0x13b8]
mov r9d, ebx
lea r8, [0x1400abd20]
mov edx, 0x6a9
call fcn.14005afe8
nop
lea rcx, [rbp + 0xa0]
call fcn.140014d5c
nop
lea rcx, [rbp + 0x980]
call fcn.14002d92c
nop
lea rcx, [rsp + 0x40]
call fcn.140011278
mov eax, ebx
mov rcx, qword [rbp + 0x1380]
xor rcx, rsp
call fcn.140036b90
lea r11, [rsp + 0x1490]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret