Function at 0x140031c87
Capabilities:
Get disk information

Disassembly:
push rbp
sub rsp, 0x440
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x148], rdi
mov qword [rbp + 0x140], rsi
mov qword [rbp + 0x138], rbx
mov qword [rbp + 0x58], rcx
mov qword [rbp + 0x60], rdx
mov qword [rbp + 0x410], rcx
mov qword [rbp + 0x418], rdx
mov rax, qword [0x1400e0a40]
xor rax, rbp
mov qword [rbp + 0x3f8], rax
mov dword [rbp], 0
mov dword [rbp + 4], 0
mov qword [rbp + 0x68], 0
lea rax, [rbp + 0x150]
mov edx, 0
mov ecx, 0x1cc
mov rdi, rax
mov eax, edx
and eax, 0xffff
mov ah, al
mov edx, eax
shl eax, 0x10
or eax, edx
mov esi, ecx
shr rcx, 2
rep stosd dword [rdi], eax
mov ecx, esi
and ecx, 3
rep stosb byte [rdi], al
lea rax, str._GLOBALROOT
mov qword [rbp + 0x70], rax
mov rax, qword [rbp + 0x418]
test rax, rax
je 0x140031d4d
mov rax, qword [rbp + 0x418]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0x78]
cmp rax, 1
jae 0x140031d72
mov rax, qword [rbp + 0x410]
lea rdx, str.ERROR:_Disk_path_was_null_or_an_empty_string._n
mov rcx, rax
call fcn.140024a7f
mov dword [rbp + 8], eax
mov dword [rbp + 4], 1
jmp 0x1400322a1
mov eax, 1
mov edx, 0x10e
mov rcx, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov qword [rbp + 0xd8], rcx
mov rcx, rax
mov rax, qword [rbp + 0xd8]
call rax
mov qword [rbp + 0x80], rax
mov rax, qword [rbp + 0x80]
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x68]
test rax, rax
jne 0x140031e79
mov dword [rbp + 0x31c], 0
lea rax, [rbp + 0x34e]
mov byte [rax], 0
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call rax
mov qword [rbp + 0x88], rax
lea rax, [rbp + 0x31c]
mov edx, 0xfffffffe
mov rcx, qword [rbp + 0x88]
mov ecx, dword [rcx]
lea rbx, [0x1400b04f0]
lea rsi, str.CVU00345
mov qword [rsp + 0x20], rsi
mov dword [rbp + 0xe0], ecx
mov rcx, rax
mov eax, dword [rbp + 0xe0]
mov r8d, eax
mov r9, rbx
call sub.oracore.dll_slosFillErr
mov rax, qword [rbp + 0x410]
lea rdx, [rbp + 0x31c]
lea rcx, [rbp + 0x150]
mov ebx, 0x1cc
mov qword [rbp + 0xe8], rcx
mov rcx, rax
mov rax, qword [rbp + 0xe8]
mov r8, rax
mov r9d, ebx
call fcn.140025e9d
mov dword [rbp + 0xc], eax
mov rax, qword [rbp + 0x410]
lea rdx, [rbp + 0x150]
mov rcx, rax
call fcn.140024a7f
mov dword [rbp + 0x14], eax
mov dword [rbp + 4], 1
jmp 0x1400322a1
mov rax, qword [rbp + 0x418]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov qword [rbp + 0x90], rax
mov rax, qword [rbp + 0x90]
cmp rax, 0x12
jbe 0x14003212c
lea rax, str.DEVICEHARDDISK
mov rdx, qword [rbp + 0x418]
mov ecx, 0x10
mov rbx, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
mov qword [rbp + 0xf0], rcx
mov rcx, rax
mov rax, qword [rbp + 0xf0]
mov r8, rax
call rbx
mov dword [rbp + 0x10], eax
mov eax, dword [rbp + 0x10]
test eax, eax
jne 0x14003212c
lea rax, str.DEVICEHARDDISKDM
mov rdx, qword [rbp + 0x418]
mov ecx, 0x12
mov rbx, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
mov qword [rbp + 0xf8], rcx
mov rcx, rax
mov rax, qword [rbp + 0xf8]
mov r8, rax
call rbx
mov dword [rbp + 0x18], eax
mov eax, dword [rbp + 0x18]
test eax, eax
je 0x14003212c
mov rax, qword [rbp + 0x418]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov qword [rbp + 0xa0], rax
mov eax, reloc.WS2_32.dll_ntohs
add eax, dword [rbp + 0xa0]
mov dword [rbp + 0x24], eax
mov eax, 1
mov edx, dword [rbp + 0x24]
mov rcx, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov qword [rbp + 0x100], rcx
mov rcx, rax
mov rax, qword [rbp + 0x100]
call rax
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0xb0], rax
mov rax, qword [rbp + 0xb0]
test rax, rax
jne 0x14003204b
mov dword [rbp + 0x31c], 0
lea rax, [rbp + 0x34e]
mov byte [rax], 0
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call rax
mov qword [rbp + 0xb8], rax
lea rax, [rbp + 0x31c]
mov edx, 0xfffffffe
mov rcx, qword [rbp + 0xb8]
mov ecx, dword [rcx]
lea rbx, [0x1400b04f0]
lea rsi, str.CVU00558
mov qword [rsp + 0x20], rsi
mov dword [rbp + 0x108], ecx
mov rcx, rax
mov eax, dword [rbp + 0x108]
mov r8d, eax
mov r9, rbx
call sub.oracore.dll_slosFillErr
mov rax, qword [rbp + 0x410]
lea rdx, [rbp + 0x31c]
lea rcx, [rbp + 0x150]
mov ebx, 0x1cc
mov qword [rbp + 0x110], rcx
mov rcx, rax
mov rax, qword [rbp + 0x110]
mov r8, rax
mov r9d, ebx
call fcn.140025e9d
mov dword [rbp + 0x30], eax
mov rax, qword [rbp + 0x410]
lea rdx, [rbp + 0x150]
mov rcx, rax
call fcn.140024a7f
mov dword [rbp + 0x3c], eax
mov dword [rbp + 4], 1
jmp 0x1400322a1
mov rax, qword [rbp + 0xb0]
mov rdx, qword [rbp + 0x70]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov qword [rbp + 0xc0], rax
mov rax, qword [rbp + 0xb0]
mov rdx, qword [rbp + 0x418]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0xb0]
mov edx, 0
mov ecx, 0
mov ebx, 0
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x38], 0
mov rsi, qword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov dword [rbp + 0x118], ecx
mov rcx, rax
mov eax, dword [rbp + 0x118]
mov r8d, eax
mov r9, rbx
call rsi
mov dword [rbp + 0x34], eax
mov eax, dword [rbp + 0x34]
test eax, eax
jne 0x140032120
mov rax, qword [rbp + 0x410]
lea rdx, str.ssprvfexCheckDiskAFDCapable
lea rcx, str.GetVolumeInformation
mov qword [rbp + 0x120], rcx
mov rcx, rax
mov rax, qword [rbp + 0x120]
mov r8, rax
call fcn.140033033
mov dword [rbp + 0x40], eax
mov dword [rbp + 4], 1
jmp 0x1400322a1
mov dword [rbp], 0
jmp 0x1400321de
mov rax, qword [rbp + 0x418]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov qword [rbp + 0x98], rax
mov rax, qword [rbp + 0x98]
cmp rax, 4
ja 0x140032158
mov dword [rbp + 0x20], 0
jmp 0x1400321a2
lea rax, str.._
mov rdx, qword [rbp + 0x418]
mov ecx, 4
mov rbx, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
mov qword [rbp + 0x128], rcx
mov rcx, rax
mov rax, qword [rbp + 0x128]
mov r8, rax
call rbx
mov dword [rbp + 0x1c], eax
mov eax, dword [rbp + 0x1c]
test eax, eax
je 0x14003219b
mov dword [rbp + 0x20], 0
jmp 0x1400321a2
mov dword [rbp + 0x20], 1
mov eax, dword [rbp + 0x20]
test eax, eax
je 0x1400321ce
mov rax, qword [rbp + 0x410]
mov edx, 4
add rdx, qword [rbp + 0x418]
mov rcx, rax
call fcn.1400322fe
mov dword [rbp + 0x28], eax
mov eax, dword [rbp + 0x28]
test eax, eax
jne 0x1400321d7
mov dword [rbp], 1
jmp 0x1400321de
mov dword [rbp], 0
mov rax, qword [rbp + 0x410]
mov edx, dword [rbp]
mov rcx, rax
call fcn.14002483b
mov dword [rbp + 0x2c], eax
mov eax, dword [rbp + 0x2c]
test eax, eax
je 0x140032218
lea rax, str.ssprvfexCheckDiskAFDCapable:_unable_to_wrap_vres_n
mov rcx, rax
call fcn.140001114
mov dword [rbp + 0x38], eax
mov dword [rbp + 4], 1
jmp 0x1400322a1
mov eax, dword [rbp]
test eax, eax
je 0x14003222f
lea rax, str.failed
mov qword [rbp + 0xd0], rax
jmp 0x14003223d
lea rax, str.successful
mov qword [rbp + 0xd0], rax
mov rax, qword [rbp + 0x68]
lea rdx, str.Exectask:_Disk_AFD_capable_check__s
mov rcx, qword [rbp + 0xd0]
mov qword [rbp + 0x130], rcx
mov rcx, rax
mov rax, qword [rbp + 0x130]
mov r8, rax
call fcn.1400012e0
mov dword [rbp + 0x44], eax
mov rax, qword [rbp + 0x410]
mov rdx, qword [rbp + 0x68]
mov rcx, rax
call fcn.140024aee
mov dword [rbp + 0x48], eax
mov eax, dword [rbp + 0x48]
test eax, eax
je 0x1400322a1
lea rax, str.ssprvfexCheckDiskAFDCapable:_unable_to_wrap_log_message_n
mov rcx, rax
call fcn.140001114
mov dword [rbp + 0x4c], eax
mov dword [rbp + 4], 1
mov rax, qword [rbp + 0x68]
test rax, rax
je 0x1400322ba
mov rax, qword [rbp + 0x68]
mov rdx, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rax
call rdx
mov eax, dword [rbp + 4]
mov dword [rbp + 0x50], eax
mov rax, qword [rbp + 0x3f8]
mov qword [rbp + 0x3f8], 0
xor rax, rbp
mov rcx, rax
call fcn.1400aab50
mov eax, dword [rbp + 0x50]
mov rbx, qword [rbp + 0x138]
mov rsi, qword [rbp + 0x140]
mov rdi, qword [rbp + 0x148]
lea rsp, [rbp + 0x400]
pop rbp
ret