Function at 0x5ececc
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5ed18c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.0040a414
lea eax, [ebp - 0x10]
push eax
push ebx
call sub.user32.dll_GetWindowThreadProcessId
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0x410
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 0x14], eax
xor edx, edx
push ebp
push 0x5ed14b
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, 0x20a
call fcn.00406fb4
mov dword [ebp - 0x18], eax
xor edx, edx
push ebp
push 0x5ed12b
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x104
mov ecx, dword [ebp - 0x18]
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.004174d8
test eax, eax
je 0x5ecf6f
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
call fcn.0040acec
jmp 0x5ed113
lea eax, [ebp - 0x30]
call fcn.005ece08
lea eax, [ebp - 0x30]
mov edx, 0x5ed1a0
call fcn.0040ad5c
mov eax, dword [ebp - 0x30]
call fcn.0040ad48
push eax
call sub.kernel32.dll_LoadLibraryW
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x5ed113
xor edx, edx
push ebp
push 0x5ed10c
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x5ed1b4
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00415c04
mov esi, eax
mov ebx, esi
test esi, esi
je 0x5ed0f3
push 0x104
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
call ebx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
call fcn.0040acec
call sub.kernel32.dll_GetLogicalDrives
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x1c], 0x41
mov eax, dword [ebp - 0x20]
and eax, dword [ebp - 0x24]
je 0x5ed0e3
mov eax, 0x20a
call fcn.00406fb4
mov dword [ebp - 0x28], eax
xor edx, edx
push ebp
push 0x5ed0dc
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x34]
movzx edx, word [ebp - 0x1c]
call fcn.0040af8c
lea eax, [ebp - 0x34]
mov edx, 0x5ed1f4
call fcn.0040b160
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 8]
call fcn.0040b058
push 0x104
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 8]
call fcn.0040ad48
push eax
call sub.kernel32.dll_QueryDosDeviceW
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x28]
call fcn.0040acec
lea eax, [ebp - 0x38]
mov ecx, 0x5ed1fc
mov edx, dword [ebp - 4]
call fcn.0040add0
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
mov ecx, 1
call fcn.0040b564
dec eax
jne 0x5ed0c4
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x5ed099
sub ebx, 4
mov eax, dword [ebx]
shr eax, 1
mov ebx, eax
lea eax, [ebp - 0x3c]
push eax
lea edx, [ebx + 1]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov ecx, 0x7fffffff
call fcn.0040aed8
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.0040add0
call fcn.00409bb8
jmp 0x5ed0f3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ed0e3
mov eax, dword [ebp - 0x28]
call fcn.00406fe8
pop eax
jmp eax
shl dword [ebp - 0x24], 1
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 0x5b
jne 0x5ecff7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ed113
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_FreeLibrary
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ed132
mov eax, dword [ebp - 0x18]
call fcn.00406fe8
pop eax
jmp eax