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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x108
mov qword [rsp + 0xf0], 0xfffffffffffffffe
mov r13, rdx
lea rcx, [rsp + 0x70]
call fcn.140063500
nop
or r14, 0xffffffffffffffff
xor esi, esi
mov r15d, esi
mov qword [rsp + 0x98], r14
mov edx, 0x101064
lea rcx, [rsp + 0x68]
call fcn.1400632b0
nop
mov rax, qword [rsp + 0x68]
add rax, 0x100028
mov qword [rsp + 0x58], rax
lea rbp, [rax + 8]
lea rax, [rbp + 0x41a]
mov qword [rsp + 0x50], rax
lea rdi, [rax + 0x20a]
mov word [rdi], si
lea rax, [rdi + 0x824]
mov qword [rsp + 0x90], rax
mov word [rax], si
add rax, 0x64
mov qword [rsp + 0xa0], rax
mov word [rax], si
add rax, 0x64
mov qword [rsp + 0xa8], rax
mov word [rax], si
mov word [rax + 0x64], si
add rax, 0xc8
mov qword [rsp + 0xd8], rax
mov word [rax], si
lea rax, [0x14014f7a8]
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
mov qword [rsp + 0xe8], rax
lea r12, [rcx + 8]
mov dword [rsp + 0x48], esi
mov dword [rsp + 0x60], esi
mov dword [rsp + 0x4c], esi
mov rbx, rsi
mov qword [rsp + 0xd0], rbx
xor eax, eax
mov qword [rcx], rax
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rax
mov qword [rcx + 0x20], rax
mov dword [rcx], 5
xor edx, edx
lea r8d, [r14 + 0x5d]
mov rcx, r13
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
mov r13, rax
xor edx, edx
lea r8d, [r14 + 0x30]
mov rcx, qword [rsp + 0x158]
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
cmp rax, r13
cmova r13, rax
mov word [rsp + 0x40], si
test r13, r13
je 0x140058079
movzx eax, word [r13]
mov word [rsp + 0x40], ax
mov word [r13], si
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea r8, [rsp + 0x4c]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x158]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test r13, r13
je 0x1400580a8
mov ax, word [rsp + 0x40]
mov word [r13], ax
mov rax, qword [rsp + 0x58]
mov r13d, 0x5c
mov word [rax + 6], r13w
mov word [rax + 2], r13w
mov word [rax], r13w
mov ecx, 0x2e
mov word [rax + 4], cx
mov qword [rsp + 0xe0], rsi
mov word [rbp], si
lea r9, [rsp + 0xe0]
mov r8, rbp
mov edx, 0x20d
mov rcx, qword [rsp + 0x158]
call fcn.140063ce0
mov edx, r13d
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_StrChrW]
mov qword [rsp + 0x40], rax
mov r13d, r14d
mov word [rbp + 0x41a], si
mov word [rdi], si
xor edx, edx
lea r8d, [rdx + 0x5c]
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
mov rbp, rax
mov word [rax + 2], si
mov dword [rsp + 0x38], 0x104
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x58]
add rcx, 8
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov edi, eax
mov rdx, qword [rsp + 0x50]
add rdx, 0x20a
mov word [rdx], si
mov r8d, 0x209
mov rcx, qword [rsp + 0x58]
add rcx, 8
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov word [rbp], si
mov eax, 1
test edi, edi
jne 0x140058240
nop
cmp rbp, qword [rsp + 0x40]
jbe 0x1400586d4
xor edx, edx
lea r8d, [rdx + 0x5c]
mov rdi, qword [rsp + 0x58]
lea rcx, [rdi + 8]
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
mov rbp, rax
mov word [rax + 2], si
mov dword [rsp + 0x38], 0x104
lea rax, [rdi + 0x422]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rdi + 8]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov edi, eax
mov rcx, qword [rsp + 0x50]
mov word [rcx + 0x20a], si
mov r8d, 0x209
lea rdx, [rcx + 0x20a]
mov rcx, qword [rsp + 0x58]
add rcx, 8
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov word [rbp], si
test edi, edi
je 0x1400581a0
mov eax, 1
mov dword [rsp + 0x40], eax
mov rdi, qword [rsp + 0x50]
mov rdx, rdi
lea rcx, [0x14014c348]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x140058267
lea r13d, [rax + 1]
mov edx, dword [rsp + 0x40]
jmp 0x1400582c3
mov rdx, rdi
lea rcx, str.FAT32
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x140058285
lea r13d, [rax + 2]
mov edx, dword [rsp + 0x40]
jmp 0x1400582c3
mov rdx, rdi
lea rcx, str.exFAT
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400582a3
lea r13d, [rax + 3]
mov edx, dword [rsp + 0x40]
jmp 0x1400582c3
mov rdx, rdi
lea rcx, [0x14014c318]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1400582bf
lea r13d, [rax + 4]
mov edx, esi
jmp 0x1400582c3
mov edx, dword [rsp + 0x40]
mov r8, qword [rsp + 0x58]
mov qword [rsp + 0x78], r8
lea rbx, [rdi + 0x20a]
cmp word [rbx], 0
je 0x14005830f
mov rax, rbp
lea rcx, [r8 + 8]
sub rax, rcx
and rax, 0xfffffffffffffffe
cmp rax, 4
je 0x14005830f
mov rbp, rbx
mov qword [rsp + 0x78], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
mov word [rbx + rcx*2 - 2], si
mov ebx, esi
mov dword [rsp + 0x40], ebx
jmp 0x14005832a
lea rax, [r8 + 8]
sub rbp, rax
and rbp, 0xfffffffffffffffe
cmp rbp, 4
cmove edx, esi
mov dword [rsp + 0x40], edx
mov ebx, edx
mov rbp, r8
cmp r13d, 2
je 0x14005834e
cmp r13d, 1
je 0x14005834e
cmp r13d, 3
je 0x14005834e
mov rax, qword [rsp + 0x188]
cmp word [rax], 0
je 0x1400584a7
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 7]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
cmove rdi, rsi
test ebx, ebx
je 0x14005838b
mov word [rbp], si
mov dword [rsp + 0xb0], esi
xor eax, eax
mov dword [rsp + 0xb4], eax
mov dword [rsp + 0xb8], eax
mov dword [rsp + 0xbc], eax
mov dword [rsp + 0xc0], eax
mov dword [rsp + 0xc4], eax
mov dword [rsp + 0xc8], eax
mov dword [rsp + 0xcc], eax
mov dword [rsp + 0x48], esi
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x20
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x74004
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x98], rax
mov rbx, qword [rsp + 0x68]
xor edx, edx
mov r8d, 0x200
mov rcx, rbx
call fcn.14010c6c0
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x48]
mov r8d, 0x200
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test rdi, rdi
je 0x140058456
cmp rdi, 0xffffffffffffffff
je 0x140058456
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp r13d, 3
jne 0x140058468
mov r15d, dword [rbx + 0x58]
imul r15d, dword [rsp + 0x4c]
jmp 0x1400584a7
cmp r13d, 2
je 0x140058474
cmp r13d, 1
jne 0x1400584a7
movzx edx, word [rbx + 0xe]
movzx r8d, byte [rbx + 0x10]
movzx eax, word [rbx + 0x11]
cmp r13d, 2
jne 0x14005848c
mov ecx, dword [rbx + 0x24]
jmp 0x140058490
movzx ecx, word [rbx + 0x16]
movzx r15d, r8b
imul r15d, ecx
add r15d, edx
imul r15d, dword [rsp + 0x4c]
shl eax, 5
add r15d, eax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 7]
mov rcx, qword [rsp + 0x158]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
cmove rbx, rsi
mov qword [rsp + 0xd0], rbx
test rbx, rbx
jne 0x1400584f3
mov r14d, esi
jmp 0x1400586d4
mov qword [rsp + 0x80], rsi
lea rdx, [rsp + 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0xa0]
call fcn.140062c70
mov r11d, dword [rsp + 0x4c]
imul r11d, dword [rsp + 0x60]
mov ebp, r11d
mov qword [rsp + 0x50], rbp
mov edx, r11d
mov r13, qword [rsp + 0xa8]
mov rcx, r13
call fcn.140062c80
xor edx, edx
mov r8d, 0x100028
mov rcx, qword [rsp + 0x68]
call fcn.14010c6c0
mov dword [r12], 0x10000
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x100020
mov qword [rsp + 0x20], r12
mov r9d, 8
lea r8, [rsp + 0xe8]
mov edx, 0x90073
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400585c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
cmp eax, 0x26
jne 0x1400586d4
mov rdx, 0xffffffffffffffda
mov rcx, qword [rsp + 0x90]
call fcn.140062c70
jmp 0x1400586d4
mov edx, dword [r12]
inc edx
imul edx, edx, 0x64
lea rcx, [rsp + 0x70]
call fcn.1400635c0
mov rdi, qword [rsp + 0x70]
cmp dword [r12], 0
jbe 0x1400585fe
mov r14, qword [r12 + 0x18]
test r14, r14
js 0x1400585fe
mov rcx, rbp
imul rcx, r14
mov r14d, r15d
add r14, rcx
mov rdx, r14
mov rcx, qword [rsp + 0x90]
call fcn.140062c70
mov r11d, dword [r12]
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x14005861d
neg r11d
movsxd rdx, r11d
lea rcx, [r13 + 0x64]
call fcn.140062c70
lea r11, [r12 + 8]
mov rax, qword [rsp + 0x178]
cmp word [rax], 0
je 0x1400586c5
mov ebp, esi
cmp dword [r12], esi
jbe 0x1400586d0
mov r14d, r15d
lea r13, [r12 + 0x10]
mov rsi, qword [rsp + 0x50]
nop dword [rax]
mov ecx, dword [r13]
sub ecx, dword [r11]
mov r8, qword [r13 + 8]
imul r8, rsi
add r8, r14
mov r9, rsi
imul r9, rcx
mov rax, qword [rsp + 0x80]
cmp r9, rax
cmova r9, rax
sub rax, r9
mov qword [rsp + 0x80], rax
lea rdx, str._I64u__I64u_r_n
mov rcx, rdi
call qword [sym.imp.USER32.dll_wsprintfW]
movsxd rcx, eax
lea rdi, [rdi + rcx*2]
mov r11d, ebp
inc r11
shl r11, 4
add r11, r12
inc ebp
add r13, 0x10
cmp ebp, dword [r12]
jb 0x140058660
xor esi, esi
cmp dword [r12], 0
jbe 0x1400586d0
mov word [rdi - 4], si
mov r14d, dword [r12]
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x160]
mov rdi, qword [rsp + 0x150]
mov rcx, rdi
call fcn.140061290
mov r8, qword [rsp + 0xa0]
mov rdx, qword [rsp + 0x168]
mov rcx, rdi
call fcn.140061290
mov rbp, qword [rsp + 0xa8]
mov r8, rbp
mov rdx, qword [rsp + 0x170]
mov rcx, rdi
call fcn.140061290
lea r8, [rbp + 0x64]
mov rdx, qword [rsp + 0x180]
mov rcx, rdi
call fcn.140061290
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x178]
mov rcx, rdi
call fcn.140061290
mov rdx, qword [rsp + 0x98]
mov rbp, qword [rsp + 0xd8]
mov rcx, rbp
call fcn.140062c70
mov r8, rbp
mov rdx, qword [rsp + 0x188]
mov rcx, rdi
call fcn.140061290
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x190]
mov rcx, rdi
call fcn.140061290
cmp r14d, 1
je 0x1400587a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmove eax, ecx
mov esi, eax
test rbx, rbx
je 0x1400587bd
cmp rbx, 0xffffffffffffffff
je 0x1400587bd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x68]
call fcn.14005b520
nop
lea rcx, [rsp + 0x70]
call fcn.14005b520
mov eax, esi
add rsp, 0x108
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret