Function at 0x4d6320
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x74f772
mov eax, dword fs:[0]
push eax
sub esp, 0x85c
mov eax, dword [0x81f390]
xor eax, esp
mov dword [esp + 0x858], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x81f390]
xor eax, esp
push eax
lea eax, [esp + 0x870]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov ecx, dword [ebp + 0xac]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x87c], 0
call fcn.004ba240
mov edi, dword [esp + 0x18]
mov eax, 0x94f2095
mov ecx, edi
sub ecx, dword [esp + 0x14]
imul ecx
push 0x2c
sar edx, 5
lea eax, [esp + 0x28]
mov ebx, edx
push 0
shr ebx, 0x1f
push eax
add ebx, edx
call fcn.006f87a0
add esp, 0xc
mov dword [esp + 0x24], 0x2c
mov dword [esp + 0x28], 6
test ebx, ebx
jle 0x4d65d3
mov edi, dword [sym.imp.USER32.dll_RegisterDeviceNotificationW]
xor esi, esi
lea esp, [esp]
mov eax, dword [esp + 0x14]
add eax, 0x2e8
add eax, esi
cmp dword [eax + 0x14], 8
jb 0x4d63f3
mov eax, dword [eax]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
je 0x4d6476
cmp byte [ebp + 0x68], 0
mov dword [esp + 0x30], eax
je 0x4d6428
push 1
lea eax, [esp + 0x28]
push eax
push dword [0x852ce0]
call edi
jmp 0x4d6476
mov eax, dword [0x833350]
test eax, eax
jne 0x4d6466
push 0x228
call fcn.006f7558
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0x878], 1
test eax, eax
je 0x4d6457
mov ecx, eax
call fcn.004b1a60
jmp 0x4d6459
xor eax, eax
mov byte [esp + 0x878], 0
mov dword [0x833350], eax
push 0
lea ecx, [esp + 0x28]
push ecx
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_RegisterDeviceNotificationA]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x50]
add eax, 0x2c8
add eax, esi
push eax
call fcn.004f57f0
mov ecx, dword [esp + 0x64]
mov byte [esp + 0x878], 2
cmp ecx, 2
jbe 0x4d64b8
cmp dword [esp + 0x68], 8
lea eax, [esp + 0x54]
mov dword [esp + 0x64], 2
cmovae eax, dword [esp + 0x54]
xor ecx, ecx
mov word [eax + 4], cx
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + eax + 0x2b8]
mov eax, ecx
and al, 0xf0
cmp al, 0x40
je 0x4d64d9
cmp ecx, 0x23
je 0x4d64d9
cmp ecx, 0x24
jne 0x4d659f
cmp dword [esp + 0x68], 8
lea eax, [esp + 0x54]
cmovae eax, dword [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x4d659f
cmp dword [esp + 0x68], 8
lea ecx, [esp + 0x6c]
push 0x800
lea eax, [esp + 0x58]
cmovae eax, dword [esp + 0x58]
push ecx
push eax
call fcn.004d20f0
add esp, 0xc
lea eax, [esp + 0x6c]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
je 0x4d659f
cmp byte [ebp + 0x68], 0
mov dword [esp + 0x30], eax
je 0x4d6551
push 1
lea eax, [esp + 0x28]
push eax
push dword [0x852ce0]
call edi
jmp 0x4d659f
mov eax, dword [0x833350]
test eax, eax
jne 0x4d658f
push 0x228
call fcn.006f7558
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0x878], 3
test eax, eax
je 0x4d6580
mov ecx, eax
call fcn.004b1a60
jmp 0x4d6582
xor eax, eax
mov byte [esp + 0x878], 2
mov dword [0x833350], eax
push 0
lea ecx, [esp + 0x28]
push ecx
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_RegisterDeviceNotificationA]
cmp dword [esp + 0x68], 8
mov byte [esp + 0x878], 0
mov dword [esp + 0x50], vtable.wbs::StringBase_wchar_t_.0
jb 0x4d65c2
push dword [esp + 0x54]
call fcn.006f75a9
add esp, 4
add esi, 0x370
dec ebx
jne 0x4d63e0
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x878], 0xffffffff
test esi, esi
je 0x4d660d
cmp esi, edi
je 0x4d6601
lea ebx, [ebx]
mov ecx, esi
call fcn.005705c0
add esi, 0x370
cmp esi, edi
jne 0x4d65f0
push dword [esp + 0x14]
call fcn.006f75a9
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x870]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x858]
xor ecx, esp
call fcn.006f7ca4
add esp, 0x868
ret