Function at 0x140005920
Capabilities:
Get disk information
Get disk size

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
vmovaps xmmword [rsp + 0x80], xmm6
mov dword [rsp + 0x5c], r8d
mov qword [rcx], rdx
mov qword [rsp + 0x50], rcx
mov qword [rcx + 8], 0x822
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rsi, [0x1400c67c0]
nop dword [rax + rax]
mov ecx, dword [rsi + rdi*4 + 0x10]
cmp ecx, eax
je 0x1400059b3
mov ecx, dword [rsi + rdi*4 + 0x14]
cmp ecx, eax
je 0x1400059a4
mov ecx, dword [rsi + rdi*4 + 0x18]
cmp ecx, eax
je 0x1400059a9
mov ecx, dword [rsi + rdi*4 + 0x1c]
cmp ecx, eax
je 0x1400059af
add rdi, 4
cmp rdi, 0x80
jne 0x140005970
mov eax, 0xffffffff
jmp 0x1400059b5
inc rdi
jmp 0x1400059b3
add rdi, 2
jmp 0x1400059b3
add rdi, 3
mov eax, edi
shl rax, 4
mov rcx, qword [rax + rsi + 0x218]
mov r14, qword [rax + rsi + 0x210]
add r14, rcx
add rcx, 0x800
mov qword [rax + rsi + 0x218], rcx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
nop word cs:[rax + rax]
mov ecx, dword [rsi + rdi*4 + 0x10]
cmp ecx, eax
je 0x140005a33
mov ecx, dword [rsi + rdi*4 + 0x14]
cmp ecx, eax
je 0x140005a24
mov ecx, dword [rsi + rdi*4 + 0x18]
cmp ecx, eax
je 0x140005a29
mov ecx, dword [rsi + rdi*4 + 0x1c]
cmp ecx, eax
je 0x140005a2f
add rdi, 4
cmp rdi, 0x80
jne 0x1400059f0
mov eax, 0xffffffff
jmp 0x140005a35
inc rdi
jmp 0x140005a33
add rdi, 2
jmp 0x140005a33
add rdi, 3
mov eax, edi
shl rax, 4
mov rcx, qword [rax + rsi + 0x218]
mov r15, qword [rax + rsi + 0x210]
add r15, rcx
add rcx, 0x2000
mov qword [rax + rsi + 0x218], rcx
mov rax, qword [rsp + 0x50]
mov esi, dword [rax + 0xc]
mov rdi, qword [rax]
movsxd rax, dword [rax + 8]
mov qword [rsp + 0x60], rax
mov ebp, 0x41
vxorps xmm6, xmm6, xmm6
lea r12, [rsp + 0x48]
jmp 0x140005afd
xor r13d, r13d
add r12, rdi
mov dword [rsp + 0x58], esi
mov rsi, rdi
lea rdi, [r12 + 0x22]
mov rcx, rdi
mov rdx, r14
mov r8, r13
call fcn.140091e40
mov qword [r12], rdi
mov qword [r12 + 8], r13
lea rcx, [rsp + 0x70]
lea rdx, str.___c:_
mov r8d, ebp
call fcn.1400028f0
mov rcx, qword [r12]
add rcx, qword [r12 + 8]
mov rdx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
mov r8, rdi
call fcn.140091e40
add qword [r12 + 8], rdi
mov rdi, rsi
mov esi, dword [rsp + 0x58]
lea r12, [rsp + 0x48]
nop dword [rax + rax]
shr ebx, 1
inc ebp
cmp ebp, 0x61
je 0x140005c82
test bl, 1
je 0x140005af0
cmp esi, dword [rsp + 0x5c]
je 0x140005c82
mov word [rsp + 0x48], bp
mov dword [rsp + 0x4a], 0x5c003a
mov word [rsp + 0x4e], 0
vmovups xmmword [rsp + 0x20], xmm6
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov rcx, r12
mov rdx, r15
mov r8d, 0x800
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x140005af0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jb 0x140005af0
mov r13d, eax
mov rcx, r12
lea rdx, [rsp + 0x68]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x140005ae3
movsxd r12, esi
imul r12, qword [rsp + 0x60]
inc esi
mov rax, qword [rsp + 0x50]
mov dword [rax + 0xc], esi
mov byte [rdi + r12 + 0x10], bpl
mov eax, r13d
lea rcx, [0x1400a89e4]
movzx eax, byte [rax + rcx]
mov byte [rdi + r12 + 0x11], al
mov rax, qword [rsp + 0x68]
mov qword [rdi + r12 + 0x1a], rax
mov qword [rdi + r12 + 0x12], 0
cmp word [r15], 0
je 0x140005a7f
mov ecx, 1
xor eax, eax
nop dword [rax]
mov edx, ecx
inc ecx
add eax, 0xfffffffe
cmp word [r15 + rdx*2], 0
jne 0x140005bd0
test eax, eax
je 0x140005a7f
neg eax
add rax, r15
mov rcx, r15
xor r13d, r13d
jmp 0x140005c19
mov byte [r14 + r13], dl
mov edx, 1
add r13, rdx
add rcx, 2
cmp rcx, rax
jae 0x140005a82
movzx edx, word [rcx]
cmp dx, 0x7f
jbe 0x140005c00
movzx r8d, dx
cmp r8d, 0x7ff
ja 0x140005c50
mov r8d, edx
shr r8d, 6
or r8b, 0xc0
mov byte [r14 + r13], r8b
and dl, 0x3f
or dl, 0x80
mov byte [r14 + r13 + 1], dl
mov edx, 2
jmp 0x140005c09
mov r9d, r8d
shr r9d, 0xc
or r9b, 0xe0
mov byte [r14 + r13], r9b
shr r8d, 6
and r8b, 0x3f
or r8b, 0x80
mov byte [r14 + r13 + 1], r8b
and dl, 0x3f
or dl, 0x40
mov byte [r14 + r13 + 2], dl
mov edx, 3
jmp 0x140005c09
mov rax, qword [rsp + 0x50]
vmovaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret