Function at 0x1400395c0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1880]
mov eax, 0x1980
call fcn.1402ccb60
sub rsp, rax
mov rax, qword [0x140726340]
xor rax, rsp
mov qword [rbp + 0x1870], rax
mov r13, rdx
mov qword [rbp - 0x68], rdx
mov qword [rbp - 0x60], rdx
xor r12d, r12d
mov dword [rsp + 0x44], r12d
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
mov qword [rdx], r12
mov qword [rdx + 8], r12
mov qword [rdx + 0x10], r12
mov edi, 1
mov qword [rbp - 0x70], rdi
mov dword [rsp + 0x44], edi
lea rdx, [rbp + 0x70]
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov ecx, 0x7ff
cmp eax, ecx
jae 0x14003966b
lea rdx, [rbp + 0x70]
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov ecx, eax
test eax, eax
je 0x140039b9f
cmp eax, 0x801
jae 0x140039b9f
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x20], r12
mov r8d, ecx
lea rdx, [rbp + 0x70]
lea rcx, [rbp - 0x38]
call fcn.140006600
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r12
xor r8d, r8d
lea rdx, [0x14053f56e]
lea rcx, [rsp + 0x48]
call fcn.140006600
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x80], r12
mov r8, rdi
lea rdx, [0x1405663c4]
lea rcx, [rsp + 0x68]
call fcn.140006600
nop
cmp qword [rbp - 0x28], 0
je 0x140039874
lea rdx, [rsp + 0x48]
mov r15, qword [rsp + 0x60]
cmp r15, 0xf
mov r14, qword [rsp + 0x48]
cmova rdx, r14
lea rcx, [rsp + 0x68]
mov r8, qword [rsp + 0x68]
mov r9, qword [rbp - 0x80]
cmp r9, 0xf
cmova rcx, r8
mov rdi, qword [rsp + 0x78]
cmp rdi, qword [rsp + 0x58]
jne 0x140039735
mov r8, rdi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14003986f
mov r8, qword [rsp + 0x68]
mov r9, qword [rbp - 0x80]
mov rbx, r12
mov byte [rsp + 0x40], bl
mov eax, 0xa
mov qword [rbp - 0x78], rax
mov r13, qword [rbp - 0x28]
nop dword [rax]
lea rsi, [rsp + 0x68]
cmp r9, 0xf
cmova rsi, r8
lea r12, [rbp - 0x38]
cmp qword [rbp - 0x20], 0xf
cmova r12, qword [rbp - 0x38]
cmp rdi, r13
ja 0x1400397e3
mov rax, r13
sub rax, rdi
cmp rbx, rax
ja 0x1400397df
test rdi, rdi
je 0x140039822
lea r14, [rax + r12]
lea rcx, [r12 + rbx]
movsx r15d, byte [rsi]
lea r8, [r14 + 1]
sub r8, rcx
mov edx, r15d
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x1400397df
nop word [rax + rax]
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140039815
inc rbx
lea r8, [r14 + 1]
sub r8, rbx
mov edx, r15d
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x1400397b0
mov rax, qword [rbp - 0x78]
cmp byte [rsp + 0x40], 0
je 0x140039868
test rax, rax
je 0x140039868
mov byte [rsp + 0x40], 0
xor ebx, ebx
dec rax
mov qword [rbp - 0x78], rax
mov r14, qword [rsp + 0x48]
mov r15, qword [rsp + 0x60]
mov r8, qword [rsp + 0x68]
mov r9, qword [rbp - 0x80]
jmp 0x140039750
sub rbx, r12
mov r14, qword [rsp + 0x48]
mov r15, qword [rsp + 0x60]
cmp rbx, 0xffffffffffffffff
je 0x1400397df
mov byte [rsp + 0x40], 1
lea r9, [rsp + 0x48]
cmp r15, 0xf
cmova r9, r14
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp - 0x38]
call fcn.140021fb0
add rbx, qword [rsp + 0x58]
cmp rbx, 0xffffffffffffffff
je 0x140039868
mov rax, qword [rbp - 0x78]
mov r13, qword [rbp - 0x28]
jmp 0x1400397fd
mov r13, qword [rbp - 0x68]
xor r12d, r12d
mov edi, 1
lea rcx, [rsp + 0x68]
call fcn.1400062c0
nop
lea rcx, [rsp + 0x48]
call fcn.1400062c0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], rax
mov byte [rsp + 0x40], al
mov byte [rsp + 0x41], al
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x41]
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 0x30]
call fcn.14003aed0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
movdqa xmm1, xmmword [0x14056f8f0]
movdqa xmmword [rbp], xmm1
mov byte [rbp - 0x10], 0
movups xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], r12
mov qword [rbp + 0x28], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x10], 0
mov rbx, qword [rbp + 0x30]
mov rsi, qword [rbp + 0x38]
cmp rbx, rsi
je 0x140039b79
lea rax, [rbp - 0x10]
cmp rax, rbx
je 0x140039916
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140039909
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rbp - 0x10]
call fcn.1400226f0
mov qword [rbp + 0x20], r12
lea rax, [rbp + 0x10]
cmp qword [rbp + 0x28], 0xf
cmova rax, qword [rbp + 0x10]
mov byte [rax], 0
mov rdx, rbx
lea rcx, [rbp + 0x48]
call fcn.14003ac90
nop
lea rcx, [rbp + 0x48]
cmp qword [rbp + 0x60], 7
cmova rcx, qword [rbp + 0x48]
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
xor r9d, r9d
mov r8d, 0x800
lea rdx, [rbp + 0x870]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x140039b17
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r12
lea rax, [rbp + 0x870]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400399a0
lea rdx, [rbp + 0x870]
lea rcx, [rsp + 0x48]
call fcn.140023500
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x80], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x68], 0
or edi, 2
mov qword [rbp - 0x70], rdi
mov dword [rsp + 0x44], edi
mov r9, qword [rsp + 0x58]
test r9, r9
je 0x140039a98
lea r8, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova r8, qword [rsp + 0x48]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
test eax, eax
je 0x140039a94
mov rdx, rdi
xor r8d, r8d
lea rcx, [rbp - 0x58]
call fcn.140021080
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140020fc0
lea rcx, [rbp - 0x58]
call fcn.1400062c0
lea rax, [rsp + 0x68]
cmp qword [rbp - 0x80], 0xf
cmova rax, qword [rsp + 0x68]
lea r8, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova r8, qword [rsp + 0x48]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x58]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rdi, qword [rbp - 0x70]
mov rdx, qword [rbp + 0x28]
cmp rdx, 0xf
jbe 0x140039ad3
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039ace
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140039b72
call fcn.1402cbf74
movups xmm0, xmmword [rsp + 0x68]
movaps xmmword [rbp + 0x10], xmm0
movups xmm1, xmmword [rsp + 0x78]
movaps xmmword [rbp + 0x20], xmm1
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x80], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x68], 0
and edi, 0xfffffffd
mov qword [rbp - 0x70], rdi
mov dword [rsp + 0x44], edi
lea rcx, [rsp + 0x68]
call fcn.1400062c0
nop
lea rcx, [rsp + 0x48]
call fcn.140021ea0
mov rdi, qword [r13 + 8]
cmp rdi, qword [r13 + 0x10]
je 0x140039b47
mov qword [rbp - 0x68], rdi
lea rdx, [rbp - 0x10]
mov rcx, rdi
call fcn.140021190
nop
lea rcx, [rdi + 0x20]
lea rdx, [rbp + 0x10]
call fcn.140021190
nop
add qword [r13 + 8], 0x40
jmp 0x140039b57
lea r8, [rbp - 0x10]
mov rdx, rdi
mov rcx, r13
call fcn.14004e190
nop
lea rcx, [rbp + 0x48]
call fcn.140021ea0
add rbx, 0x20
cmp rbx, rsi
je 0x140039b79
mov rdi, qword [rbp - 0x70]
jmp 0x1400398f3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rcx, [rbp + 0x10]
call fcn.1400062c0
lea rcx, [rbp - 0x10]
call fcn.1400062c0
nop
lea rcx, [rbp + 0x30]
call fcn.140021e10
nop
lea rcx, [rbp - 0x38]
call fcn.1400062c0
mov rax, r13
mov rcx, qword [rbp + 0x1870]
xor rcx, rsp
call fcn.1402cbf10
lea r11, [rsp + 0x1980]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret