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

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x9c0]
sub rsp, 0xac0
mov r14, rcx
mov rsi, r8
mov rcx, rdx
mov rdi, rdx
call fcn.1400384e0
movsxd rbx, eax
cmp ebx, 9
jne 0x140048eef
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call fcn.140048950
add rsp, 0xac0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov qword [rsp + 0xab0], r15
cmp ebx, 4
jne 0x140048fa0
mov r8d, 0x103
lea rcx, [rbp - 0x60]
mov rdx, rsi
call fcn.1400b02e4
xor r15d, r15d
lea rcx, [rbp - 0x60]
mov word [rbp + 0x1a6], r15w
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r15w
jne 0x140048f25
test rax, rax
je 0x140048f48
cmp word [rbp + rax*2 - 0x62], 0x5c
je 0x140048f48
mov r14d, 0x5c
mov word [rbp + rax*2 - 0x60], r14w
lea rdx, [rdi + 0x12]
nop dword [rax]
movzx eax, word [rdx]
cmp ax, 0x20
je 0x140048f5f
cmp ax, 9
jne 0x140048f65
add rdx, 2
jmp 0x140048f50
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_SetVolumeLabelW]
lea rcx, [0x1400cb014]
mov byte [rsp + 0x20], 1
test eax, eax
lea rdx, [0x1400de630]
cmovne rdx, rcx
mov rcx, qword [0x1400fee90]
xor r9d, r9d
or r8, 0xffffffffffffffff
call fcn.14008a870
jmp 0x140049235
mov rdi, qword [0x1401030e0]
xor r9d, r9d
mov rcx, rdi
mov qword [rsp + 0xaf8], r12
or r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
xor edx, edx
call fcn.14008a870
cmp ebx, 8
ja case.0x140048fe0.4
lea r12, [0x140000000]
mov eax, dword [r12 + rbx*4 + 0x494f0]
add rax, r12
jmp rax
xor r15d, r15d
cmp word [rsi], r15w
jne 0x140048ff5
mov ebx, 0x100
jmp 0x140049087
lea rdx, [0x1400e6648]
mov rcx, rsi
call fcn.1400a7220
test eax, eax
jne 0x14004900d
lea ebx, [rax + 5]
jmp 0x140049087
lea rdx, [0x1400e6658]
mov rcx, rsi
call fcn.1400a7220
test eax, eax
jne 0x140049025
lea ebx, [rax + 2]
jmp 0x140049087
lea rdx, [0x1400e6670]
mov rcx, rsi
call fcn.1400a7220
test eax, eax
jne 0x14004903d
lea ebx, [rax + 3]
jmp 0x140049087
lea rdx, [0x1400e6680]
mov rcx, rsi
call fcn.1400a7220
test eax, eax
jne 0x140049055
lea ebx, [rax + 4]
jmp 0x140049087
lea rdx, [0x1400e6690]
mov rcx, rsi
call fcn.1400a7220
test eax, eax
jne 0x14004906d
lea ebx, [rax + 6]
jmp 0x140049087
lea rdx, [0x1400e66a0]
mov rcx, rsi
call fcn.1400a7220
test eax, eax
jne case.0x140048fe0.0
mov ebx, r15d
mov qword [rsp + 0xab8], r13
lea r12, [rsp + 0x60]
mov r13d, r15d
mov sil, 0x41
nop word [rax + rax]
movzx eax, sil
lea rcx, [rbp + 0x1b0]
mov word [rbp + 0x1b0], ax
mov dword [rbp + 0x1b2], 0x5c003a
mov word [rbp + 0x1b6], r15w
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, ebx
je 0x1400490db
cmp ebx, 0x100
jne 0x1400490eb
cmp eax, 1
je 0x1400490eb
movzx eax, sil
inc r13d
mov word [r12], ax
add r12, 2
inc sil
cmp sil, 0x5a
jbe 0x1400490a0
movsxd rax, r13d
lea rdx, [rsp + 0x60]
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
mov rcx, rdi
mov word [rsp + rax*2 + 0x60], r15w
call fcn.14008a870
mov r13, qword [rsp + 0xab8]
cmp word [rsp + 0x60], r15w
jne case.0x140048fe0.4
mov rcx, qword [rbp + 0x9f0]
call fcn.140038a80
jmp 0x14004922d
mov r8d, 0x103
lea rcx, [rbp - 0x60]
mov rdx, rsi
call fcn.1400b02e4
xor r15d, r15d
lea rcx, [rbp - 0x60]
mov word [rbp + 0x1a6], r15w
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r15w
jne 0x140049160
test rax, rax
je 0x140049183
cmp word [rbp + rax*2 - 0x62], 0x5c
je 0x140049183
mov r14d, 0x5c
mov word [rbp + rax*2 - 0x60], r14w
mov dword [rsp + 0x38], 0xff
lea rax, [rbp + 0x5b0]
mov qword [rsp + 0x30], rax
lea r9, [rbp + 0xa08]
lea rax, [rsp + 0x40]
mov r8d, 0xff
mov qword [rsp + 0x28], rax
lea rdx, [rbp + 0x3b0]
lea rax, [rsp + 0x44]
lea rcx, [rbp - 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je case.0x140048fe0.0
sub ebx, 2
je 0x14004924b
sub ebx, 1
je 0x1400491f3
cmp ebx, 2
jne case.0x140048fe0.4
mov edx, dword [rbp + 0xa08]
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rcx, rdi
call fcn.140001280
jmp case.0x140048fe0.4
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
lea rdx, [rbp + 0x3b0]
mov rcx, rdi
call fcn.14008a870
mov rcx, qword [0x1400fee90]
lea rdx, [0x1400cb014]
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
call fcn.14008a870
mov r12, qword [rsp + 0xaf8]
mov r15, qword [rsp + 0xab0]
add rsp, 0xac0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
lea rdx, [rbp + 0x5b0]
jmp 0x140049206
mov r8d, 0x103
lea rcx, [rbp - 0x60]
mov rdx, rsi
call fcn.1400b02e4
xor r15d, r15d
lea rcx, [rbp - 0x60]
mov word [rbp + 0x1a6], r15w
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r15w
jne 0x140049285
test rax, rax
je 0x1400492a8
cmp word [rbp + rax*2 - 0x62], 0x5c
je 0x1400492a8
mov r14d, 0x5c
mov word [rbp + rax*2 - 0x60], r14w
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 6
ja case.0x140048fe0.0
mov eax, eax
mov ecx, dword [r12 + rax*4 + 0x49514]
add rcx, r12
jmp rcx
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
lea rdx, [0x1400e66a0]
jmp 0x140049206
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
lea rdx, [0x1400e6658]
jmp 0x140049206
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
lea rdx, [0x1400e6670]
jmp 0x140049206
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
lea rdx, [0x1400e6680]
jmp 0x140049206
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
lea rdx, [0x1400e66b0]
jmp 0x140049206
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
lea rdx, [0x1400e66c0]
jmp 0x140049206
mov r8d, 0x103
lea rcx, [rbp - 0x60]
mov rdx, rsi
call fcn.1400b02e4
xor r15d, r15d
lea rcx, [rbp - 0x60]
mov word [rbp + 0x1a6], r15w
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [rcx + rax*2], r15w
jne 0x140049380
test rax, rax
je 0x1400493a3
cmp word [rbp + rax*2 - 0x62], 0x5c
je 0x1400493a3
mov r14d, 0x5c
mov word [rbp + rax*2 - 0x60], r14w
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x54]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
jne 0x140049422
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140049422
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
mov rcx, rdi
cmp eax, 3
je 0x140049416
cmp eax, 0x13
je 0x14004940a
cmp eax, 0x15
je 0x1400493fe
lea rdx, [0x1400e66a0]
jmp 0x140049209
lea rdx, [0x1400e66f0]
jmp 0x140049209
lea rdx, [0x1400e6708]
jmp 0x140049209
lea rdx, [0x1400e66e0]
jmp 0x140049209
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
lea rdx, [0x1400e66d0]
jmp 0x140049206
cmp word [rsi], 0
jne 0x140049461
xor r9d, r9d
lea rdx, [rbp + 0x2b0]
mov r8d, 0x80
lea rcx, [0x1400e6720]
call qword [sym.imp.WINMM.dll_mciSendStringW]
test eax, eax
jmp 0x1400494cf
mov r9, rsi
lea r8, [0x1400e6590]
mov edx, 0x100
lea rcx, [rbp + 0x7b0]
call fcn.140087360
xor r9d, r9d
lea rcx, [rbp + 0x7b0]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WINMM.dll_mciSendStringW]
test eax, eax
jne case.0x140048fe0.0
xor r9d, r9d
lea rdx, [rbp + 0x2b0]
mov r8d, 0x80
lea rcx, [0x1400e6748]
call qword [sym.imp.WINMM.dll_mciSendStringW]
xor r9d, r9d
lea rcx, [0x1400e6618]
xor r8d, r8d
xor edx, edx
mov ebx, eax
call qword [sym.imp.WINMM.dll_mciSendStringW]
test ebx, ebx
jne case.0x140048fe0.0
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
lea rdx, [rbp + 0x2b0]
jmp 0x140049206