Function at 0x10017330
Capabilities:
Get disk information
Get disk size
Get storage device properties
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x390
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
cmp ebx, edi
mov dword [esp + 0x120], edi
je 0x10017dce
mov ecx, edi
lea edx, [ebx + 0x10]
sub ecx, ebx
add ecx, 0xfffffff4
jmp 0x100173b3
mov edi, dword [esp + 0x130]
mov esi, dword [esp + 0x134]
mov ebx, dword [esp + 0x138]
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0xd4]
mov dword [eax], 1
mov dword [eax + 4], edi
mov dword [eax + 8], esi
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ecx
mov eax, dword [esp + 0x48]
mov edi, dword [ebp + 0x14]
lea edx, [eax + 0xc]
mov eax, dword [esp + 0x44]
lea ecx, [eax - 0xc]
mov eax, dword [esp + 0xd8]
cmp eax, edi
mov ebx, eax
je 0x10017d87
lea eax, [ebx + 0xc]
mov dword [esp + 0x48], edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x11c], eax
mov esi, dword [ebx]
mov dword [esp + 0x34], esi
neg esi
jo 0x10017d87
mov dword [esp + 0xd8], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebx + 4]
mov ebx, dword [ebx + 8]
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
mov eax, dword [eax + 0x10]
movsd qword [esp + 0x100], xmm1
movsd qword [esp + 0xf8], xmm0
mov dword [esp + 0xd4], eax
mov dword [esp + 0x108], eax
push edi
call sub.kernel32.dll_GetDriveTypeW
mov ecx, eax
mov dword [esp + 0x30], edi
and ecx, 0xfffffffe
cmp ecx, 2
jne 0x10017690
mov dword [esp + 0xd0], eax
push 0x20a
push 0
lea esi, [esp + 0x188]
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
xorps xmm0, xmm0
mov dword [esp + 0x4c], 0
movaps xmmword [esp + 0xa0], xmm0
movaps xmmword [esp + 0x90], xmm0
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x70], xmm0
push 0x20
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x54]
push eax
push 0
push 0
push 0x105
push esi
push edi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x10017653
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xcc], eax
push ebx
push edi
lea eax, [esp + 0x5c]
push eax
call sym.sysinfo::windows::disk::get_volume_path_names_for_volume_name::h94b6e1996bf8ba51
add esp, 0xc
mov esi, dword [esp + 0x5c]
test esi, esi
je 0x100176aa
mov eax, ebx
sub eax, 2
jb 0x10017df4
mov ecx, dword [esp + 0x30]
lea eax, [ecx + eax*2]
mov dword [esp + 0xf0], ecx
mov dword [esp + 0xf4], eax
mov dword [esp + 0xe0], 1
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe8], 1
mov word [esp + 0xec], 0
lea eax, [esp + 0xe0]
push eax
lea eax, [esp + 0x114]
push eax
call sym.__ZN98__LT_alloc..vec..Vec_LT_T_GT__u20_as_u20_alloc..vec..spec_from_iter..SpecFromIter_LT_T_C_I_GT__GT_9from_iter17ha33fe2fef
add esp, 8
mov edi, dword [esp + 0x114]
mov al, 1
mov dword [esp + 0xc], eax
call sym.__ZN100__LT_windows..Win32..System..SystemServices..RemotableHandle_0_u20_as_u20_core..default..Default_GT_7default17haec064b8
push eax
push 0
push 3
push 0
push 3
push 0
push edi
call sub.kernel32.dll_CreateFileW
lea ecx, [eax - 1]
cmp ecx, 0xfffffffe
jae 0x10017803
mov dword [esp + 0x2c], eax
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0xc8], eax
mov eax, dword [eax + 4]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x3c]
push ecx
push 0
push eax
call sub.kernel32.dll_GetDiskFreeSpaceExW
test eax, eax
je 0x10017843
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov eax, ecx
or eax, edx
je 0x10017869
mov eax, dword [esp + 0x60]
xorps xmm0, xmm0
mov dword [esp + 0x124], 7
mov dword [esp + 0x128], 0
mov dword [esp + 0xc4], edx
mov dword [esp + 0xc], ecx
mov byte [esp + 0x12c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x50], 0
movsd qword [esp + 0x38], xmm0
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0xbc], eax
push 0
lea eax, [esp + 0x54]
push eax
push 0xc
lea eax, [esp + 0x44]
push eax
push 0xc
lea eax, [esp + 0x138]
push eax
push 0x2d1400
push dword [esp + 0x48]
call sub.kernel32.dll_DeviceIoControl
test eax, eax
je 0x10017902
cmp dword [esp + 0x50], 0xc
mov eax, 2
jne 0x1001792d
xor eax, eax
cmp byte [esp + 0x40], 0
sete al
jmp 0x1001792d
call sym.windows_result::error::Error::from_win32::h82b0b4b9d87e3c47
test edx, edx
mov dword [esp + 0xe4], eax
mov dword [esp + 0xe8], edx
mov dword [esp + 0xe0], 1
je 0x10017690
lea eax, [esp + 0xe8]
push eax
call sym.__LT_windows_result..com..ComPtr_u20_as_u20_core..ops..drop..Drop_GT_::drop::h9cbffdb6c4b299b4
add esp, 4
nop word cs:[eax + eax]
nop
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 8
mov dword [esp + 0x18], 0
jmp 0x100176e0
mov edi, dword [esp + 0x58]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 8
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x54]
test eax, eax
je 0x100176e0
shl eax, 2
lea eax, [eax + eax*2]
push 4
push eax
push edi
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [esp + 0x34]
test eax, eax
je 0x100176f9
add eax, eax
push 2
push eax
push dword [esp + 0x38]
call sym.___rust_dealloc
add esp, 0xc
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x184], ecx
mov dword [esp + 0x180], eax
mov dword [esp + 0x188], edx
push edx
lea eax, [esp + 0x184]
push eax
lea eax, [esp + 0x138]
push eax
call sym.__LT_rayon..vec..IntoIter_LT_T_GT__u20_as_u20_rayon..iter..IndexedParallelIterator_GT_::with_producer::h46d9f161d9214b6c
add esp, 0xc
test byte [esp + 0xf8], 1
je 0x10017360
mov esi, dword [esp + 0x100]
mov eax, dword [esp + 0x138]
movsd xmm0, qword [esp + 0x130]
mov edi, dword [esp + 0xfc]
mov ebx, dword [esp + 0x104]
test esi, esi
mov dword [esp + 0x188], eax
movsd qword [esp + 0x180], xmm0
je 0x100177bc
mov eax, dword [esp + 0x180]
mov dword [esp + 0x180], 0
test eax, eax
je 0x100177ee
mov dword [esi + 0xc], eax
mov dword [eax + 0x10], esi
mov esi, dword [esp + 0x184]
mov dword [esp + 0x184], 0
add ebx, dword [esp + 0x188]
mov dword [esp + 0x188], 0
jmp 0x100177ee
mov esi, dword [esp + 0x184]
mov eax, dword [esp + 0x180]
mov dword [esp + 0x180], edi
mov dword [esp + 0x184], 0
mov ecx, dword [esp + 0x188]
mov dword [esp + 0x188], ebx
mov edi, eax
mov ebx, ecx
lea eax, [esp + 0x180]
push eax
call sym.__ZN98__LT_alloc..collections..linked_list..LinkedList_LT_T_C_A_GT__u20_as_u20_core..ops..drop..Drop_GT_4drop17he6bbcd79cf57b5
add esp, 4
jmp 0x10017375
call sym.windows_result::error::Error::from_win32::h82b0b4b9d87e3c47
test edx, edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
je 0x10017829
lea eax, [esp + 0x24]
push eax
call sym.__LT_windows_result..com..ComPtr_u20_as_u20_core..ops..drop..Drop_GT_::drop::h9cbffdb6c4b299b4
add esp, 4
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 8
mov dword [esp + 0x18], 0
jmp 0x100178b4
call sym.windows_result::error::Error::from_win32::h82b0b4b9d87e3c47
test edx, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], 1
je 0x10017869
lea eax, [esp + 0x24]
push eax
call sym.__LT_windows_result..com..ComPtr_u20_as_u20_core..ops..drop..Drop_GT_::drop::h9cbffdb6c4b299b4
add esp, 4
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 8
mov dword [esp + 0x18], 0
push dword [esp + 0x2c]
call sub.kernel32.dll_CloseHandle
test eax, eax
jne 0x100178b4
call sym.windows_result::error::Error::from_win32::h82b0b4b9d87e3c47
test edx, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], 1
je 0x100178b4
lea eax, [esp + 0x24]
push eax
call sym.__LT_windows_result..com..ComPtr_u20_as_u20_core..ops..drop..Drop_GT_::drop::h9cbffdb6c4b299b4
add esp, 4
mov eax, dword [esp + 0x110]
test eax, eax
je 0x100178cd
add eax, eax
push 2
push eax
push edi
call sym.___rust_dealloc
add esp, 0xc
mov edi, dword [esp + 0x58]
lea ebx, [edi + 4]
jmp 0x100178ea
add ebx, 0xc
dec esi
je 0x100176c6
mov eax, dword [ebx - 4]
test eax, eax
je 0x100178e0
add eax, eax
push 2
push eax
push dword [ebx]
call sym.___rust_dealloc
add esp, 0xc
jmp 0x100178e0
call sym.windows_result::error::Error::from_win32::h82b0b4b9d87e3c47
test edx, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], 1
je 0x10017928
lea eax, [esp + 0x24]
push eax
call sym.__LT_windows_result..com..ComPtr_u20_as_u20_core..ops..drop..Drop_GT_::drop::h9cbffdb6c4b299b4
add esp, 4
mov eax, 2
mov dword [esp + 0xb8], eax
xor eax, eax
mov ecx, 0x20a
nop dword [eax + eax]
cmp word [esp + eax*2 + 0x180], 0
je 0x10017956
inc eax
add ecx, 0xfffffffe
jne 0x10017940
mov eax, 0x105
push eax
lea eax, [esp + 0x184]
push eax
lea eax, [esp + 0x68]
push eax
call sym.__LT_std..ffi..os_str..OsString_u20_as_u20_std..os..windows..ffi..OsStringExt_GT_::from_wide::h63b25de594ca01f2
add esp, 0xc
cmp word [esp + 0x70], 0
je 0x10017b3b
cmp word [esp + 0x72], 0
je 0x10017b42
cmp word [esp + 0x74], 0
je 0x10017b4c
cmp word [esp + 0x76], 0
je 0x10017b56
cmp word [esp + 0x78], 0
je 0x10017b60
cmp word [esp + 0x7a], 0
je 0x10017b6a
cmp word [esp + 0x7c], 0
je 0x10017b74
cmp word [esp + 0x7e], 0
je 0x10017b7e
cmp word [esp + 0x80], 0
je 0x10017b88
cmp word [esp + 0x82], 0
je 0x10017b92
cmp word [esp + 0x84], 0
je 0x10017b9c
cmp word [esp + 0x86], 0
je 0x10017ba6
cmp word [esp + 0x88], 0
je 0x10017bb0
cmp word [esp + 0x8a], 0
je 0x10017bb7
cmp word [esp + 0x8c], 0
je 0x10017bbe
cmp word [esp + 0x8e], 0
je 0x10017bc5
cmp word [esp + 0x90], 0
je 0x10017bcc
cmp word [esp + 0x92], 0
je 0x10017bd3
cmp word [esp + 0x94], 0
je 0x10017bda
cmp word [esp + 0x96], 0
je 0x10017be1
cmp word [esp + 0x98], 0
je 0x10017be8
cmp word [esp + 0x9a], 0
je 0x10017bef
cmp word [esp + 0x9c], 0
je 0x10017bf6
cmp word [esp + 0x9e], 0
je 0x10017bfd
cmp word [esp + 0xa0], 0
je 0x10017c04
cmp word [esp + 0xa2], 0
je 0x10017c0b
cmp word [esp + 0xa4], 0
je 0x10017c12
cmp word [esp + 0xa6], 0
je 0x10017c19
cmp word [esp + 0xa8], 0
je 0x10017c20
cmp word [esp + 0xaa], 0
je 0x10017c27
cmp word [esp + 0xac], 0
je 0x10017c2e
cmp word [esp + 0xae], 1
mov eax, 0x20
sbb eax, 0
jmp 0x10017c33
xor eax, eax
jmp 0x10017c33
mov eax, 1
jmp 0x10017c33
mov eax, 2
jmp 0x10017c33
mov eax, 3
jmp 0x10017c33
mov eax, 4
jmp 0x10017c33
mov eax, 5
jmp 0x10017c33
mov eax, 6
jmp 0x10017c33
mov eax, 7
jmp 0x10017c33
mov eax, 8
jmp 0x10017c33
mov eax, 9
jmp 0x10017c33
mov eax, 0xa
jmp 0x10017c33
mov eax, 0xb
jmp 0x10017c33
mov eax, 0xc
jmp 0x10017c33
mov eax, 0xd
jmp 0x10017c33
mov eax, 0xe
jmp 0x10017c33
mov eax, 0xf
jmp 0x10017c33
mov eax, 0x10
jmp 0x10017c33
mov eax, 0x11
jmp 0x10017c33
mov eax, 0x12
jmp 0x10017c33
mov eax, 0x13
jmp 0x10017c33
mov eax, 0x14
jmp 0x10017c33
mov eax, 0x15
jmp 0x10017c33
mov eax, 0x16
jmp 0x10017c33
mov eax, 0x17
jmp 0x10017c33
mov eax, 0x18
jmp 0x10017c33
mov eax, 0x19
jmp 0x10017c33
mov eax, 0x1a
jmp 0x10017c33
mov eax, 0x1b
jmp 0x10017c33
mov eax, 0x1c
jmp 0x10017c33
mov eax, 0x1d
jmp 0x10017c33
mov eax, 0x1e
push eax
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x24]
push eax
call sym.__LT_std..ffi..os_str..OsString_u20_as_u20_std..os..windows..ffi..OsStringExt_GT_::from_wide::h63b25de594ca01f2
add esp, 0xc
movsd xmm0, qword [esp + 0x60]
lea ecx, [esp + 0x138]
lea eax, [esi + esi*2]
mov esi, dword [esp + 0xc8]
movsd xmm1, qword [esp + 0x68]
movsd xmm2, qword [esp + 0x24]
mov edx, dword [esp + 0xcc]
movsd qword [ecx], xmm0
movsd xmm0, qword [esp + 0x1c]
movsd qword [ecx + 8], xmm1
lea eax, [esi + eax*4]
movsd qword [ecx + 0x18], xmm2
shr edx, 0x13
and dl, 1
cmp dword [esp + 0xd0], 2
movsd qword [ecx + 0x10], xmm0
mov dword [esp + 0x170], esi
mov dword [esp + 0x174], esi
mov esi, dword [esp + 0x54]
mov dword [esp + 0x178], esi
mov dword [esp + 0x17c], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x130], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x134], 0xffffffff
mov dword [esp + 0x15c], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x158], eax
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x164], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x160], eax
sete byte [esp + 0x168]
mov byte [esp + 0x169], dl
lea eax, [esp + 0x130]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.1002dc70
add esp, 8
push dword [esp + 0x2c]
call sub.kernel32.dll_CloseHandle
test eax, eax
jne 0x10017d6f
mov dword [esp + 0xc], 0
call sym.windows_result::error::Error::from_win32::h82b0b4b9d87e3c47
test edx, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], 1
je 0x10017d6f
mov dword [esp + 0xc], 0
lea eax, [esp + 0x24]
push eax
call sym.__LT_windows_result..com..ComPtr_u20_as_u20_core..ops..drop..Drop_GT_::drop::h9cbffdb6c4b299b4
add esp, 4
mov eax, dword [esp + 0x110]
test eax, eax
je 0x100176e0
add eax, eax
push 2
jmp 0x100176d6
cmp eax, edi
mov edi, dword [esp + 0x48]
je 0x10017dce
mov eax, dword [esp + 0x44]
mov ecx, 0xaaaaaaab
mul ecx
mov esi, edx
shr esi, 3
jmp 0x10017db6
add edi, 0xc
dec esi
je 0x10017dce
mov eax, dword [edi - 4]
test eax, eax
je 0x10017db0
add eax, eax
push 2
push eax
push dword [edi]
call sym.___rust_dealloc
add esp, 0xc
jmp 0x10017db0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x10]
movsd xmm0, qword [edx]
movsd xmm1, qword [edx + 8]
mov dword [eax + 0x10], ecx
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x10158c84
push ebx
push eax
call sym.core::slice::index::slice_end_index_len_fail::h31017dc9c470f2c8
add esp, 0xc
ud2