Function at 0x5d0a10
Capabilities:
Get disk size

Disassembly:
push rbp
sub rsp, 0x60
mov rbp, rsp
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], rbp
mov qword [rbp + 0x70], rcx
mov qword [rbp + 0x78], rdx
mov dword [rbp + 0x80], r8d
lea rcx, [rbp + 0x70]
call fcn.0040eaf0
nop
mov dword [0x006931f4], 0x33c
mov eax, dword [0x006931f4]
sub eax, 0x1b0
mov dword [0x006932b8], eax
mov eax, dword [0x006932dc]
add eax, 1
cmp dword [0x006932dc], eax
jne 0x5d0a82
mov ecx, dword [0x00695bb8]
mov edx, dword [0x00693298]
mov r8d, dword [0x006935f0]
call sub.kernel32.dll_GetDiskFreeSpaceExW
mov eax, dword [0x00693298]
add eax, 1
cmp dword [0x00693298], eax
jne 0x5d0abc
mov ecx, dword [0x006933e8]
mov edx, dword [0x00693504]
mov r8d, dword [0x00693974]
mov r9d, dword [0x00694118]
mov eax, dword [0x006942f0]
mov dword [rsp + 0x20], eax
call sub.kernel32.dll_LockFile
mov eax, dword [0x006958c8]
mov dword [0x00695848], eax
mov eax, dword [0x006958c8]
mov dword [0x00695848], eax
mov eax, dword [0x0069429c]
cmp eax, dword [0x00694300]
je 0x5d0aee
mov eax, dword [0x0069429c]
mov dword [0x00694300], eax
mov eax, dword [0x00695bc0]
mov dword [0x00695924], eax
mov byte [rbp + 0x57], 0
nop
mov eax, dword [0x006933b0]
add eax, 1
cmp dword [0x006933b0], eax
jne 0x5d0b28
mov ecx, dword [0x00693988]
mov edx, dword [0x00695900]
mov r8d, dword [0x00695bfc]
call sub.kernel32.dll_GetDiskFreeSpaceExW
mov eax, dword [0x006932a0]
add eax, 1
cmp dword [0x006932a0], eax
jne 0x5d0b58
mov ecx, dword [0x006942cc]
mov edx, dword [0x00695bf8]
mov r8d, dword [0x006932a8]
mov r9d, dword [0x006933fc]
call sub.advapi32.dll_CryptDuplicateKey
mov eax, dword [0x00695be8]
add eax, dword [0x00693204]
mov ecx, dword [0x006932fc]
add ecx, dword [0x006933ec]
cmp eax, ecx
jle 0x5d0b7e
mov dword [0x00695be8], 0xe9
lea rcx, [rbp + 0x30]
mov rdx, qword [rbp + 0x70]
lea r8, [0x005d0e3c]
call fcn.00410100
mov rcx, qword [rbp + 0x30]
call fcn.005a2dd0
mov qword [rbp + 0x58], rax
nop
mov rcx, qword [rbp + 0x70]
call fcn.00410050
mov ecx, 0xf001f
xor edx, edx
mov r8, rax
call qword [0x006a8cc0]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jbe 0x5d0c1b
mov rcx, qword [rbp + 0x48]
mov edx, 0xf001f
xor r8, r8
xor r9, r9
mov qword [rsp + 0x20], 0
call qword [0x006a8cc8]
mov qword [rbp + 0x40], rax
cmp qword [rbp + 0x40], 0
je 0x5d0c11
mov rcx, qword [rbp + 0x78]
mov rdx, qword [rbp + 0x40]
movsxd r8, dword [rbp + 0x80]
call fcn.004093d0
mov rcx, qword [rbp + 0x40]
call qword [0x006a8cd0]
mov byte [rbp + 0x57], 1
mov rcx, qword [rbp + 0x48]
call qword [0x006a8bc0]
nop
mov rcx, qword [rbp + 0x58]
call fcn.005a2ff0
jmp 0x5d0d0d
mov eax, dword [0x006931d8]
mov dword [0x00695bbc], eax
mov eax, dword [0x006940c0]
add eax, dword [0x00694298]
mov ecx, dword [0x00695818]
add ecx, dword [0x00695878]
cmp eax, ecx
jle 0x5d0d41
mov eax, dword [0x00695878]
mov dword [0x006940c0], eax
mov dword [0x006931e0], 0x30e
mov eax, dword [0x006931e0]
sub eax, 0x19a
mov dword [0x006932d4], eax
call fcn.005c9d40
mov eax, dword [0x006940cc]
add eax, dword [0x006942a4]
mov ecx, dword [0x00695824]
add ecx, dword [0x006958d4]
cmp eax, ecx
jle 0x5d0d8a
mov eax, dword [0x006958d4]
mov dword [0x006940cc], eax
mov eax, dword [0x00693274]
mov dword [0x00695bf8], eax
mov eax, dword [0x006932f0]
add eax, 1
cmp dword [0x006932f0], eax
jne 0x5d0dbf
mov ecx, dword [0x006934d0]
mov edx, dword [0x00693974]
mov r8d, dword [0x00694288]
call sub.kernel32.dll_GetDiskFreeSpaceExW
nop
lea rcx, [rbp + 0x30]
call fcn.0040e9c0
lea rcx, [rbp + 0x70]
call fcn.0040e9c0
movzx rax, byte [rbp + 0x57]
lea rsp, [rbp + 0x60]
pop rbp
ret