Function at 0x1401241d8
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov r14, rcx
xor ebx, ebx
lea rcx, [0x1400466d0]
mov rdi, r8
mov qword [rsp + 0x58], r8
lea esi, [rbx + 1]
call fcn.140129990
lea rcx, [rsp + 0x72]
xor edx, edx
mov r8d, 0x208
mov qword [rsp + 0x50], rbx
mov r15d, ebx
mov qword [rsp + 0x48], rbx
mov r13d, ebx
mov qword [rsp + 0x40], rbx
mov r12d, ebx
mov word [rsp + 0x70], bx
call sub.msvcrt.dll_memset
test rdi, rdi
jne 0x140124293
lea r9d, [rdi + 0x57]
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x140154018]
lea rdi, [0x140154018]
cmp rcx, rdi
je 0x140124787
test byte [rcx + 0x1c], 8
je 0x140124787
lea edx, [r12 + 0x34]
lea rax, [0x140046750]
jmp 0x140124772
lea rcx, [rsp + 0x70]
mov r8, r14
mov edx, 0x105
mov qword [rdi], rbx
call fcn.14007edcc
test eax, eax
jns 0x14012431a
mov ecx, eax
mov esi, ebx
call fcn.140129a10
mov ebx, eax
mov rcx, qword [0x140154018]
lea rdi, [0x140154018]
cmp rcx, rdi
je 0x140124787
test byte [rcx + 0x1c], 8
je 0x140124787
lea rcx, [rsp + 0x70]
mov r8, r14
mov edx, 0x105
call fcn.14007edcc
mov rcx, qword [0x140154018]
lea r8, [0x140046858]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
lea rax, [0x140046710]
mov edx, 0x35
mov qword [rsp + 0x20], rax
call fcn.14011834c
jmp 0x140124787
lea rcx, [rsp + 0x70]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bx
jne 0x140124323
test eax, eax
jne 0x140124375
mov esi, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
mov rax, qword [0x140154018]
lea rdi, [0x140154018]
cmp rax, rdi
je 0x140124787
test byte [rax + 0x1c], 8
je 0x140124787
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edx, 0x36
mov r9d, eax
lea rax, [0x1400467d0]
jmp 0x14012476b
lea ecx, [rax - 1]
add rcx, rcx
cmp word [rsp + rcx + 0x70], 0x5c
jne 0x140124391
cmp rcx, 0x20a
jae 0x14012440b
mov word [rsp + rcx + 0x70], bx
lea r9, [rsp + 0x48]
lea rcx, [rsp + 0x70]
mov r8d, 2
mov dl, sil
call fcn.14012484c
test eax, eax
jne 0x140124411
mov esi, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
mov rax, qword [0x140154018]
lea rdi, [0x140154018]
cmp rax, rdi
je 0x140124401
test byte [rax + 0x1c], 8
je 0x140124401
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov rcx, qword [0x140154018]
lea r8, [0x140046858]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
lea rax, [0x140046770]
mov edx, 0x37
mov qword [rsp + 0x20], rax
call fcn.14011834c
mov r15, qword [rsp + 0x48]
jmp 0x140124787
call fcn.14005e088
int3
mov r15, qword [rsp + 0x48]
test r15, r15
je 0x1401247e7
mov ecx, 0x10
call fcn.1401296bc
mov r14, rax
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x14012446f
lea r9d, [rax + 0xe]
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x140154018]
lea rdi, [0x140154018]
cmp rcx, rdi
je 0x140124787
test byte [rcx + 0x1c], 8
je 0x140124787
lea edx, [rax + 0x38]
lea rax, [0x140046668]
jmp 0x140124772
mov dword [rax + 0xc], ebx
mov ecx, dword [r15 + 4]
shl ecx, 5
call fcn.1401296bc
mov qword [r14], rax
test rax, rax
jne 0x1401244bf
lea r9d, [rax + 0xe]
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x140154018]
lea rdi, [0x140154018]
cmp rcx, rdi
je 0x140124787
test byte [rcx + 0x1c], 8
je 0x140124787
lea edx, [rax + 0x39]
lea rax, [0x1400467f8]
jmp 0x140124772
mov eax, dword [r15 + 4]
mov edi, ebx
mov dword [rsp + 0x48], ebx
mov dword [r14 + 8], eax
cmp dword [r15 + 4], ebx
jbe 0x1401247b9
mov rcx, r13
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemFree]
mov rcx, r12
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemFree]
mov r12d, edi
mov r13d, edi
shl r12, 6
mov qword [rsp + 0x60], r12
mov rdx, qword [r12 + r15 + 0x30]
mov rdi, qword [r12 + r15 + 0x40]
test rdx, rdx
je 0x140124574
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], bx
jne 0x14012450b
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
je 0x140124574
mov rcx, qword [r12 + r15 + 0x30]
mov rdx, rdi
call fcn.14012a154
mov r12, rax
test rax, rax
jne 0x1401245e8
lea r9d, [rax + 0xe]
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x140154018]
lea rdi, [0x140154018]
cmp rcx, rdi
je 0x140124787
test byte [rcx + 0x1c], 8
je 0x140124787
lea edx, [rax + 0x3c]
lea rax, [0x140046820]
jmp 0x140124772
lea rcx, [0x1400467e0]
mov r8d, 8
mov rdx, rdi
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x1401245d4
lea rcx, [0x140046838]
mov rdx, rdi
call fcn.14012a154
mov r12, rax
test rax, rax
jne 0x1401245e8
lea r9d, [rax + 0xe]
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x140154018]
lea rdi, [0x140154018]
cmp rcx, rdi
je 0x140124787
test byte [rcx + 0x1c], 8
je 0x140124787
lea edx, [rax + 0x3a]
jmp 0x140124568
mov rcx, rdi
call fcn.140129d40
mov r12, rax
test rax, rax
je 0x14012478c
mov rdx, qword [r14]
shl r13, 5
mov rcx, r12
add rdx, r13
lea r8, [rdx + 8]
call fcn.14012d118
test eax, eax
je 0x1401246f8
mov rcx, qword [r14]
lea rdx, [0x14000ca50]
mov rcx, qword [r13 + rcx]
call fcn.14012a154
mov rcx, rax
mov qword [rsp + 0x40], rax
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetDriveTypeW]
cmp eax, 3
jne 0x140124687
mov rax, qword [r14]
mov rdx, qword [rsp + 0x60]
mov edi, dword [rsp + 0x48]
mov rcx, qword [r13 + rax]
mov eax, 0x3f
add edi, esi
mov word [rcx + 2], ax
mov rax, qword [r14]
mov dword [rsp + 0x48], edi
mov dword [r13 + rax + 0x14], 0x200000
mov rcx, qword [r14]
mov eax, dword [rdx + r15 + 8]
mov dword [r13 + rcx + 0x10], eax
mov rcx, qword [r14]
mov eax, dword [rdx + r15 + 0x24]
mov dword [r13 + rcx + 0x18], eax
cmp edi, dword [r15 + 4]
jae 0x1401247b9
mov r13, qword [rsp + 0x40]
jmp 0x1401244d7
mov r9d, 0x32
mov esi, ebx
mov ebx, r9d
mov r10, qword [0x140154018]
lea rdi, [0x140154018]
cmp r10, rdi
je 0x1401247e0
test byte [r10 + 0x1c], 8
mov rdi, qword [rsp + 0x40]
je 0x1401247ea
mov rax, qword [r14]
mov ecx, dword [rsp + 0x48]
lea edx, [r9 + 0xd]
shl rcx, 5
lea r8, [0x140046858]
mov rax, qword [rcx + rax + 8]
mov rcx, qword [r10 + 0x10]
mov qword [rsp + 0x30], rax
lea rax, [0x140046018]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.14011c4b8
jmp 0x1401247ea
mov rax, qword [0x140154018]
lea rdi, [0x140154018]
cmp rax, rdi
je 0x14012473a
test byte [rax + 0x1c], 2
je 0x14012473a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov rcx, qword [0x140154018]
lea r8, [0x140046858]
mov rcx, qword [rcx + 0x10]
mov edx, 0x3d
mov r9, r12
mov dword [rsp + 0x20], eax
call fcn.14011a870
mov esi, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
mov rax, qword [0x140154018]
cmp rax, rdi
je 0x140124787
test byte [rax + 0x1c], 8
je 0x140124787
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edx, 0x3e
mov r9d, eax
lea rax, [0x140043d40]
mov rcx, qword [0x140154018]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140046858]
mov qword [rsp + 0x20], rax
call fcn.14011834c
mov rdi, rsi
jmp 0x1401247ea
mov r9d, 0xe
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x140154018]
lea rdi, [0x140154018]
cmp rcx, rdi
je 0x140124787
test byte [rcx + 0x1c], 8
je 0x140124787
lea edx, [r9 + 0x2d]
jmp 0x140124568
mov edx, dword [r14 + 8]
mov rcx, qword [r14]
lea r9, [0x14005f3b0]
mov r8d, 0x20
call qword [sym.imp.msvcrt.dll_qsort]
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x50], rbx
mov qword [rax], r14
mov rdi, qword [rsp + 0x40]
jmp 0x1401247ea
mov rdi, rbx
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemFree]
lea rcx, [rsp + 0x50]
call fcn.140124130
mov rcx, r15
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemFree]
lea rcx, [0x1400466d0]
call fcn.1401299d0
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
mov eax, esi
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.14005dc70
mov rbx, qword [rsp + 0x2d8]
add rsp, 0x290
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret