Function at 0x4d6d33
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, 0x3b0
mov eax, dword [ebp + 0xc]
lea edi, [esp + 0x178]
mov ebx, dword [ebp + 0x1c]
mov esi, edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x7c], 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.004d5f30
pop ecx
test al, al
je 0x4d6e6c
mov edx, dword [ebp + 0x18]
shr esi, 1
xor eax, eax
mov dword [esp + 0x80], esi
mov ecx, edx
sub ecx, dword [ebp + 0x14]
cmovb ecx, eax
cmp ecx, esi
jb 0x4d75e8
mov ecx, dword [ebp + 0x14]
lea eax, [esp + 0x7c]
add esi, ecx
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], edx
mov dword [esp + 0x98], eax
lea eax, [esp + 0x80]
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], edi
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], esi
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb8], ebx
call fcn.004427b1
test eax, eax
je 0x4d745b
lea ecx, [esp + 0x38]
lea edx, [esp + 0x90]
push 0
push eax
call fcn.004d69f0
pop eax
pop ecx
mov eax, dword [esp + 0x40]
lea esi, [esp + 0x180]
movsd xmm0, qword [esp + 0x38]
movsd xmm1, qword [esp + 0x44]
lea edi, [esp + 0x190]
mov ecx, esi
mov edx, edi
mov dword [esi + 8], eax
mov eax, dword [esp + 0x4c]
movsd qword [esi], xmm0
movsd qword [edi], xmm1
mov dword [edi + 8], eax
call fcn.004d5f63
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x20]
movsd xmm0, qword [esi]
mov dword [ecx + 8], eax
movsd qword [ecx], xmm0
mov ecx, edi
call fcn.004d6cd5
jmp 0x4d7453
mov edi, dword [ebx]
push 8
pop eax
mov esi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x14]
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], edi
cmp ebx, esi
jae 0x4d73af
mov eax, dword [edi]
lea edx, [ebx + 1]
bt eax, ebx
jae 0x4d6ee8
add ebx, 0x41
mov dword [esp + 0xc], edx
mov word [esp + 0x18], bx
mov dword [esp + 0x1a], 0x5c003a
and word [esp + 0x1e], 0
mov dword [esp + 0x34], ebx
push ecx
mov ebx, ecx
call sub.kernel32.dll_GetDriveTypeW
lea ecx, [eax - 4]
cmp ecx, 0xfffffffe
jae 0x4d6ef7
mov eax, dword [esp + 0xc]
mov ecx, ebx
mov dword [esp + 0x118], 3
mov ebx, eax
jmp 0x4d6e93
mov dword [esp + 0x118], 3
mov ebx, edx
jmp 0x4d6e93
mov dword [esp + 0x78], eax
push 0x20a
push 0
lea edi, [esp + 0x1a8]
push edi
call fcn.004ff8d0
add esp, 0xc
xorps xmm0, xmm0
movaps xmmword [esp + 0xc0], xmm0
movaps xmmword [esp + 0xb0], xmm0
movaps xmmword [esp + 0xa0], xmm0
movaps xmmword [esp + 0x90], xmm0
push 0x20
lea eax, [esp + 0x94]
push eax
push 0
push 0
push 0
push 0x105
push edi
push ebx
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x4d6f6c
xor eax, eax
cmp eax, 0x105
je 0x4d6f88
cmp word [esp + eax*2 + 0x1a0], 0
je 0x4d6f96
inc eax
jmp 0x4d6f57
mov ebx, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x118], 3
lea ecx, [esp + 0x18]
jmp 0x4d6e93
lea eax, [esp + 0x1a0]
mov esi, 0x105
jmp 0x4d6fb1
lea ecx, [esp + 0x1a0]
mov edx, 0x105
push 0x558dc0
push eax
call fcn.004326d6
pop ecx
pop ecx
mov esi, edx
lea ecx, [esp + 0x84]
mov edx, eax
push esi
call fcn.004d6285
pop eax
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x8c]
xor eax, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x30], edx
cmp eax, 0x20
je 0x4d6fec
cmp word [esp + eax*2 + 0x90], 0
je 0x4d6ff8
inc eax
jmp 0x4d6fd9
lea edi, [esp + 0x90]
push 0x20
pop esi
jmp 0x4d7013
lea ecx, [esp + 0x90]
push 0x20
pop edx
push 0x558dd0
push eax
call fcn.004326d6
pop ecx
pop ecx
mov edi, eax
mov esi, edx
mov ecx, esi
call fcn.00441781
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], edx
and dword [esp + 0x5c], 0
lea ecx, [esp + 0x54]
mov edx, esi
call fcn.004403b9
mov ecx, dword [esp + 0x58]
mov ebx, dword [esp + 0x5c]
add esi, esi
test esi, esi
je 0x4d704e
mov al, byte [edi]
add edi, 2
add esi, 0xfffffffe
mov byte [ecx + ebx], al
inc ebx
jmp 0x4d703c
mov eax, dword [esp + 0x34]
mov edi, ecx
mov dword [esp + 0x15c], 0x5c005c
mov dword [esp + 0x160], 0x5c002e
mov word [esp + 0x164], ax
mov dword [esp + 0x166], 0x3a
push 0
push 0
push 3
pop eax
push eax
push 0
push eax
push 0
lea eax, [esp + 0x174]
push eax
call dword [sym.imp.kernel32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x4d7336
and dword [esp + 0x3c], 0
and dword [esp + 0x38], 0
and dword [esp + 0xdc], 0
and dword [esp + 0xd8], 0
mov esi, eax
lea eax, [esp + 0xd8]
push eax
lea eax, [esp + 0x3c]
push eax
push 0
lea eax, [esp + 0x24]
push eax
call sub.kernel32.dll_GetDiskFreeSpaceExW
test eax, eax
je 0x4d7322
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov eax, ecx
or eax, edx
je 0x4d7322
mov eax, dword [esp + 0xd8]
mov dword [esp + 0x150], 7
and dword [esp + 0x154], 0
and dword [esp + 0x3c], 0
and dword [esp + 0x38], 0
and dword [esp + 0x40], 0
and dword [esp + 0x60], 0
mov byte [esp + 0x158], 0
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x74], eax
push 0
lea eax, [esp + 0x64]
push eax
push 0xc
pop eax
mov dword [esp + 0x78], esi
push eax
lea eax, [esp + 0x44]
push eax
push 0xc
pop eax
push eax
lea eax, [esp + 0x164]
push eax
push 0x2d1400
push esi
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x88], edx
call dword [sym.imp.kernel32.dll_DeviceIoControl]
xor edx, edx
cmp byte [esp + 0x40], 0
sete dl
push 0xc
pop ecx
cmp dword [esp + 0x60], ecx
push 2
pop ecx
cmovne edx, ecx
test eax, eax
cmove edx, ecx
lea ecx, [esp + 0xd8]
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x14]
push dword [esp + 0x30]
call fcn.004d4840
pop eax
mov ecx, ebx
call fcn.00441781
mov dword [esp + 0x14], eax
push ebx
push edi
push edx
mov edi, edx
call fcn.005010b0
add esp, 0xc
push 4
pop ecx
call fcn.004d7907
movsd xmm0, qword [esp + 0x18]
mov esi, edx
lea ecx, [esp + 0x138]
mov dword [esp + 0x30], eax
movsd qword [edx], xmm0
lea edx, [esp + 0x18]
push 3
call fcn.004d6285
pop eax
or dword [esp + 0x11c], 0xffffffff
push 2
pop eax
cmp dword [esp + 0x78], eax
movsd xmm0, qword [esp + 0xd8]
movsd xmm1, qword [esp + 0xe0]
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x138]
movsd qword [esp + 0x100], xmm1
movsd qword [esp + 0xf8], xmm0
mov dword [esp + 0x10c], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x118], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x120], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x124], edi
mov dword [esp + 0x128], ebx
mov dword [esp + 0x12c], eax
movzx eax, word [esp + 0xd8]
mov dword [esp + 0x130], esi
mov dword [esp + 0x134], 4
sete byte [esp + 0x144]
mov word [ecx + 0xd], ax
mov al, byte [esp + 0xda]
mov byte [ecx + 0xf], al
push dword [esp + 0x70]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
call fcn.004c2719
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x88]
call fcn.004c2719
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
cmp eax, edx
mov dword [esp + 0x1a0], edx
mov dword [esp + 0x1a4], ecx
mov dword [esp + 0x1a8], eax
jne 0x4d7378
lea ecx, [esp + 0x1a0]
call fcn.004d49ab
mov eax, dword [esp + 0x1a0]
mov ebx, dword [esp + 0x1a8]
mov ecx, dword [esp + 0x1a4]
mov dword [esp + 0x24], eax
jmp 0x4d737a
mov dword [esp + 0x118], 3
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x4d7349
push 0xffffffffffffffff
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esp + 0x118], 3
mov ecx, dword [esp + 0x54]
mov edx, edi
call fcn.004c2719
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x14]
call fcn.004c2719
mov ebx, dword [esp + 0xc]
mov esi, dword [ebp + 0x18]
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x18]
jmp 0x4d6e93
mov ebx, eax
mov esi, dword [ebp + 0x18]
mov edi, dword [esp + 0x10]
imul eax, ebx, 0x50
mov dword [esp + 0x2c], ecx
add eax, ecx
push 0x50
lea ecx, [esp + 0xfc]
push ecx
push eax
call fcn.005010b0
add esp, 0xc
inc ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0xc]
jmp 0x4d6e93
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
and dword [esp + 0xf8], 0
and dword [esp + 0xfc], 0
and dword [esp + 0x100], 0
test ecx, ecx
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], edx
mov dword [esp + 0x98], ecx
je 0x4d742c
mov eax, dword [esp + 0x98]
movsd xmm0, qword [esp + 0x90]
lea esi, [esp + 0xf8]
lea edx, [esp + 0x1a0]
mov ecx, esi
mov dword [edx + 8], eax
movsd qword [edx], xmm0
call fcn.004d4ae1
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x20]
movsd xmm0, qword [esi]
mov dword [ecx + 8], eax
movsd qword [ecx], xmm0
jmp 0x4d7453
mov eax, dword [esp + 0x100]
mov ecx, dword [esp + 0x20]
movsd xmm0, qword [esp + 0xf8]
mov dword [ecx + 8], eax
movsd qword [ecx], xmm0
lea ecx, [esp + 0x90]
call fcn.004d4b1a
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.00441823
mov esi, dword [eax]
lea edi, [esi + 0x40]
call fcn.004427b1
test eax, eax
je 0x4d7520
cmp dword [eax + 0xa4], esi
mov ebx, eax
je 0x4d75d5
mov edx, dword [ebx + 0xa0]
lea eax, [esp + 0x108]
push 0xb
pop ecx
mov dword [esp + 0xc], edi
lea esi, [esp + 0x90]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea esi, [esp + 0xf8]
add ecx, 0xa4
and dword [eax - 0x10], 0
mov dword [eax - 0xc], edx
mov edx, esi
mov dword [eax - 8], ecx
mov byte [eax - 4], 1
and dword [eax + 0x2c], 0
mov ecx, dword [esp + 0xc]
push 0x4d7621
call fcn.00442829
pop eax
mov ecx, ebx
mov edx, esi
call fcn.004d502d
push 0x16
pop ecx
lea eax, [esp + 0x1a0]
lea edx, [esp + 0xd8]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x54]
movsd xmm0, qword [eax + 0x4c]
movsd xmm2, qword [eax + 0x3c]
movsd xmm1, qword [eax + 0x44]
mov dword [edx + 0x18], ecx
lea ecx, [esp + 0x38]
movsd qword [edx + 0x10], xmm0
movsd qword [edx + 8], xmm1
movsd qword [edx], xmm2
call fcn.004d4cc9
jmp 0x4d6e15
xor ecx, ecx
mov ebx, edi
call fcn.004429de
test eax, eax
je 0x4d75fd
lea edx, [esp + 0xfc]
push 0xb
pop ecx
lea esi, [esp + 0x90]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov dword [edx - 4], eax
lea esi, [esp + 0xf8]
mov ecx, ebx
and dword [edx + 0x2c], 0
mov edx, esi
push 0x4d77ab
call fcn.00442829
pop eax
mov ecx, dword [esi]
call fcn.004417c1
push 0x13
pop ecx
lea eax, [esp + 0x1a0]
lea edx, [esp + 0xd8]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x160]
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.004d4cc9
movsd xmm1, qword [esi + 8]
movsd xmm0, qword [esi]
movsd qword [esp + 0x40], xmm1
movsd xmm1, qword [esi + 0x10]
movsd qword [esp + 0x38], xmm0
movsd qword [esp + 0x48], xmm1
jmp 0x4d6e15
lea ecx, [esp + 0x38]
lea edx, [esp + 0x90]
push 0
push ebx
jmp 0x4d6e0e
push 0x2b
pop edx
mov ecx, str.assertion_failed:_index___self.range.len__.cargo_registry_srcindex.crates.io_1cd66030c949c28d_rayon_1.8.0_src_range.rs
push 0x539670
call fcn.0050d590
pop eax
ud2
lea eax, [esp + 0x1a0]
push 0x46
pop edx
mov ecx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_90c541806f23a127002de5b4038be731ba1458calibrary_std_src_threadlocal.rs
push 0x57f7b4
push 0x558a64
push eax
call fcn.0050d740
add esp, 0xc
ud2