Function at 0x1400353c8
Capabilities:
Get disk information
Get disk information via ioctl

Disassembly:
push rbp
sub rsp, 0x320
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x140], rdi
mov qword [rbp + 0x138], rsi
mov qword [rbp + 0x130], rbx
mov qword [rbp + 0x50], rcx
mov qword [rbp + 0x58], rdx
mov qword [rbp + 0x60], r8
mov qword [rbp + 0x2f0], rcx
mov qword [rbp + 0x2f8], rdx
mov qword [rbp + 0x300], r8
mov rax, qword [0x1400e0a40]
xor rax, rbp
mov qword [rbp + 0x2d0], rax
mov byte [rbp], 0
mov dword [rbp + 4], 0
mov dword [rbp + 8], 0
mov dword [rbp + 0xc], 0xffffffff
mov dword [rbp + 0x10], 0xffffffff
mov dword [rbp + 0x14], 0xffffffff
lea rax, str._GLOBALROOT
mov qword [rbp + 0x68], rax
mov dword [rbp + 0x18], 0
mov dword [rbp + 0x1c], 0
mov qword [rbp + 0x70], 0xffffffffffffffff
mov qword [rbp + 0x78], 0
lea rax, [rbp + 0x1ac]
lea rdx, [0x1400c0990]
mov ecx, 7
mov rdi, rax
mov rsi, rdx
mov eax, ecx
shr rcx, 2
rep movsd dword [rdi], dword [rsi]
mov ecx, eax
and ecx, 3
rep movsb byte [rdi], byte [rsi]
mov qword [rbp + 0x80], 0
lea rax, [rbp + 0x1ac]
lea rdx, str..A:
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x2f8]
test rax, rax
je 0x140035952
mov rax, qword [rbp + 0x2f8]
mov rdx, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rcx, rax
call rdx
mov qword [rbp + 0x90], rax
mov rax, qword [rbp + 0x90]
mov qword [rbp + 0x98], rax
mov rax, qword [rbp + 0x98]
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0x98]
test rax, rax
je 0x140035952
mov rax, qword [rbp + 0x78]
mov rdx, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strupr]
mov rcx, rax
call rdx
mov qword [rbp + 0xa0], rax
mov rax, qword [rbp + 0x78]
lea rdx, str.DEVICEHARDDISK_d_99s
lea rcx, [rbp + 0xc]
lea rbx, [rbp + 0x148]
mov qword [rbp + 0xe0], rcx
mov rcx, rax
mov rax, qword [rbp + 0xe0]
mov r8, rax
mov r9, rbx
call fcn.140014308
mov dword [rbp + 0x20], eax
mov eax, dword [rbp + 0x20]
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x24]
mov dword [rbp + 0x14], eax
mov eax, dword [rbp + 0x24]
test eax, eax
jle 0x1400355c6
lea rax, [rbp + 0x148]
movsx eax, byte [rax]
movsx rax, al
test eax, eax
je 0x1400355c6
lea rax, [rbp + 0x148]
lea rdx, str.PARTITION_d
lea rcx, [rbp + 0x10]
mov qword [rbp + 0xe8], rcx
mov rcx, rax
mov rax, qword [rbp + 0xe8]
mov r8, rax
call fcn.140014308
mov dword [rbp + 0x28], eax
mov eax, dword [rbp + 0x28]
mov dword [rbp + 0x2c], eax
mov eax, dword [rbp + 0x2c]
mov dword [rbp + 0x14], eax
mov eax, dword [rbp + 0x2c]
cmp eax, 1
jne 0x1400355c6
mov byte [rbp], 1
movzx eax, byte [rbp]
movzx eax, al
test eax, eax
je 0x140035952
mov eax, dword [rbp + 0xc]
cmp eax, 0xffffffff
je 0x140035952
mov eax, dword [rbp + 0x10]
cmp eax, 0xffffffff
je 0x140035952
mov rax, qword [rbp + 0x68]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x300]
mov rdx, qword [rbp + 0x68]
mov rcx, qword [rbp + 0xa8]
mov rbx, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov qword [rbp + 0xf0], rcx
mov rcx, rax
mov rax, qword [rbp + 0xf0]
mov r8, rax
call rbx
mov qword [rbp + 0xb0], rax
mov rax, qword [rbp + 0x78]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov qword [rbp + 0xb8], rax
mov rax, qword [rbp + 0x300]
mov rdx, qword [rbp + 0x78]
mov rcx, qword [rbp + 0xb8]
mov rbx, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
mov qword [rbp + 0xf8], rcx
mov rcx, rax
mov rax, qword [rbp + 0xf8]
mov r8, rax
call rbx
mov qword [rbp + 0xc0], rax
lea rax, [rbp + 0x1b3]
mov edx, 0x10e
lea rcx, str.GetLogicalDrives_____s_
mov rbx, qword [rbp + 0x300]
mov qword [rbp + 0x100], rcx
mov rcx, rax
mov rax, qword [rbp + 0x100]
mov r8, rax
mov r9, rbx
call sub.oracore.dll_ss_snprintf
mov dword [rbp + 0x30], eax
mov rax, qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
call rax
mov dword [rbp + 0x34], eax
mov eax, dword [rbp + 0x34]
mov dword [rbp + 0x18], eax
mov dword [rbp + 4], 0
mov eax, dword [rbp + 4]
cmp eax, 0x1a
jl 0x1400356eb
jmp 0x14003591b
mov eax, 1
add eax, dword [rbp + 4]
mov dword [rbp + 4], eax
jmp 0x1400356d1
mov eax, dword [rbp + 0x18]
mov edx, dword [rbp + 4]
bt eax, edx
jae 0x1400356de
mov eax, 0x41
add eax, dword [rbp + 4]
lea rdx, [rbp + 0x1ac]
add rdx, 4
mov byte [rdx], al
lea rax, [rbp + 0x1ac]
mov edx, 0
mov ecx, 1
mov ebx, 0
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x2000080
mov qword [rsp + 0x30], 0
mov rsi, qword [sym.imp.orauts.dll_CreateFileA]
mov dword [rbp + 0x108], ecx
mov rcx, rax
mov eax, dword [rbp + 0x108]
mov r8d, eax
mov r9, rbx
call rsi
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0xc8]
mov qword [rbp + 0x70], rax
mov rax, qword [rbp + 0x2f0]
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0x1ac]
mov qword [rbp + 0x110], rcx
mov rcx, rax
mov rax, qword [rbp + 0x110]
mov r8, rax
call fcn.14002be3e
mov dword [rbp + 0x3c], eax
mov rax, qword [rbp + 0x70]
cmp rax, 0xffffffffffffffff
jne 0x1400357bd
mov rax, qword [rbp + 0x70]
mov rdx, qword [sym.imp.orauts.dll_CloseHandle]
mov rcx, rax
call rdx
mov dword [rbp + 0x40], eax
jmp 0x140035952
mov rax, qword [rbp + 0x70]
mov edx, 0x2d1080
mov ecx, 0
mov ebx, 0
lea rsi, [rbp + 0x2c4]
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x28], reloc.WS2_32.dll_inet_ntoa
lea rsi, [rbp + 0x1c]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], 0
mov rsi, qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov qword [rbp + 0x118], rcx
mov rcx, rax
mov rax, qword [rbp + 0x118]
mov r8, rax
mov r9d, ebx
call rsi
mov dword [rbp + 0x44], eax
mov eax, dword [rbp + 0x44]
test eax, eax
je 0x140035903
mov eax, dword [rbp + 0xc]
mov edx, dword [rbp + 0x2c8]
cmp eax, edx
jne 0x140035903
mov eax, dword [rbp + 0x10]
mov edx, dword [rbp + 0x2cc]
cmp eax, edx
jne 0x140035903
mov rax, qword [rbp + 0x70]
mov rdx, qword [sym.imp.orauts.dll_CloseHandle]
mov rcx, rax
call rdx
mov dword [rbp + 0x4c], eax
mov rax, qword [rbp + 0x78]
test rax, rax
je 0x14003587a
mov rax, qword [rbp + 0x78]
mov rdx, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rax
call rdx
mov qword [rbp + 0x78], 0
mov rax, qword [rbp + 0x300]
mov edx, 0
mov ecx, 4
mov qword [rbp + 0x120], rcx
mov rcx, rax
mov rax, qword [rbp + 0x120]
mov r8, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0xd0], rax
mov rax, qword [rbp + 0x300]
lea rdx, [rbp + 0x1ac]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov qword [rbp + 0xd8], rax
mov rax, qword [rbp + 0x2d0]
mov qword [rbp + 0x2d0], 0
xor rax, rbp
mov rcx, rax
call fcn.1400aab50
mov rbx, qword [rbp + 0x130]
mov rsi, qword [rbp + 0x138]
mov rdi, qword [rbp + 0x140]
lea rsp, [rbp + 0x2e0]
pop rbp
ret
mov rax, qword [rbp + 0x70]
mov rdx, qword [sym.imp.orauts.dll_CloseHandle]
mov rcx, rax
call rdx
mov dword [rbp + 0x48], eax
jmp 0x1400356de
mov rax, qword [rbp + 0x2f0]
lea rdx, [rbp + 0x1b3]
mov ecx, 0
mov rbx, qword [rbp + 0x80]
mov dword [rbp + 0x128], ecx
mov rcx, rax
mov eax, dword [rbp + 0x128]
mov r8d, eax
mov r9, rbx
call fcn.14002d4d0
mov dword [rbp + 0x38], eax
mov rax, qword [rbp + 0x78]
test rax, rax
je 0x140035973
mov rax, qword [rbp + 0x78]
mov rdx, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rax
call rdx
mov qword [rbp + 0x78], 0
mov rax, qword [rbp + 0x2d0]
mov qword [rbp + 0x2d0], 0
xor rax, rbp
mov rcx, rax
call fcn.1400aab50
mov rbx, qword [rbp + 0x130]
mov rsi, qword [rbp + 0x138]
mov rdi, qword [rbp + 0x140]
lea rsp, [rbp + 0x2e0]
pop rbp
ret