Function at 0x140187570
Capabilities:
Get disk information

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rsp + 0xd0], rbx
mov rax, qword [0x14041da10]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov edi, r9d
mov ebx, r8d
movzx r12d, dx
mov rsi, rcx
mov qword [rbp - 0x28], rcx
lea rax, vtable.HitmanPro35::Ntfs.0
mov qword [rcx], rax
mov rax, qword [rbp + 0x90]
mov qword [rcx + 0x10], rax
or r14, 0xffffffffffffffff
mov qword [rcx + 0x18], r14
lea r15, vtable.Core::Mutex.0
mov qword [rcx + 0x20], r15
add rcx, 0x28
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
mov word [rsi + 0x50], r12w
mov dword [rsi + 0x654], ebx
mov byte [rsi + 0x658], 0
xor r13d, r13d
mov qword [rsi + 0x660], r13
mov qword [rsi + 0x668], r13
mov dword [rsi + 0x670], r13d
mov rax, qword [rbp + 0x78]
mov qword [rsi + 0x678], rax
mov rax, qword [rbp + 0x80]
mov qword [rsi + 0x680], rax
mov eax, dword [rbp + 0x88]
mov dword [rsi + 0x688], eax
mov eax, dword [rbp + 0x68]
mov dword [rsi + 0x68c], eax
mov eax, dword [rbp + 0x70]
mov dword [rsi + 0x690], eax
mov eax, dword [rbp + 0x60]
mov dword [rsi + 0x694], eax
mov dword [rsi + 0x698], edi
lea rax, vtable.Core::Collections::Generic::LinkedList_struct_HitmanPro35::AttributeDataEntry____ptr64_.1.0
mov qword [rsi + 0x6a0], rax
lea rax, vtable.Core::Collections::Generic::LinkedList_struct_HitmanPro35::AttributeDataEntry____ptr64_.0
mov qword [rsi + 0x6a8], rax
mov qword [rsi + 0x6b0], r13
mov qword [rsi + 0x6b8], r13
mov dword [rsi + 0x6c0], r13d
lea rdi, [rsi + 0x6d0]
mov qword [rbp - 0x20], rdi
lea rax, vtable.HitmanPro35::NtfsRecordCache.0
mov qword [rdi], rax
mov qword [rdi + 8], r15
lea rcx, [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
mov qword [rdi + 0x38], r13
mov qword [rdi + 0x40], r13
call fcn.14000a340
mov qword [rdi + 0x38], rax
mov qword [rdi + 0x48], r13
mov qword [rdi + 0x50], r13
call fcn.14000a380
mov qword [rdi + 0x48], rax
lea rax, vtable.HitmanPro35::NtfsIndexCache.0
mov qword [rsi + 0x728], rax
mov qword [rsi + 0x730], r13
mov qword [rsi + 0x738], r13
call fcn.14000a380
mov qword [rsi + 0x730], rax
mov qword [rsi + 0x740], r15
lea rcx, [rsi + 0x748]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
mov eax, dword [0x1403533f4]
mov dword [rbp - 0x18], eax
movzx eax, word [0x1403533f8]
mov word [rbp - 0x14], ax
mov word [rbp - 0x18], r12w
xor edx, edx
mov eax, dword [rsi + 0x694]
div dword [rsi + 0x698]
mov dword [rsi + 0x69c], eax
mov ecx, dword [rsi + 0x68c]
call fcn.1402bd120
mov qword [rsi + 0x660], rax
movzx r9d, word [rsi + 0x50]
lea r8, str.._c:
mov edx, 0x100
lea rcx, [rsi + 0x52]
call fcn.1402c06b8
lea rcx, [rsi + 0x452]
mov r9d, dword [rsi + 0x654]
lea r8, str.DosDevicesPhysicalDrive_d
mov edx, 0x100
call fcn.1402c06b8
lea rdx, [rsi + 0x252]
mov r8d, 0x100
lea rcx, [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
movzx edx, r12w
mov rcx, rsi
call fcn.1401872c0
mov dword [rsi + 8], r13d
mov ecx, dword [rbp + 0x98]
test ecx, ecx
je 0x1401877bc
test ecx, eax
je 0x1401877bc
mov dword [rsi + 8], ecx
mov ebx, 1
cmp dword [rsi + 8], 0
jne 0x14018780d
test al, 8
je 0x1401877d4
mov dword [rsi + 8], 8
jmp 0x14018780d
test bl, al
je 0x1401877dd
mov dword [rsi + 8], ebx
jmp 0x14018780d
test al, 2
je 0x1401877ea
mov dword [rsi + 8], 2
jmp 0x14018780d
test al, 4
je 0x1401877f7
mov dword [rsi + 8], 4
jmp 0x14018780d
mov dword [rsi + 8], r13d
mov rax, qword [0x140430c10]
test rax, rax
je 0x14018780d
mov dword [rax + 0x14], ebx
mov byte [rax + 0x18], bl
cmp dword [rsi + 8], ebx
jne 0x140187848
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x100003
lea r8d, [r9 + 3]
lea rcx, [rsi + 0x52]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsi + 0x18], rax
cmp rax, 0xffffffffffffffff
jne 0x140187848
mov dword [rsi + 8], r13d
mov ecx, dword [rsi + 8]
test ecx, ecx
je 0x14018788e
dec ecx
je 0x140187885
dec ecx
je 0x14018787c
sub ecx, 2
je 0x140187873
cmp ecx, 4
je 0x14018786a
lea r8, str.Unknown
jmp 0x140187895
lea r8, [0x140352b50]
jmp 0x140187895
lea r8, str.FsdHigh
jmp 0x140187895
lea r8, str.FsdLow
jmp 0x140187895
lea r8, str.SPTI
jmp 0x140187895
lea r8, str.Default
movzx edx, word [rsi + 0x50]
lea rcx, str._c:_____ws_r_n
call fcn.1402bd818
cmp dword [rsi + 8], 0
jne 0x1401878bc
lea rcx, str.Failed_to_read__MFT____Nasty_Rootkit__r_n
call fcn.1402bf424
jmp 0x1401879e6
mov byte [rsp + 0x28], bl
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov r9, qword [rsi + 0x660]
mov r8d, dword [rsi + 0x68c]
mov rdx, qword [rsi + 0x680]
mov rcx, rsi
call fcn.1401887e0
test al, al
je 0x1401879e6
mov r8, qword [rsi + 0x660]
movzx r9d, word [r8 + 4]
add r9, r8
cmp bx, word [r8 + 6]
jae 0x14018792c
lea rdx, [r8 + 0x1fe]
nop dword [rax + rax]
mov eax, ebx
movzx ecx, word [r9 + rax*2]
mov word [rdx], cx
lea rdx, [rdx + 0x200]
inc ebx
movzx eax, word [r8 + 6]
cmp ebx, eax
jb 0x140187910
mov rcx, rsi
call fcn.1401891d0
mov rcx, rsi
call fcn.140188fb0
mov eax, dword [0x140360e90]
mov dword [rbp - 0x20], eax
movzx eax, word [0x140360e94]
mov word [rbp - 0x1c], ax
mov word [rbp - 0x20], r12w
lea rax, [rbp - 0x20]
nop dword [rax]
inc r14
cmp word [rax + r14*2], 0
jne 0x140187960
mov qword [rbp - 0x38], r13
test r14d, r14d
jne 0x140187981
lea rax, [0x14034d1a0]
mov qword [rbp - 0x40], rax
jmp 0x1401879a5
mov edx, r14d
lea rcx, [rbp - 0x40]
call fcn.1402028a0
movsxd r9, r14d
mov eax, dword [rbp - 0x38]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x20]
mov rcx, qword [rbp - 0x40]
call fcn.1402c06dc
mov edx, r14d
lea rcx, [rbp - 0x40]
call fcn.140203bb0
nop
mov r8d, 5
lea rdx, [rbp - 0x40]
mov rcx, rdi
call fcn.140186b80
nop
cmp dword [rbp - 0x38], 0
jle 0x1401879d4
mov rcx, qword [rbp - 0x40]
call fcn.1402bd0e0
lea r8, [rbp - 0x40]
mov edx, 5
mov rcx, rsi
call fcn.14018b500
nop
mov rax, rsi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1402bcad0
mov rbx, qword [rsp + 0xd0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret