Function at 0x14008a3dc
Capabilities:
Get disk information
Get disk size

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x140
mov r12, rcx
lea rcx, [0x14011cf88]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rsp + 0x188]
call fcn.140054c14
mov r15d, 5
lea rcx, [rsp + 0x50]
mov rdx, r15
call fcn.14005c9e0
lea edx, [r15 + 0xf]
lea rcx, [rsp + 0x48]
call fcn.14005c9e0
lea rcx, [rsp + 0x58]
call fcn.14005c96c
mov rax, qword [rsp + 0x188]
xor esi, esi
or r13, 0xffffffffffffffff
cmp word [rax], 0x2d
mov byte [rsp + 0x198], sil
mov bpl, r13b
mov byte [rsp + 0x40], sil
lea edi, [rsi + 8]
lea r14d, [r15 - 4]
jne 0x14008a5b0
lea ebx, [rsi + 9]
lea rdx, [rsp + 0x188]
lea rcx, str._userfree
mov r8d, ebx
call fcn.14005f144
cmp al, sil
je 0x14008a49b
mov bpl, sil
jmp 0x14008a59e
lea rdx, [rsp + 0x188]
lea rcx, str._userall
mov r8d, edi
call fcn.14005f144
cmp al, sil
je 0x14008a4bf
mov bpl, r14b
jmp 0x14008a59e
lea rdx, [rsp + 0x188]
lea rcx, str._free
mov r8d, r15d
call fcn.14005f144
cmp al, sil
je 0x14008a4e3
mov bpl, 2
jmp 0x14008a59e
lea rdx, [rsp + 0x188]
lea rcx, str._raw
mov r8d, 4
call fcn.14005f144
cmp al, sil
je 0x14008a50f
mov byte [rsp + 0x198], r14b
jmp 0x14008a59e
lea rdx, [rsp + 0x188]
lea rcx, [0x1401077b0]
mov r8d, 2
call fcn.14005f144
cmp al, sil
je 0x14008a535
mov byte [rsp + 0x40], r14b
jmp 0x14008a59e
lea rdx, [rsp + 0x188]
lea rcx, str._clear
mov r8d, 6
call fcn.14005f144
cmp al, sil
jne 0x14008a643
mov rcx, qword [rsp + 0x188]
movzx eax, word [rcx]
cmp ax, si
je 0x14008a591
cmp bx, ax
ja 0x14008a573
cmp ax, 0xd
jbe 0x14008a589
mov edx, 0x20
cmp dx, ax
je 0x14008a589
add rcx, 2
mov ax, word [rcx]
cmp ax, si
jne 0x14008a568
mov qword [rsp + 0x188], rcx
lea rcx, [rsp + 0x188]
call fcn.140054c14
mov rax, qword [rsp + 0x188]
cmp word [rax], 0x2d
je 0x14008a477
mov ebx, 0x3d
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x188]
mov r8d, ebx
call fcn.1400604ac
lea rdx, [rsp + 0x48]
xor r8d, r8d
mov rcx, r12
call fcn.14000396c
mov rax, qword [rsp + 0x188]
lea edi, [rbx - 0x11]
cmp bx, word [rax]
jne 0x14008a60b
add rax, 2
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x188]
mov r8d, edi
mov qword [rsp + 0x188], rax
call fcn.1400604ac
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x188], rcx
call fcn.14001a310
lea rcx, [rsp + 0x50]
mov rdx, rax
call fcn.140067270
lea rcx, [rsp + 0x188]
call fcn.140054c44
mov r11, qword [rsp + 0x48]
jmp 0x14008a662
lea rcx, [0x14011c610]
mov r8, rdi
xor edx, edx
call fcn.1400e16a0
jmp 0x14008aacd
cmp ax, di
je 0x14008a66d
add r11, 2
movzx eax, word [r11]
cmp ax, si
jne 0x14008a659
jmp 0x14008a692
mov word [r11], si
add r11, 2
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x188]
mov r8d, edi
mov qword [rsp + 0x188], r11
call fcn.1400604ac
lea rdx, [rsp + 0x58]
xor r8d, r8d
mov rcx, r12
call fcn.14000396c
mov rcx, qword [rsp + 0x48]
call fcn.1400176cc
mov r11, qword [rsp + 0x48]
cmp word [r11], si
jne 0x14008a6c1
mov rax, qword [rsp + 0x58]
cmp word [rax], si
je 0x14008a6cc
mov r9, qword [rsp + 0x50]
cmp word [r9], si
jne 0x14008a6d4
mov rsi, r14
jmp 0x14008aacd
lea rcx, [0x1401021cc]
mov rdx, r9
call fcn.140056198
cmp al, sil
je 0x14008a72f
lea rcx, [rsp + 0x58]
mov edx, 0xca
call fcn.14005ca6c
mov rax, qword [rsp + 0x58]
lea rcx, [rsp + 0x50]
mov edx, 0x7c
xor r9d, r9d
mov r8d, r14d
mov word [rax], si
mov dword [rsp + 0x20], esi
call fcn.14006e4f8
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, r12
call fcn.14005be18
jmp 0x14008aacd
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
lea ecx, [rax + 0x19]
movsxd rdx, ecx
lea rcx, [rsp + 0x50]
call fcn.14005ca6c
cmp bpl, sil
mov rbx, qword [rsp + 0x50]
jl 0x14008a81d
mov ecx, 0x3a
lea edx, [rcx + 0x22]
cmp edi, r14d
jne 0x14008a777
cmp word [rbx], 0x2e
je 0x14008a78a
mov word [rbx + 2], cx
mov word [rbx + 4], dx
mov word [rbx + 6], si
cmp edi, 2
jne 0x14008a78a
cmp word [rbx + 2], cx
jne 0x14008a78a
mov word [rbx + 4], dx
mov word [rbx + 6], si
mov eax, dword [0x1401030c0]
lea rcx, [rsp + 0xc0]
xor edx, edx
mov dword [rcx], eax
movzx eax, word [0x1401030c4]
lea r8d, [rdx + 0x76]
mov word [rcx + 4], ax
lea rcx, [rsp + 0xc6]
call fcn.1400e16a0
xor eax, eax
lea r9, [rsp + 0x78]
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x68]
mov rcx, rbx
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov ebx, eax
cmp eax, esi
je 0x14008a7fd
movsx rdx, bpl
lea rcx, [rsp + 0xc0]
mov rdx, qword [rsp + rdx*8 + 0x68]
call fcn.1400cca40
mov rdx, qword [rsp + 0x48]
lea r8, [rsp + 0xc0]
mov rcx, r12
call fcn.14005be18
cmp ebx, esi
sete sil
jmp 0x14008aacd
cmp word [rbx], 0x61
jb 0x14008a831
cmp word [rbx], 0x7a
ja 0x14008a831
mov eax, 0xffdf
and word [rbx], ax
lea rdx, str..C:
lea rcx, [rsp + 0x60]
call fcn.1400671f0
mov rdi, qword [rsp + 0x60]
movzx r11d, word [rbx]
mov word [rdi + 8], r11w
mov word [rdi + 0xe], si
lea rcx, str.._
mov r8d, 4
mov rdx, rbx
mov ebp, r13d
mov r14d, r13d
mov word [rdi + 0xc], si
mov r15, rbx
mov r13d, 0x800
call fcn.14005615c
cmp al, sil
jne 0x14008a8dc
lea rcx, str.Device_
mov r8d, 8
mov rdx, rbx
call fcn.14005615c
cmp al, sil
jne 0x14008a8dc
mov ecx, 0x3a
mov r15, rdi
mov word [rbx + 2], cx
lea edx, [rcx + 0x22]
mov word [rbx + 4], dx
mov word [rbx + 6], si
cmp byte [rsp + 0x40], sil
je 0x14008a914
lea edi, [rcx + 7]
cmp word [rbx], di
jb 0x14008a8dc
cmp word [rbx], 0x42
ja 0x14008a8dc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x14008a8dc
movzx r13d, word [rbx]
sub r13d, edi
cmp r13d, 1
mov rbx, rsi
mov edi, 0x20000000
mov qword [rsp + 0x188], rbx
mov r12d, 3
jg 0x14008a986
lea rax, [0x14011c610]
movsxd rcx, r13d
cmp dword [rax + rcx*4], esi
je 0x14008a986
movsx ebp, word [rax + rcx*4]
jmp 0x14008a9d7
mov rax, qword [rsp + 0x48]
cmp word [rax], si
je 0x14008a929
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ebp, eax
mov rcx, qword [rsp + 0x58]
mov bl, byte [rsp + 0x198]
cmp word [rcx], si
jne 0x14008a954
cmp bl, sil
jne 0x14008a964
cmp ebp, 2
je 0x14008a954
mov r12d, 3
cmp ebp, r12d
je 0x14008a954
cmp ebp, 5
jne 0x14008a961
xor edx, edx
mov rcx, rdi
call fcn.14005ef74
mov r14d, eax
cmp bl, sil
mov r8, 0xffffffffffffffff
lea rdx, [rsp + 0x80]
mov ecx, ebp
cmove r8d, r14d
call fcn.140059644
mov rbx, rax
jmp 0x14008aa5e
mov rax, qword [rsp + 0x48]
cmp word [rax], si
je 0x14008a9d7
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], edi
lea rcx, [rsp + 0x188]
mov r9d, r12d
mov r8d, 0x80000000
mov rdx, r15
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rsi
call fcn.1400037d4
mov rbx, qword [rsp + 0x188]
xor edx, edx
mov r9d, r13d
lea r8d, [rdx + 1]
mov rcx, rbx
call fcn.140062794
mov ebp, eax
mov rax, qword [rsp + 0x58]
cmp word [rax], si
je 0x14008aa27
cmp rbx, rsi
jne 0x14008aa1a
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], edi
lea rcx, [rsp + 0x188]
mov r9d, r12d
mov r8d, 0x80000000
mov rdx, r15
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rsi
call fcn.1400037d4
mov rbx, qword [rsp + 0x188]
mov rdx, rbx
xor ecx, ecx
call fcn.14005ef74
mov r14d, eax
cmp rbx, rsi
je 0x14008aa3e
or rax, 0xffffffffffffffff
cmp rbx, rax
je 0x14008aa3e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [0x1400fde8c]
lea rcx, [rsp + 0x80]
mov r8d, ebp
lea rbx, [rsp + 0x80]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x180]
cmp word [rdx], si
je 0x14008aa7b
mov r8, rbx
mov rcx, rdi
call fcn.14005be18
mov rax, qword [rsp + 0x58]
cmp word [rax], si
je 0x14008aab2
lea rdx, [0x1400fde8c]
lea rcx, [rsp + 0x80]
mov r8d, r14d
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, qword [rsp + 0x58]
lea r8, [rsp + 0x80]
mov rcx, rdi
call fcn.14005be18
lea rcx, [rsp + 0x60]
cmp word [rbx], si
jne 0x14008aac8
call fcn.140054c44
mov esi, 1
jmp 0x14008aacd
call fcn.140054c44
lea rcx, [rsp + 0x58]
call fcn.140054c44
lea rcx, [rsp + 0x48]
call fcn.140054c44
lea rcx, [rsp + 0x50]
call fcn.140054c44
lea rcx, [0x14011cf88]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x190]
mov rax, rsi
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret