Function at 0x4d3afc
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4d3dad
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
call fcn.004065b0
lea eax, [ebp - 0x14]
push eax
push ebx
call sub.user32.dll_GetWindowThreadProcessId
mov eax, dword [ebp - 0x14]
push eax
push 0
push 0x410
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x4d3d6e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x20a
call fcn.004041bc
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4d3d50
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
mov ecx, dword [ebp - 0x1c]
xor edx, edx
mov eax, dword [ebp - 0x18]
call fcn.004d0f48
test eax, eax
je 0x4d3b9f
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.00406714
jmp 0x4d3d3a
lea eax, [ebp - 0x34]
call fcn.004d3a3c
lea eax, [ebp - 0x34]
mov edx, 0x4d3dc0
call fcn.0040678c
mov eax, dword [ebp - 0x34]
call fcn.0040677c
push eax
call sub.kernel32.dll_LoadLibraryW
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x4d3d3a
xor eax, eax
push ebp
push 0x4d3d33
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4d3dd4
mov eax, dword [ebp - 0x30]
push eax
call fcn.0040b954
mov esi, eax
mov ebx, esi
test esi, esi
je 0x4d3d1c
push 0x104
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call ebx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.00406714
call sub.kernel32.dll_GetLogicalDrives
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x20], 0x41
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x28]
je 0x4d3d0c
mov eax, 0x20a
call fcn.004041bc
mov dword [ebp - 0x2c], eax
xor eax, eax
push ebp
push 0x4d3d05
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x38]
movzx edx, word [ebp - 0x20]
call fcn.00406bcc
lea eax, [ebp - 0x38]
mov edx, 0x4d3e14
call fcn.00406e74
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 8]
call fcn.00406cdc
push 0x104
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 8]
call fcn.0040677c
push eax
call sub.kernel32.dll_QueryDosDeviceW
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x2c]
call fcn.00406714
lea eax, [ebp - 0x3c]
mov ecx, 0x4d3e1c
mov edx, dword [ebp - 4]
call fcn.00406808
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx]
call fcn.0040695c
dec eax
jne 0x4d3cef
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4d3cc4
sub ebx, 4
mov eax, dword [ebx]
shr eax, 1
mov ebx, eax
lea eax, [ebp - 0x40]
push eax
lea edx, [ebx + 1]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov ecx, 0x7fffffff
call fcn.00406910
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.00406808
call fcn.00405a08
jmp 0x4d3d1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d3d0c
mov eax, dword [ebp - 0x2c]
call fcn.004041f0
ret
shl dword [ebp - 0x28], 1
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 0x5b
jne 0x4d3c27
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d3d3a
mov eax, dword [ebp - 0x30]
push eax
call sub.kernel32.dll_FreeLibrary
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d3d57
mov eax, dword [ebp - 0x1c]
call fcn.004041f0
ret