Function at 0x140121194
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3f0]
sub rsp, 0x4f0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x3e0], rax
mov dword [rsp + 0x50], ecx
xor ebx, ebx
lea rcx, [0x1400459f8]
mov rdi, r8
mov qword [rbp - 0x70], r8
mov r15, rdx
lea esi, [rbx + 1]
call fcn.140129990
mov r14d, 0x206
lea rcx, [rbp - 0x3e]
xor edx, edx
mov r8d, r14d
mov qword [rsp + 0x40], rbx
mov word [rbp - 0x40], bx
call sub.msvcrt.dll_memset
lea rcx, [rbp + 0x1d2]
mov r8d, r14d
xor edx, edx
mov word [rbp + 0x1d0], bx
call sub.msvcrt.dll_memset
lea r8d, [rbx + 0x26]
lea rcx, [rbp - 0x66]
xor edx, edx
mov word [rbp - 0x68], bx
call sub.msvcrt.dll_memset
or eax, 0xffffffff
or r12, 0xffffffffffffffff
mov r14d, ebx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x78], rbx
mov qword [rbp - 0x78], r12
mov dword [rsp + 0x74], eax
mov dword [rsp + 0x64], eax
mov dword [rsp + 0x60], eax
mov qword [rbp - 0x80], rbx
test rdi, rdi
je 0x14012125b
mov qword [rdi], rbx
test r15, r15
jne 0x1401212af
lea r9d, [r15 + 0x57]
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x140154018]
lea rdi, [0x140154018]
cmp rcx, rdi
je 0x140121bf0
test byte [rcx + 0x1c], 8
je 0x140121bf0
lea edx, [r15 + 0x1c]
lea rax, [0x140045ac8]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140046518]
mov qword [rsp + 0x20], rax
call fcn.14011834c
jmp 0x140121bf0
test rdi, rdi
jne 0x1401212eb
lea r9d, [rdi + 0x57]
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x140154018]
lea rdi, [0x140154018]
cmp rcx, rdi
je 0x140121bf0
test byte [rcx + 0x1c], 8
je 0x140121bf0
lea edx, [r9 - 0x3a]
lea rax, [0x140045ab0]
jmp 0x140121295
cmp dword [r15 + 4], ebx
je 0x140121375
lea rax, [rsp + 0x68]
lea rdx, [0x140045710]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x68]
test eax, eax
lea rax, [rcx - 1]
mov edi, ebx
sete dil
cmp rax, 0xfffffffffffffffd
ja 0x14012133e
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test edi, edi
je 0x14012137d
mov rcx, qword [0x140154018]
lea rdi, [0x140154018]
cmp rcx, rdi
je 0x140121375
mov r13d, 2
test byte [rcx + 0x1c], r13b
je 0x140121375
mov rcx, qword [rcx + 0x10]
lea edx, [r13 + 0x1c]
lea r8, [0x140046518]
call fcn.140118174
mov rcx, rbx
jmp 0x140121bf3
call fcn.140125da0
movsxd rdi, eax
test eax, eax
jne 0x1401213c4
mov r9d, 0x65e
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x140154018]
lea rdi, [0x140154018]
cmp rcx, rdi
je 0x140121bf0
test byte [rcx + 0x1c], 8
je 0x140121bf0
lea edx, [rax + 0x1f]
lea rax, [0x140045b08]
jmp 0x140121295
cmp edi, esi
jne 0x140121422
lea rcx, [rsp + 0x74]
call fcn.140123be8
test eax, eax
jne 0x140121422
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 0x140121bf0
test byte [rax + 0x1c], 8
je 0x140121bf0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edx, 0x20
mov r9d, eax
lea rax, [0x140045ad8]
mov rcx, qword [0x140154018]
jmp 0x140121295
lea rcx, [rbp + 0x1d0]
call fcn.14012092c
test eax, eax
jne 0x140121474
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 0x140121bf0
test byte [rax + 0x1c], 8
je 0x140121bf0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edx, 0x21
mov r9d, eax
lea rax, [0x140045b30]
jmp 0x140121416
mov r13d, 3
mov qword [rsp + 0x30], rbx
lea rcx, [rbp + 0x1d0]
xor r9d, r9d
mov edx, 0x80000000
mov r8d, r13d
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], r13d
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_CreateFileW]
lea rcx, [rax - 1]
mov qword [rbp - 0x78], rax
cmp rcx, 0xfffffffffffffffd
ja 0x140121bb1
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x28], rbx
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov edx, 0x560000
mov rcx, rax
call fcn.14012aed4
test eax, eax
jne 0x140121520
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 0x140121bf0
test byte [rax + 0x1c], 8
je 0x140121bf0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
lea edx, [r13 + 0x20]
mov r9d, eax
lea rax, [0x140045bb0]
jmp 0x140121416
lea rcx, [rsp + 0x48]
call fcn.14012cd78
test eax, eax
jne 0x14012158c
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 0x140121582
test byte [rax + 0x1c], 8
je 0x140121582
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edx, 0x24
mov r9d, eax
lea rax, [0x140045b80]
mov rcx, qword [0x140154018]
lea r8, [0x140046518]
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx + 0x10]
call fcn.14011834c
mov r14, qword [rsp + 0x48]
jmp 0x140121bf0
mov rcx, qword [rsp + 0x48]
cmp word [rcx], bx
je 0x1401215ba
mov rax, r12
inc rax
cmp word [rcx + rax*2], bx
jne 0x140121599
cmp word [rcx + rax*2 - 2], 0x5c
jne 0x1401215ba
inc r12
cmp word [rcx + r12*2], bx
jne 0x1401215aa
mov word [rcx + r12*2 - 2], bx
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov r8d, r13d
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], r13d
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_CreateFileW]
mov r12, rax
mov qword [rsp + 0x58], rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140121b65
lea rax, [rbp - 0x80]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x560000
mov rcx, r12
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call fcn.14012aed4
test eax, eax
jne 0x14012165d
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 0x140121a9c
test byte [rax + 0x1c], 8
je 0x140121a9c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edx, 0x26
mov r9d, eax
lea rax, [0x140045c30]
jmp 0x140121566
mov eax, dword [r15 + 4]
lea ecx, [rax + rax*2]
shl ecx, 3
call fcn.1401296bc
mov rdx, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1401216c7
lea r9d, [rax + 0xe]
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x140154018]
lea rdi, [0x140154018]
cmp rcx, rdi
je 0x140121a9c
test byte [rcx + 0x1c], 8
je 0x140121a9c
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x27]
lea rax, [0x140045d28]
lea r8, [0x140046518]
mov qword [rsp + 0x20], rax
call fcn.14011834c
jmp 0x140121a9c
mov ecx, ebx
mov dword [rsp + 0x70], ebx
cmp dword [r15 + 4], ebx
jbe 0x140121a36
mov r10, rdi
mov qword [rsp + 0x68], rdi
mov r13d, 2
lea rdi, [0x140154018]
mov eax, ecx
lea r14, [rax + rax*8]
lea rax, [rax + rax*2]
lea r12, [rdx + rax*8]
add r14, r14
mov dword [r12 + 8], ecx
cmp dword [r15 + r14*8 + 0x48], ebx
je 0x140121a21
cmp dword [r15 + r14*8 + 0x30], ebx
jne 0x14012172d
mov al, byte [r15 + r14*8 + 0x50]
cmp al, 0xf
ja 0x14012172d
mov r8d, 0x8021
bt r8d, eax
jb 0x140121a21
cmp dword [r15 + r14*8 + 0x30], esi
jne 0x140121757
mov rax, qword [r15 + r14*8 + 0x50]
sub rax, qword [0x14003b8b8]
jne 0x14012174e
mov rax, qword [r15 + r14*8 + 0x58]
sub rax, qword [0x14003b8c0]
test rax, rax
je 0x140121a21
mov rax, qword [rsp + 0x78]
mov r11d, dword [rsp + 0x50]
mov ecx, ebx
mov r9d, dword [rax]
test r9d, r9d
je 0x1401217cc
mov r8, qword [rsp + 0x78]
mov eax, ecx
lea rdx, [rax + rax*2]
cmp dword [r8 + rdx*8 + 8], r11d
jne 0x140121789
mov rax, qword [r15 + r14*8 + 0x38]
cmp qword [r8 + rdx*8 + 0x10], rax
je 0x140121792
add ecx, esi
cmp ecx, r9d
jb 0x14012176b
jmp 0x1401217cc
or word [r12 + 0xc], r13w
movzx eax, word [r12 + 0xc]
cmp r10, rsi
jne 0x1401217aa
cmp dword [rsp + 0x74], r11d
je 0x1401217af
cmp r10, r13
jne 0x1401217cc
or ax, 4
mov word [r12 + 0xc], ax
cmp r10, r13
jne 0x1401217cc
mov eax, dword [r15 + r14*8 + 0x48]
mov dword [rsp + 0x64], r11d
mov dword [rsp + 0x60], eax
mov rax, qword [rbp - 0x80]
mov ecx, ebx
mov r9d, dword [rax]
test r9d, r9d
je 0x140121806
mov r8, qword [rbp - 0x80]
mov eax, ecx
lea rdx, [rax + rax*2]
cmp dword [r8 + rdx*8 + 8], r11d
jne 0x1401217f7
mov rax, qword [r15 + r14*8 + 0x38]
cmp qword [r8 + rdx*8 + 0x10], rax
je 0x140121800
add ecx, esi
cmp ecx, r9d
jb 0x1401217da
jmp 0x140121806
or word [r12 + 0xc], si
mov edx, dword [r15 + r14*8 + 0x48]
lea r9, [rbp - 0x40]
mov ecx, r11d
call fcn.14012a230
test eax, eax
je 0x140121b27
lea rcx, [rbp - 0x40]
mov rdx, r12
call fcn.14012daec
test eax, eax
jne 0x140121858
mov rcx, qword [0x140154018]
cmp rcx, rdi
je 0x14012185f
test byte [rcx + 0x1c], r13b
je 0x14012185f
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x29]
lea r9, [rbp - 0x40]
lea r8, [0x140046518]
call fcn.140118288
mov rcx, qword [0x140154018]
mov r10, qword [rsp + 0x68]
cmp r10, r13
jne 0x140121a18
cmp dword [r15 + r14*8 + 0x30], esi
jne 0x140121893
mov rax, qword [r15 + r14*8 + 0x50]
sub rax, qword [0x14003b8c8]
jne 0x14012188e
mov rax, qword [r15 + r14*8 + 0x58]
sub rax, qword [0x14003b8d0]
test rax, rax
je 0x1401218b6
mov r8d, dword [rsp + 0x50]
mov eax, dword [rsp + 0x64]
cmp r8d, eax
jne 0x140121a18
mov edx, dword [rsp + 0x60]
cmp dword [r15 + r14*8 + 0x48], edx
jne 0x140121a18
jmp 0x1401218c3
mov r8d, dword [rsp + 0x50]
mov eax, dword [rsp + 0x64]
mov edx, dword [rsp + 0x60]
cmp r8d, eax
jne 0x1401218cf
cmp dword [r15 + r14*8 + 0x48], edx
je 0x140121900
cmp rcx, rdi
je 0x140121900
test byte [rcx + 0x1c], 4
je 0x140121900
mov eax, dword [r15 + r14*8 + 0x48]
mov rcx, qword [rcx + 0x10]
mov r9d, r8d
lea r8, [0x140046518]
mov edx, 0x2a
mov dword [rsp + 0x20], eax
call fcn.140118304
mov r8d, dword [rsp + 0x50]
mov eax, dword [r15 + r14*8 + 0x48]
lea r9, [0x140045d88]
lea rcx, [rbp - 0x40]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r8d
lea r8, [0x140045d40]
mov edx, 0x104
call fcn.14004af20
test eax, eax
js 0x140121aab
mov dword [rsp + 0x38], 0x14
lea rax, [rbp - 0x68]
mov byte [r12 + 0xe], bl
mov qword [rsp + 0x30], rax
lea rcx, [rbp - 0x40]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
mov word [rbp - 0x68], bx
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetVolumeInformationW]
test eax, eax
jne 0x140121a01
mov rax, qword [0x140154018]
cmp rax, rdi
je 0x1401219af
test byte [rax + 0x1c], 4
je 0x1401219af
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov rcx, qword [0x140154018]
mov r12d, dword [rsp + 0x50]
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x28], eax
mov eax, dword [r15 + r14*8 + 0x48]
mov r9d, r12d
mov dword [rsp + 0x20], eax
call fcn.140124028
jmp 0x1401219b4
mov r12d, dword [rsp + 0x50]
cmp r12d, dword [rsp + 0x64]
jne 0x140121a13
mov eax, dword [rsp + 0x60]
cmp dword [r15 + r14*8 + 0x48], eax
jne 0x140121a13
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 0x140121a97
test byte [rax + 0x1c], 8
je 0x140121a97
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edx, 0x2d
mov r9d, eax
lea rax, [0x1400434a0]
jmp 0x140121a7b
lea rdx, [r12 + 0xe]
lea rcx, [rbp - 0x68]
call fcn.1401310d4
test eax, eax
je 0x140121a4a
mov r10, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x70]
add ecx, esi
mov dword [rsp + 0x70], ecx
cmp ecx, dword [r15 + 4]
jb 0x1401216ec
mov r12, qword [rsp + 0x58]
mov rax, qword [rbp - 0x70]
mov r14, qword [rsp + 0x48]
mov rcx, rbx
mov qword [rax], rdx
jmp 0x140121bf3
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 0x140121a97
test byte [rax + 0x1c], 8
je 0x140121a97
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edx, 0x2e
mov r9d, eax
lea rax, [0x140045db0]
mov rcx, qword [0x140154018]
lea r8, [0x140046518]
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx + 0x10]
call fcn.14011834c
mov r12, qword [rsp + 0x58]
mov r14, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
jmp 0x140121bf3
mov ecx, eax
mov esi, ebx
call fcn.140129a10
mov ebx, eax
mov rax, qword [0x140154018]
cmp rax, rdi
je 0x140121a97
test byte [rax + 0x1c], 8
je 0x140121a97
mov eax, dword [r15 + r14*8 + 0x48]
mov r12d, dword [rsp + 0x50]
lea r9, [0x140045d88]
mov dword [rsp + 0x28], eax
lea r8, [0x140045d40]
lea rcx, [rbp - 0x40]
mov edx, 0x104
mov dword [rsp + 0x20], r12d
call fcn.14004af20
mov rcx, qword [0x140154018]
lea r8, [0x140046518]
mov rcx, qword [rcx + 0x10]
mov r9d, eax
lea rax, [0x140045e00]
mov edx, 0x2b
mov qword [rsp + 0x20], rax
call fcn.14011834c
jmp 0x140121a97
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 0x140121a97
test byte [rax + 0x1c], 8
je 0x140121a97
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edx, 0x28
mov r9d, eax
lea rax, [0x140045cb0]
jmp 0x140121a7b
mov esi, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x140154018]
lea rdi, [0x140154018]
cmp rcx, rdi
je 0x140121582
test byte [rcx + 0x1c], 8
je 0x140121582
mov rcx, qword [rcx + 0x10]
lea r9, [0x140045ca0]
lea r8, [0x140046518]
mov edx, 0x25
call fcn.14011a904
jmp 0x140121582
mov esi, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x140154018]
lea rdi, [0x140154018]
cmp rcx, rdi
je 0x140121bf0
test byte [rcx + 0x1c], 8
je 0x140121bf0
mov rcx, qword [rcx + 0x10]
lea r9, [0x140045b20]
lea r8, [0x140046518]
mov edx, 0x22
call fcn.14011a904
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemFree]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemFree]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemFree]
mov rcx, qword [rbp - 0x78]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140121c2b
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
lea rdx, [r12 - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x140121c3f
mov rcx, r12
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
lea rcx, [0x1400459f8]
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 + 0x3e0]
xor rcx, rsp
call fcn.14005dc70
mov rbx, qword [rsp + 0x548]
add rsp, 0x4f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret