Function at 0x5ba580
Capabilities:
Get disk size

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov eax, dword [0x006934e8]
mov dword [0x00693428], eax
cmp byte [rbx + 0x23], 1
je 0x5ba780
cmp byte [rbx + 0xab], 0
je 0x5ba780
mov eax, dword [0x006931e4]
add eax, 1
cmp dword [0x006931e4], eax
jne 0x5ba5c8
mov ecx, dword [0x006935ec]
call sub.kernel32.dll_SetConsoleKeyShortcuts
mov dword [0x00694300], 0x305
mov eax, dword [0x00694300]
sub eax, 0x195
mov dword [0x006931e8], eax
mov eax, dword [0x006942e4]
add eax, dword [0x006931cc]
mov ecx, dword [0x00693210]
add ecx, dword [0x006932b8]
cmp eax, ecx
jle 0x5ba60a
mov dword [0x006942e4], 2
mov eax, dword [0x006942bc]
mov dword [0x00694110], eax
call fcn.005ad620
cmp eax, dword [0x006942c8]
jle 0x5ba62d
mov dword [0x006942c8], 2
call fcn.005ad620
mov rax, qword [rbx + 0x18]
movzx rax, byte [rax]
mov byte [rbx + 0x20], al
lea rax, [rbx + 0x18]
add qword [rax], 1
mov eax, dword [0x00694294]
mov dword [0x00694108], eax
mov eax, dword [0x00694294]
mov dword [0x00694108], eax
mov eax, dword [0x00693920]
cmp eax, dword [0x00693964]
je 0x5ba677
mov eax, dword [0x00693920]
mov dword [0x00693964], eax
mov eax, dword [0x00693430]
mov dword [0x006933ec], eax
call fcn.005aba50
mov eax, dword [0x006942bc]
add eax, dword [0x006931c8]
mov ecx, dword [0x0069320c]
add ecx, dword [0x006932d4]
cmp eax, ecx
jle 0x5ba6ae
mov dword [0x006942bc], 0x13c
call fcn.005ae6a0
cmp eax, dword [0x006931bc]
jle 0x5ba6c5
mov dword [0x006931bc], 0x15
mov eax, dword [0x00694130]
mov dword [0x006940ec], eax
mov eax, dword [0x00694130]
mov dword [0x006940ec], eax
mov eax, dword [0x00693960]
cmp eax, dword [0x006940b4]
je 0x5ba6f7
mov eax, dword [0x00693960]
mov dword [0x006940b4], eax
mov eax, dword [0x006934fc]
add eax, dword [0x00693564]
mov ecx, dword [0x00693920]
add ecx, dword [0x00693988]
cmp eax, ecx
jle 0x5ba71f
mov eax, dword [0x00693988]
mov dword [0x006934fc], eax
call fcn.005b0ad0
cmp eax, dword [0x006931e4]
jle 0x5ba736
mov dword [0x006931e4], 0x1f
mov eax, dword [0x006932d4]
add eax, 1
cmp dword [0x006932d4], eax
jne 0x5ba75f
mov ecx, dword [0x0069327c]
mov edx, dword [0x00693304]
mov r8d, dword [0x00693500]
call sub.kernel32.dll_GetDiskFreeSpaceExW
mov dword [0x006931c0], 0x302
mov eax, dword [0x006931c0]
sub eax, 0x1a3
mov dword [0x00693208], eax
jmp 0x5ba92b
mov rsi, rbx
call fcn.005ad620
cmp eax, dword [0x006942c8]
jle 0x5ba79a
mov dword [0x006942c8], 2
call fcn.005ad620
mov rax, qword [rsi + 0x18]
movzx rax, byte [rax]
mov byte [rsi + 0x20], al
lea rax, [rsi + 0x18]
add qword [rax], 1
mov eax, dword [0x00694294]
mov dword [0x00694108], eax
mov eax, dword [0x00694294]
mov dword [0x00694108], eax
mov eax, dword [0x00693920]
cmp eax, dword [0x00693964]
je 0x5ba7e4
mov eax, dword [0x00693920]
mov dword [0x00693964], eax
mov eax, dword [0x00693430]
mov dword [0x006933ec], eax
call fcn.005aba50
mov eax, dword [0x006942bc]
add eax, dword [0x006931c8]
mov ecx, dword [0x0069320c]
add ecx, dword [0x006932d4]
cmp eax, ecx
jle 0x5ba81b
mov dword [0x006942bc], 0x13c
call fcn.005ae6a0
cmp eax, dword [0x006931bc]
jle 0x5ba832
mov dword [0x006931bc], 0x15
mov eax, dword [0x00694130]
mov dword [0x006940ec], eax
mov eax, dword [0x00694130]
mov dword [0x006940ec], eax
mov eax, dword [0x00693960]
cmp eax, dword [0x006940b4]
je 0x5ba864
mov eax, dword [0x00693960]
mov dword [0x006940b4], eax
mov eax, dword [0x006934fc]
add eax, dword [0x00693564]
mov ecx, dword [0x00693920]
add ecx, dword [0x00693988]
cmp eax, ecx
jle 0x5ba88c
mov eax, dword [0x00693988]
mov dword [0x006934fc], eax
mov rcx, rbx
call fcn.005b00b0
mov dword [0x006931d8], 0x317
mov eax, dword [0x006931d8]
sub eax, 0x19e
mov dword [0x0069327c], eax
mov eax, dword [0x00693520]
add eax, dword [0x00693900]
mov ecx, dword [0x00693968]
add ecx, dword [0x006940dc]
cmp eax, ecx
jle 0x5ba8d1
call fcn.004096f0
mov eax, dword [0x006931d8]
mov dword [0x006942d0], eax
mov eax, dword [0x00693548]
mov dword [0x006934e0], eax
mov eax, dword [0x00693548]
mov dword [0x006934e0], eax
mov eax, dword [0x00693944]
cmp eax, dword [0x006940b8]
je 0x5ba90f
mov eax, dword [0x00693944]
mov dword [0x006940b8], eax
mov dword [0x006931d0], 0x2f0
mov eax, dword [0x006931d0]
sub eax, 0x19a
mov dword [0x00693298], eax
add rsp, 0x28
pop rbx
pop rsi
ret