Function at 0x140052f14
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 + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x158
lea rcx, [rsp + 0x70]
mov r13, rdx
call fcn.14005fa18
or rax, 0xffffffffffffffff
lea rcx, [rsp + 0x50]
xor r12d, r12d
mov edx, 0x101064
mov r15d, eax
mov esi, r12d
mov qword [rsp + 0x98], rax
call fcn.14005f7a0
mov rax, qword [rsp + 0x50]
mov word [rax + 0x100654], r12w
lea r8d, [r12 + 0x28]
add rax, 0x100028
mov rbx, r12
xor edx, edx
mov qword [rsp + 0x60], rax
add rax, 0xe50
mov qword [rsp + 0x48], rbx
mov word [rax], r12w
mov qword [rsp + 0x78], rax
add rax, 0x64
mov word [rax], r12w
mov qword [rsp + 0x88], rax
add rax, 0x64
mov word [rax], r12w
mov word [rax + 0x64], r12w
mov qword [rsp + 0x90], rax
add rax, 0xc8
mov qword [rsp + 0xb0], rax
mov word [rax], r12w
mov rdi, qword [rsp + 0x50]
lea rax, [0x14010d568]
mov rcx, rdi
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x44], r12d
mov qword [rsp + 0xa8], rdi
lea rbp, [rdi + 8]
mov dword [rsp + 0x58], r12d
mov dword [rsp + 0x40], r12d
call fcn.1400f3900
lea eax, [r12 + 5]
lea ecx, [rax + 0x57]
mov dword [rdi], eax
mov r14, r13
lea edx, [rax + 0x29]
cmp cx, word [r13]
jne 0x140053047
cmp cx, word [r13 + 2]
jne 0x140053047
lea eax, [rcx - 0x1d]
cmp ax, word [r13 + 4]
je 0x14005303a
cmp dx, word [r13 + 4]
jne 0x140053047
cmp cx, word [r13 + 6]
jne 0x140053047
lea r14, [r13 + 8]
jmp 0x14005305e
cmp word [r13], r12w
je 0x14005305e
mov eax, 0x3a
cmp ax, word [r13 + 2]
jne 0x14005305e
lea r14, [r13 + 4]
mov r8d, ecx
xor edx, edx
mov rcx, r14
call qword [sym.imp.SHLWAPI.DLL_StrRChrW]
xor edx, edx
mov rcx, r14
lea r8d, [rdx + 0x2f]
mov rdi, rax
call qword [sym.imp.SHLWAPI.DLL_StrRChrW]
cmp rax, rdi
cmova rdi, rax
xor eax, eax
mov r12, rdi
cmp rdi, rax
je 0x1400530a4
cmp r13, r14
je 0x140053098
lea r12, [rdi + 2]
movzx r14d, word [r12]
mov word [r12], ax
jmp 0x1400530a8
mov r14w, ax
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x58]
xor r9d, r9d
mov rcx, r13
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceW]
xor r10d, r10d
cmp rdi, r10
je 0x1400530d0
mov word [r12], r14w
mov rax, qword [rsp + 0x60]
mov r14d, 0x5c
xor r12d, r12d
lea rdi, [rax + 8]
mov word [rax + 6], r14w
mov word [rax + 2], r14w
mov word [rax], r14w
lea ecx, [r14 - 0x2e]
lea r9, [rsp + 0xa0]
mov word [rax + 4], cx
mov qword [rsp + 0xa0], r12
mov r8, rdi
mov edx, 0x20d
mov rcx, r13
mov word [rdi], r12w
call fcn.140060964
mov edx, r14d
mov rcx, rdi
call qword [sym.imp.SHLWAPI.DLL_StrChrW]
lea r14, [rdi + 0x41a]
lea r8d, [r12 + 0x5c]
mov word [r14], r12w
xor edx, edx
mov rcx, rdi
mov word [rdi + 0x624], r12w
mov qword [rsp + 0xb8], rax
call qword [sym.imp.SHLWAPI.DLL_StrRChrW]
xor ecx, ecx
mov dword [rsp + 0x38], 0x104
mov r12, rax
mov word [rax + 2], cx
lea rax, [rsp + 0x1a8]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov rcx, rdi
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
mov rcx, qword [rsp + 0x60]
xor r10d, r10d
add rcx, 8
mov r8d, 0x209
mov edi, eax
lea rdx, [rcx + 0x624]
mov word [rcx + 0x624], 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 0x14005326b
cmp r12, qword [rsp + 0xb8]
jbe 0x1400536c9
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 + 0x1a8]
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
add rcx, 8
mov r8d, 0x209
mov edi, eax
lea rdx, [rcx + 0x624]
mov word [rcx + 0x624], 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 0x1400531cd
lea ecx, [rax + 1]
mov r15d, ecx
lea rcx, [0x140114440]
mov rdx, r14
call qword [sym.imp.KERNEL32.DLL_lstrcmpW]
cmp eax, ebx
jne 0x140053289
mov edi, 1
jmp 0x1400532f8
lea rcx, [0x140114430]
mov rdx, r14
call qword [sym.imp.KERNEL32.DLL_lstrcmpW]
cmp eax, ebx
jne 0x1400532a4
mov edi, 2
jmp 0x1400532f8
lea rcx, [0x140114420]
mov rdx, r14
call qword [sym.imp.KERNEL32.DLL_lstrcmpiW]
cmp eax, ebx
jne 0x1400532bf
mov edi, 3
jmp 0x1400532f8
lea rcx, [0x140114410]
mov rdx, r14
call qword [sym.imp.KERNEL32.DLL_lstrcmpW]
cmp eax, ebx
jne 0x1400532dd
mov edi, 4
mov r15d, ebx
jmp 0x1400532f8
lea rcx, [0x140114400]
mov rdx, r14
call qword [sym.imp.KERNEL32.DLL_lstrcmpiW]
or edi, 0xffffffff
cmp eax, ebx
lea eax, [rdi + 6]
cmove edi, eax
mov rax, qword [rsp + 0x60]
xor r10d, r10d
lea rcx, [rax + 8]
mov r14, rax
mov qword [rsp + 0x80], rax
lea rbx, [rcx + 0x624]
cmp word [rbx], r10w
je 0x140053351
mov rax, r12
sub rax, rcx
and rax, 0xfffffffffffffffe
cmp rax, 4
je 0x140053351
mov rcx, rbx
mov r14, rbx
mov qword [rsp + 0x80], rbx
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
xor r12d, r12d
movsxd rcx, eax
mov r15d, r12d
mov word [rbx + rcx*2 - 2], r12w
jmp 0x140053363
sub r12, rcx
and r12, 0xfffffffffffffffe
cmp r12, 4
mov r12, rsi
cmove r15d, r12d
cmp edi, r12d
jge 0x14005337a
mov rax, qword [rsp + 0x1d8]
cmp word [rax], r12w
je 0x1400534bf
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], 0x80
lea rcx, [rsp + 0x48]
mov r9d, 7
mov r8d, 0x80000000
mov rdx, r14
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], r12
call fcn.1400037e8
cmp r15d, r12d
je 0x1400533b6
mov word [r14], r12w
mov ebx, 0x90
lea rcx, [rsp + 0xc0]
xor edx, edx
mov r8, rbx
call fcn.1400f3900
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
mov rbx, qword [rsp + 0x48]
lea rax, [rsp + 0xc0]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
mov edx, 0x70048
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 + 0x98], rax
call fcn.1400f3900
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 0x140053466
cmp rbx, 0xffffffffffffffff
je 0x140053466
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rsp + 0x48], r14
cmp edi, 3
jne 0x14005347c
mov esi, dword [r12 + 0x58]
imul esi, dword [rsp + 0x40]
jmp 0x1400534bc
cmp edi, 2
je 0x140053486
cmp edi, 1
jne 0x1400534bc
movzx edx, word [r12 + 0xe]
mov r8b, byte [r12 + 0x10]
movzx eax, word [r12 + 0x11]
cmp edi, 2
jne 0x1400534a3
mov ecx, dword [r12 + 0x24]
jmp 0x1400534a9
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 qword [rsp + 0x38], r12
mov dword [rsp + 0x30], 0x80
lea rcx, [rsp + 0x48]
mov r9d, 7
xor r8d, r8d
mov rdx, r13
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], r12
call fcn.1400037e8
mov rbx, qword [rsp + 0x48]
cmp rbx, r12
jne 0x140053501
mov r15d, r12d
jmp 0x1400536c9
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 + 0x88]
call fcn.1400d9364
mov r11d, dword [rsp + 0x40]
mov rdi, qword [rsp + 0x90]
imul r11d, dword [rsp + 0x58]
mov edx, r11d
mov rcx, rdi
mov r13d, r11d
call fcn.1400d9370
mov rcx, qword [rsp + 0x50]
xor edx, edx
mov r8d, 0x100028
call fcn.1400f3900
mov r8, qword [rsp + 0xa8]
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 0x1400535c5
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov r15d, eax
cmp eax, 0x26
jne 0x1400536c9
mov rcx, qword [rsp + 0x78]
mov rdx, 0xffffffffffffffda
call fcn.1400d9364
jmp 0x1400536c9
mov edx, dword [rbp]
lea rcx, [rsp + 0x70]
inc edx
imul edx, edx, 0x64
call fcn.14005fb18
mov r14, qword [rsp + 0x70]
or rdx, 0xffffffffffffffff
cmp dword [rbp], r12d
jbe 0x1400535fb
mov rdx, qword [rbp + 0x18]
cmp rdx, r12
jl 0x1400535fb
mov rcx, r13
imul rcx, rdx
mov edx, esi
add rdx, rcx
mov rcx, qword [rsp + 0x78]
call fcn.1400d9364
mov r11d, dword [rbp]
cmp r15d, r12d
je 0x140053611
neg r11d
lea rcx, [rdi + 0x64]
movsxd rdx, r11d
call fcn.1400d9364
mov rax, qword [rsp + 0x1c8]
lea r11, [rbp + 8]
cmp word [rax], r12w
je 0x1400536ba
xor r10d, r10d
cmp dword [rbp], r10d
jbe 0x1400536c5
lea rdi, [rbp + 0x18]
xor ebx, ebx
mov edx, dword [rdi - 8]
mov r8, qword [rdi]
sub edx, dword [r11]
cmp r8, rbx
jl 0x140053661
mov rcx, r13
imul rcx, r8
mov r8d, esi
add r8, rcx
mov rax, qword [rsp + 0x68]
mov r9, r13
mov rcx, r14
imul r9, rdx
cmp r9, rax
lea rdx, [0x1401143e0]
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 r14, [r14 + rcx*2]
shl r11, 4
add r11, rbp
cmp r12d, dword [rbp]
jb 0x140053646
mov rbx, qword [rsp + 0x48]
xor r12d, r12d
cmp dword [rbp], r12d
jbe 0x1400536c5
mov word [r14 - 4], r12w
mov r15d, dword [rbp]
mov rdi, qword [rsp + 0x1a0]
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x1b0]
mov rcx, rdi
call fcn.14005ee18
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x1b8]
mov rcx, rdi
call fcn.14005ee18
mov rsi, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x1c0]
mov r8, rsi
mov rcx, rdi
call fcn.14005ee18
mov rdx, qword [rsp + 0x1d0]
lea r8, [rsi + 0x64]
mov rcx, rdi
call fcn.14005ee18
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x1c8]
mov rcx, rdi
call fcn.14005ee18
mov rsi, qword [rsp + 0xb0]
mov rdx, qword [rsp + 0x98]
mov rcx, rsi
call fcn.1400d9364
mov rdx, qword [rsp + 0x1d8]
mov r8, rsi
mov rcx, rdi
call fcn.14005ee18
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x1e0]
mov rcx, rdi
call fcn.14005ee18
mov esi, 1
cmp r15d, esi
jne 0x140053795
xor eax, eax
mov edi, eax
jmp 0x1400537a4
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
xor eax, eax
cmp edi, eax
cmove edi, esi
cmp rbx, rax
je 0x1400537b8
cmp rbx, 0xffffffffffffffff
je 0x1400537b8
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
lea rcx, [rsp + 0x50]
call fcn.140057768
lea rcx, [rsp + 0x70]
call fcn.140057768
mov eax, edi
add rsp, 0x158
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret