Function at 0x499e15
Capabilities:
Get disk information
Get disk size
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x380
mov eax, dword [ebp + 0xc]
lea edi, [esp + 0x168]
mov ebx, dword [ebp + 0x1c]
mov esi, edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x94], edx
mov ecx, edi
mov dword [edi], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 4], eax
mov al, byte [ebp + 8]
movzx eax, al
push eax
call fcn.00499240
pop ecx
test al, al
je 0x499f53
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
shr esi, 1
xor eax, eax
mov dword [esp + 0xa4], esi
sub ecx, edx
cmovb ecx, eax
cmp ecx, esi
jb 0x49a6c0
mov ecx, dword [ebp + 0x18]
lea eax, [esp + 0x94]
add esi, edx
mov dword [esp + 0xb0], eax
lea eax, [esp + 0xa4]
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], edi
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], esi
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], edi
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xd4], edx
mov dword [esp + 0xd8], esi
call fcn.0044d2f0
test eax, eax
je 0x49a4f7
lea ecx, [esp + 0x40]
lea edx, [esp + 0xb0]
push 0
push eax
call fcn.0049a72a
pop eax
pop ecx
mov ecx, dword [esp + 0x44]
movsd xmm0, qword [esp + 0x4c]
mov esi, dword [esp + 0x54]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x48]
test ecx, ecx
movsd qword [esp + 8], xmm0
mov dword [esp + 0x10], esi
je 0x49a5c2
mov esi, dword [esp + 8]
and dword [esp + 8], 0
test esi, esi
je 0x49a5df
mov dword [ecx + 0xc], esi
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0xc]
and dword [esp + 0xc], 0
add eax, dword [esp + 0x10]
and dword [esp + 0x10], 0
jmp 0x49a5df
mov eax, dword [ebx]
mov dword [esp + 0x24], 0
mov dword [esp + 0x3c], eax
push 8
pop eax
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
lea ebx, [esp + 0x18]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], 0
cmp esi, edi
jae 0x49a46b
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
bt eax, esi
jae 0x49a465
lea eax, [esi + 0x41]
mov word [esp + 0x18], ax
mov dword [esp + 0x1a], 0x5c003a
and word [esp + 0x1e], 0
mov dword [esp + 4], eax
push ebx
call sub.KERNEL32.dll_GetDriveTypeW
lea ecx, [eax - 4]
cmp ecx, 0xfffffffe
jb 0x49a03d
mov dword [esp + 0x90], eax
push 0x20a
push 0
lea ebx, [esp + 0x178]
push ebx
call fcn.004bae60
add esp, 0xc
xorps xmm0, xmm0
movaps xmmword [esp + 0xe0], xmm0
movaps xmmword [esp + 0xd0], xmm0
movaps xmmword [esp + 0xc0], xmm0
movaps xmmword [esp + 0xb0], xmm0
push 0x20
lea eax, [esp + 0xb4]
push eax
push 0
push 0
push 0
push 0x105
push ebx
lea ebx, [esp + 0x34]
push ebx
call sub.KERNEL32.dll_GetVolumeInformationW
test eax, eax
je 0x49a03d
xor eax, eax
mov dword [esp + 0x38], esi
cmp eax, 0x105
je 0x49a04d
cmp word [esp + eax*2 + 0x170], 0
je 0x49a05b
inc eax
jmp 0x49a028
mov dword [esp + 0xf0], 3
jmp 0x49a465
lea eax, [esp + 0x170]
mov esi, 0x105
jmp 0x49a076
lea ecx, [esp + 0x170]
mov edx, 0x105
push 0x4eca44
push eax
call fcn.00444c71
pop ecx
pop ecx
mov esi, edx
lea ecx, [esp + 0x98]
mov edx, eax
push esi
call fcn.00499336
pop eax
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0xa0]
xor eax, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x30], edx
cmp eax, 0x20
je 0x49a0b1
cmp word [esp + eax*2 + 0xb0], 0
je 0x49a0bd
inc eax
jmp 0x49a09e
lea edi, [esp + 0xb0]
push 0x20
pop ebx
jmp 0x49a0d8
lea ecx, [esp + 0xb0]
push 0x20
pop edx
push 0x4eca54
push eax
call fcn.00444c71
pop ecx
pop ecx
mov edi, eax
mov ebx, edx
mov ecx, ebx
xor edx, edx
call fcn.0044c587
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edx
and dword [esp + 0x68], 0
lea ecx, [esp + 0x60]
mov edx, ebx
call fcn.0044aecd
mov ecx, dword [esp + 0x60]
mov esi, dword [esp + 0x68]
test ebx, ebx
je 0x49a117
mov edx, dword [esp + 4]
mov al, byte [edi]
add edi, 2
mov byte [ecx + esi], al
inc esi
dec ebx
jne 0x49a109
jmp 0x49a11b
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x64]
mov dword [esp + 0x14c], 0x5c005c
mov dword [esp + 0x150], 0x5c002e
mov word [esp + 0x154], dx
mov dword [esp + 4], ecx
mov dword [esp + 0x156], 0x3a
mov dword [esp + 0x58], eax
push 0
push 0
push 3
pop eax
push eax
push 0
push eax
push 0
lea eax, [esp + 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x49a42a
and dword [esp + 0x44], 0
and dword [esp + 0x40], 0
and dword [esp + 0x64], 0
and dword [esp + 0x60], 0
mov dword [esp + 0x34], eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x44]
push eax
push 0
lea ebx, [esp + 0x24]
push ebx
call sub.KERNEL32.dll_GetDiskFreeSpaceExW
mov edi, dword [ebp + 0x18]
test eax, eax
je 0x49a413
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov eax, ecx
or eax, edx
je 0x49a413
mov eax, dword [esp + 0x60]
mov dword [esp + 0xa4], 7
and dword [esp + 0xa8], 0
and dword [esp + 0x44], 0
and dword [esp + 0x40], 0
and dword [esp + 0x48], 0
and dword [esp + 0x5c], 0
mov byte [esp + 0xac], 0
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x88], eax
push 0
lea eax, [esp + 0x60]
push eax
push 0xc
pop edi
push edi
lea eax, [esp + 0x4c]
push eax
push edi
lea eax, [esp + 0xb8]
push eax
push 0x2d1400
push dword [esp + 0x50]
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa0], edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor ebx, ebx
cmp byte [esp + 0x48], 0
sete bl
cmp dword [esp + 0x5c], edi
push 2
pop ecx
mov edx, dword [esp + 0x14]
cmovne ebx, ecx
test eax, eax
cmove ebx, ecx
lea ecx, [esp + 0x60]
push dword [esp + 0x30]
call fcn.00498270
pop eax
mov ecx, esi
xor edx, edx
call fcn.0044c587
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], edx
push esi
push dword [esp + 8]
push eax
call fcn.004ba8e0
add esp, 0xc
push 4
pop ecx
xor edx, edx
call fcn.00499d8b
movsd xmm0, qword [esp + 0x18]
mov dword [esp + 0x7c], edx
lea ecx, [esp + 0x130]
lea edx, [esp + 0x18]
mov edi, eax
movsd qword [eax], xmm0
push 3
call fcn.00499336
pop eax
movsd xmm0, qword [esp + 0x60]
movsd xmm1, qword [esp + 0x68]
lea ecx, [esp + 0x130]
movsd qword [ecx - 0x30], xmm1
movsd qword [ecx - 0x38], xmm0
or dword [esp + 0xf4], 0xffffffff
push 2
pop eax
cmp dword [esp + 0x90], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0xf0], ebx
mov dword [esp + 0x10c], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x118], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x120], esi
mov dword [esp + 0x124], edi
mov dword [esp + 0x128], eax
movzx eax, word [esp + 0x60]
mov dword [esp + 0x12c], 4
sete byte [esp + 0x13c]
mov word [ecx + 0xd], ax
mov al, byte [esp + 0x62]
mov byte [ecx + 0xf], al
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x58]
call fcn.004a8f7f
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x9c]
call fcn.004a8f7f
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
cmp ebx, edx
mov dword [esp + 0x170], ecx
mov dword [esp + 0x174], edx
mov dword [esp + 0x178], ebx
jne 0x49a3e5
lea ecx, [esp + 0x170]
call fcn.00498e58
mov eax, dword [esp + 0x174]
mov ebx, dword [esp + 0x178]
mov ecx, dword [esp + 0x170]
mov dword [esp + 0x24], eax
mov esi, dword [esp + 0x38]
mov edi, dword [ebp + 0x18]
imul eax, ebx, 0x50
mov dword [esp + 0x2c], ecx
add eax, ecx
push 0x50
lea ecx, [esp + 0xf4]
push ecx
push eax
call fcn.004ba8e0
add esp, 0xc
inc ebx
mov dword [esp + 0x28], ebx
lea ebx, [esp + 0x18]
jmp 0x49a465
mov dword [esp + 0xf0], 3
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x49a444
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp + 0x18]
mov dword [esp + 0xf0], 3
lea ebx, [esp + 0x18]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x58]
call fcn.004a8f7f
mov edx, dword [esp + 0x9c]
mov ecx, dword [esp + 0x14]
call fcn.004a8f7f
mov esi, dword [esp + 0x38]
inc esi
jmp 0x499f7a
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
test ecx, ecx
mov dword [esp + 0x170], eax
mov dword [esp + 0x174], edx
mov dword [esp + 0x178], ecx
je 0x49a4d7
push 4
pop ecx
push 0x14
pop edx
call fcn.0045244b
test eax, eax
je 0x49a6d5
movsd xmm0, qword [esp + 0x170]
mov ecx, dword [esp + 0x178]
mov edx, dword [esp + 0x20]
mov dword [eax + 8], ecx
movsd qword [eax], xmm0
and dword [eax + 0x10], 0
and dword [eax + 0xc], 0
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], 1
jmp 0x49a5f4
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x170]
and dword [eax], 0
and dword [eax + 4], 0
and dword [eax + 8], 0
call fcn.00499073
jmp 0x49a5f4
call fcn.0044c639
mov esi, dword [eax]
lea edi, [esi + 0x40]
call fcn.0044d2f0
test eax, eax
je 0x49a5fc
cmp dword [eax + 0x8c], esi
mov ebx, eax
je 0x49a6ad
mov edx, dword [ebx + 0x88]
mov eax, ebx
add eax, 0x8c
push 0xb
pop ecx
mov dword [esp + 0x3c], edi
lea edi, [esp + 0xf0]
lea esi, [esp + 0xb0]
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x138]
mov dword [esi], eax
and dword [esi + 4], 0
mov dword [esi + 8], edx
mov byte [esi + 0xc], 1
and dword [esi - 0x1c], 0
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0xf0]
mov edx, 0x49aa07
push eax
call fcn.0044d608
pop eax
mov ecx, ebx
mov edx, esi
call fcn.0049922e
push 0x16
pop ecx
lea eax, [esp + 0x170]
lea esi, [esp + 0xf0]
lea edx, [esp + 0x60]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x44]
movsd xmm0, qword [eax + 0x3c]
movsd xmm2, qword [eax + 0x2c]
movsd xmm1, qword [eax + 0x34]
mov dword [edx + 0x18], ecx
lea ecx, [esp + 0x40]
movsd qword [edx + 0x10], xmm0
movsd qword [edx + 8], xmm1
movsd qword [edx], xmm2
call fcn.004990e3
jmp 0x499efd
mov esi, dword [esp + 8]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov dword [esp + 8], edx
and dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
mov eax, edi
mov edx, esi
mov esi, dword [esp + 0x20]
mov dword [esi], edx
mov dword [esi + 4], ecx
lea ecx, [esp + 8]
mov dword [esi + 8], eax
call fcn.0049a706
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor ecx, ecx
mov ebx, edi
call fcn.0044d7c4
test eax, eax
je 0x49a6e2
lea edx, [esp + 0xf4]
push 0xb
pop ecx
lea esi, [esp + 0xb0]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov dword [edx - 4], eax
lea esi, [esp + 0xf0]
mov ecx, ebx
and dword [edx + 0x2c], 0
mov edx, 0x49ab1d
push esi
call fcn.0044d608
pop eax
mov ecx, dword [esi]
call fcn.0044c5d7
push 0x13
pop ecx
lea eax, [esp + 0x170]
lea edx, [esp + 0x60]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x150]
mov ecx, dword [eax + 0x48]
movsd xmm0, qword [eax + 0x40]
movsd xmm2, qword [eax + 0x30]
movsd xmm1, qword [eax + 0x38]
mov dword [edx + 0x18], ecx
mov ecx, esi
movsd qword [edx + 0x10], xmm0
movsd qword [edx + 8], xmm1
movsd qword [edx], xmm2
call fcn.004990e3
movsd xmm1, qword [esi + 8]
movsd xmm0, qword [esi]
movsd qword [esp + 0x48], xmm1
movsd xmm1, qword [esi + 0x10]
movsd qword [esp + 0x40], xmm0
movsd qword [esp + 0x50], xmm1
jmp 0x499efd
lea ecx, [esp + 0x40]
lea edx, [esp + 0xb0]
push 0
push ebx
jmp 0x499ef6
push 0x2b
pop edx
mov ecx, str.assertion_failed:_index___self.range.len__C:UsersAdministrator.WIN7_2021OVWRCZ.cargo_registry_srcmirrors.ustc.edu.cn_12df342d903acd47_rayon_1.7.0_src_range.rs
push 0x4e2414
call fcn.004c88c0
pop eax
ud2
push 4
pop ecx
push 0x14
pop edx
call fcn.004c8580
ud2
lea eax, [esp + 0x170]
push 0x46
pop edx
mov ecx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_36fb58e433c782e27dd41034284e157cf86d587flibrary_std_src_threadlocal.rs
push 0x4ecd9c
push 0x4ec5e0
push eax
call fcn.004c8ad0
add esp, 0xc
ud2