Function at 0x140086710
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x3d8]
sub rsp, 0x4b0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x140109010]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
xor r15b, r15b
xor r13b, r13b
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x190]
call sub.VCRUNTIME140.dll_memset
mov edx, 0x104
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x140086991
xor edi, edi
nop dword [rax]
movsd xmm0, qword [str.__]
movsd qword [rsp + 0x68], xmm0
movzx eax, word [0x1400c9ad0]
mov word [rsp + 0x70], ax
lea rax, [rbp - 0x80]
mov rbx, 0xffffffffffffffff
lea rbx, [rbx + 1]
cmp word [rax + rbx*2], 0
jne 0x1400867c5
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x80]
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
lea rcx, [rbp - 0x80]
cmp rax, rcx
jne 0x140086973
cmp word [rsp + rbx*2 + 0x7e], 0x5c
jne 0x140086973
mov dword [rsp + 0x38], edi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8d, 0x104
lea rdx, [rbp + 0x190]
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x140086957
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], di
lea rdx, [rbp + 0x190]
lea rcx, [rsp + 0x48]
call sym.HwSettings.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const__const___ptr64____ptr64
nop
lea rsi, [rsp + 0x48]
mov rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x60]
cmp r8, 8
cmovae rsi, rdx
lea rcx, [rsp + 0x48]
cmovae rcx, rdx
mov rax, qword [rsp + 0x58]
lea rax, [rcx + rax*2]
lea rbx, [rsp + 0x48]
cmovae rbx, rdx
mov r14, rax
sub r14, rbx
inc r14
shr r14, 1
cmp rbx, rax
mov eax, 0
cmova r14, rax
test r14, r14
je 0x1400868c7
sub rsi, rbx
movzx ecx, word [rbx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
mov word [rsi + rbx], ax
lea rbx, [rbx + 2]
inc rdi
cmp rdi, r14
jne 0x1400868a4
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
cmp r8, 8
cmovae rcx, rdx
lea rdx, str.onekey
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1400868ea
mov r13b, 1
jmp 0x140086917
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
lea rdx, str.winpe
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
movzx r15d, r15b
test eax, eax
mov eax, 1
cmove r15d, eax
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140086955
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140086950
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008698a
call fcn.140093ce8
xor edi, edi
mov r8d, 0x104
lea rdx, [rbp - 0x80]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
cmp eax, 1
je 0x1400867a0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
test r13b, r13b
je 0x140086991
test r15b, r15b
je 0x140086991
mov al, 1
jmp 0x140086993
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xor al, al
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.140093940
lea r11, [rsp + 0x4b0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret