Function at 0x14004a878
Capabilities:
Get disk information
Get disk size
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xf8
lea rcx, [rsp + 0x70]
mov r12, rdx
call fcn.140055fcc
or rax, 0xffffffffffffffff
lea rcx, [rsp + 0x50]
xor ebx, ebx
mov edx, reloc.SHLWAPI.dll_StrChrW
mov r13d, eax
mov esi, ebx
mov qword [rsp + 0x88], rax
call fcn.140055ddc
mov rax, qword [rsp + 0x50]
lea r8d, [rbx + 0x28]
xor edx, edx
add rax, 0x100028
mov qword [rsp + 0x48], rbx
lea r14, [rax + 0x422]
mov qword [rsp + 0x60], rax
lea r15, [r14 + 0x20a]
mov word [r15], bx
lea rax, [r15 + 0x824]
mov word [rax], bx
mov qword [rsp + 0xa0], rax
add rax, 0x64
mov word [rax], bx
mov qword [rsp + 0x98], rax
add rax, 0x64
mov word [rax], bx
mov word [rax + 0x64], bx
mov qword [rsp + 0x90], rax
add rax, 0xc8
mov qword [rsp + 0xb8], rax
mov word [rax], bx
mov rdi, qword [rsp + 0x50]
lea rax, [0x1400e94a4]
mov rcx, rdi
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x44], ebx
mov qword [rsp + 0xb0], rdi
lea rbp, [rdi + 8]
mov dword [rsp + 0x58], ebx
mov dword [rsp + 0x40], ebx
call fcn.1400cc8d0
lea eax, [rbx + 5]
lea r8d, [rbx + 0x5c]
xor edx, edx
mov rcx, r12
mov dword [rdi], eax
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
lea r8d, [rbx + 0x2f]
xor edx, edx
mov rcx, r12
mov rdi, rax
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
cmp rax, rdi
cmova rdi, rax
xor eax, eax
movzx r12d, ax
cmp rdi, rax
je 0x14004a9af
mov r12w, word [rdi]
mov word [rdi], ax
mov rcx, qword [rsp + 0x148]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
xor r10d, r10d
cmp rdi, r10
je 0x14004a9db
mov word [rdi], r12w
mov rax, qword [rsp + 0x60]
mov ecx, 0x5c
xor r12d, r12d
mov word [rax + 6], cx
mov word [rax + 2], cx
mov word [rax], cx
lea rdi, [rax + 8]
mov ecx, 0x2e
lea r9, [rsp + 0xa8]
mov word [rax + 4], cx
mov rcx, qword [rsp + 0x148]
mov qword [rsp + 0xa8], r12
mov r8, rdi
mov edx, 0x20d
mov word [rdi], r12w
call fcn.140056dfc
lea edx, [r12 + 0x5c]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_StrChrW]
mov word [r14], r12w
lea r8d, [r12 + 0x5c]
xor edx, edx
mov rcx, rdi
mov word [r15], r12w
mov qword [rsp + 0xc0], rax
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
xor ecx, ecx
mov word [rax + 2], cx
mov dword [rsp + 0x38], 0x104
mov r12, rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov rcx, qword [rsp + 0x60]
xor r10d, r10d
mov r8d, 0x209
mov rdx, r15
add rcx, 8
mov edi, eax
mov word [r15], r10w
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
lea ecx, [rax + 1]
mov word [r12], ax
cmp edi, eax
jne 0x14004ab5f
cmp r12, qword [rsp + 0xc0]
jbe 0x14004afc6
mov rdi, qword [rsp + 0x60]
xor edx, edx
lea rcx, [rdi + 8]
lea r8d, [rdx + 0x5c]
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
xor ecx, ecx
mov dword [rsp + 0x38], 0x104
mov word [rax + 2], cx
mov r12, rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rdi + 8]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov rcx, qword [rsp + 0x60]
xor r10d, r10d
mov r8d, 0x209
mov rdx, r15
add rcx, 8
mov edi, eax
mov word [r15], r10w
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov word [r12], ax
cmp edi, eax
je 0x14004aac9
lea ecx, [rax + 1]
mov r13d, ecx
lea rcx, [0x1400efe40]
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
cmp eax, ebx
jne 0x14004ab7d
mov edi, 1
jmp 0x14004abec
lea rcx, str.FAT32
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
cmp eax, ebx
jne 0x14004ab98
mov edi, 2
jmp 0x14004abec
lea rcx, str.exFAT
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, ebx
jne 0x14004abb3
mov edi, 3
jmp 0x14004abec
lea rcx, [0x1400efe10]
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
cmp eax, ebx
jne 0x14004abd1
mov edi, 4
mov r13d, ebx
jmp 0x14004abec
lea rcx, str.CDFS
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
or edi, 0xffffffff
cmp eax, ebx
lea eax, [rdi + 6]
cmove edi, eax
mov rdx, qword [rsp + 0x60]
xor r10d, r10d
mov rbx, rdx
mov qword [rsp + 0x78], rdx
cmp word [r15], r10w
je 0x14004ac38
lea rcx, [rdx + 8]
mov rax, r12
sub rax, rcx
and rax, 0xfffffffffffffffe
cmp rax, 4
je 0x14004ac38
mov rbx, r15
mov rcx, r15
mov qword [rsp + 0x78], rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
xor r12d, r12d
movsxd rcx, eax
mov r13d, r12d
mov word [r15 + rcx*2 - 2], r12w
jmp 0x14004ac4e
lea rax, [rdx + 8]
sub r12, rax
and r12, 0xfffffffffffffffe
cmp r12, 4
mov r12, rsi
cmove r13d, r12d
cmp edi, r12d
jge 0x14004ac65
mov rax, qword [rsp + 0x178]
cmp word [rax], r12w
je 0x14004adb2
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], 0x80
lea rcx, [rsp + 0x48]
mov r9d, 7
mov r8d, 0x80000000
mov rdx, rbx
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], r12
call fcn.140003590
cmp r13d, r12d
je 0x14004aca1
mov word [rbx], r12w
xor edx, edx
lea rcx, [rsp + 0xcc]
mov dword [rsp + 0xc8], r12d
lea r8d, [rdx + 0x1c]
call fcn.1400cc8d0
mov rbx, qword [rsp + 0x48]
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x44]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xc8]
mov edx, 0x74004
mov rcx, rbx
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x44], r12d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov r12, qword [rsp + 0x50]
mov rax, qword [rsp + 0xc8]
mov r14d, 0x200
mov rcx, r12
mov r8, r14
xor edx, edx
mov qword [rsp + 0x88], rax
call fcn.1400cc8d0
xor r10d, r10d
lea r9, [rsp + 0x44]
mov r8d, r14d
mov rdx, r12
mov rcx, rbx
mov qword [rsp + 0x20], r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor r14d, r14d
cmp rbx, r14
je 0x14004ad59
cmp rbx, 0xffffffffffffffff
je 0x14004ad59
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x48], r14
cmp edi, 3
jne 0x14004ad6f
mov esi, dword [r12 + 0x58]
imul esi, dword [rsp + 0x40]
jmp 0x14004adaf
cmp edi, 2
je 0x14004ad79
cmp edi, 1
jne 0x14004adaf
movzx edx, word [r12 + 0xe]
mov r8b, byte [r12 + 0x10]
movzx eax, word [r12 + 0x11]
cmp edi, 2
jne 0x14004ad96
mov ecx, dword [r12 + 0x24]
jmp 0x14004ad9c
movzx ecx, word [r12 + 0x16]
movzx esi, r8b
shl eax, 5
imul esi, ecx
add esi, edx
imul esi, dword [rsp + 0x40]
add esi, eax
xor r12d, r12d
mov rdx, qword [rsp + 0x148]
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], 0x80
lea rcx, [rsp + 0x48]
mov r9d, 7
xor r8d, r8d
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], r12
call fcn.140003590
mov rbx, qword [rsp + 0x48]
cmp rbx, r12
jne 0x14004adf9
mov r13d, r12d
jmp 0x14004afc6
lea rdx, [rsp + 0x68]
mov rcx, rbx
mov qword [rsp + 0x68], r12
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x98]
call fcn.1400bc0f4
mov r11d, dword [rsp + 0x40]
mov rdi, qword [rsp + 0x90]
imul r11d, dword [rsp + 0x58]
mov edx, r11d
mov rcx, rdi
mov r14d, r11d
call fcn.1400bc100
mov rcx, qword [rsp + 0x50]
xor edx, edx
mov r8d, 0x100028
call fcn.1400cc8d0
mov r8, qword [rsp + 0xb0]
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x44]
mov r9d, 8
mov edx, 0x90073
mov qword [rsp + 0x30], rax
mov rcx, rbx
mov dword [rsp + 0x28], 0x100020
mov qword [rsp + 0x20], rbp
mov dword [rbp], 0x10000
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, r12d
jne 0x14004aebf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13d, eax
cmp eax, 0x26
jne 0x14004afc6
lea rcx, [r15 + 0x824]
mov rdx, 0xffffffffffffffda
call fcn.1400bc0f4
jmp 0x14004afc6
mov edx, dword [rbp]
lea rcx, [rsp + 0x70]
inc edx
imul edx, edx, 0x64
call fcn.1400560cc
mov r15, qword [rsp + 0x70]
or rdx, 0xffffffffffffffff
cmp dword [rbp], r12d
jbe 0x14004aef5
mov rdx, qword [rbp + 0x18]
cmp rdx, r12
jl 0x14004aef5
mov rcx, r14
imul rcx, rdx
mov edx, esi
add rdx, rcx
mov rcx, qword [rsp + 0xa0]
call fcn.1400bc0f4
mov r11d, dword [rbp]
cmp r13d, r12d
je 0x14004af0e
neg r11d
lea rcx, [rdi + 0x64]
movsxd rdx, r11d
call fcn.1400bc0f4
mov rax, qword [rsp + 0x168]
lea r11, [rbp + 8]
cmp word [rax], r12w
je 0x14004afb7
xor r10d, r10d
cmp dword [rbp], r10d
jbe 0x14004afc2
lea rdi, [rbp + 0x18]
xor ebx, ebx
mov edx, dword [rdi - 8]
mov r8, qword [rdi]
sub edx, dword [r11]
cmp r8, rbx
jl 0x14004af5e
mov rcx, r14
imul rcx, r8
mov r8d, esi
add r8, rcx
mov rax, qword [rsp + 0x68]
mov r9, r14
mov rcx, r15
imul r9, rdx
cmp r9, rax
lea rdx, str._I64u__I64u_r_n
cmova r9, rax
sub rax, r9
mov qword [rsp + 0x68], rax
call qword [sym.imp.USER32.dll_wsprintfW]
mov r11d, r12d
movsxd rcx, eax
mov eax, 1
add rdi, 0x10
add r11, rax
add r12d, eax
lea r15, [r15 + rcx*2]
shl r11, 4
add r11, rbp
cmp r12d, dword [rbp]
jb 0x14004af43
mov rbx, qword [rsp + 0x48]
xor r12d, r12d
cmp dword [rbp], r12d
jbe 0x14004afc2
mov word [r15 - 4], r12w
mov r13d, dword [rbp]
mov rdi, qword [rsp + 0x140]
mov r8, qword [rsp + 0xa0]
mov rdx, qword [rsp + 0x150]
mov rcx, rdi
call fcn.140055710
mov r8, qword [rsp + 0x98]
mov rdx, qword [rsp + 0x158]
mov rcx, rdi
call fcn.140055710
mov rsi, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x160]
mov r8, rsi
mov rcx, rdi
call fcn.140055710
mov rdx, qword [rsp + 0x170]
lea r8, [rsi + 0x64]
mov rcx, rdi
call fcn.140055710
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x168]
mov rcx, rdi
call fcn.140055710
mov rsi, qword [rsp + 0xb8]
mov rdx, qword [rsp + 0x88]
mov rcx, rsi
call fcn.1400bc0f4
mov rdx, qword [rsp + 0x178]
mov r8, rsi
mov rcx, rdi
call fcn.140055710
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x180]
mov rcx, rdi
call fcn.140055710
mov esi, 1
cmp r13d, esi
jne 0x14004b092
xor eax, eax
mov edi, eax
jmp 0x14004b0a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
xor eax, eax
cmp edi, eax
cmove edi, esi
cmp rbx, rax
je 0x14004b0b5
cmp rbx, 0xffffffffffffffff
je 0x14004b0b5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x50]
call fcn.14004ea6c
lea rcx, [rsp + 0x70]
call fcn.14004ea6c
mov eax, edi
add rsp, 0xf8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret