Function at 0x4e974
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x44], ebx
mov byte [ebp - 5], cl
mov esi, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x4ecca
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x34], eax
push 0
call sub.kernel32.dll_SetLastError
xor eax, eax
mov dword [ebx], eax
lea eax, [ebp - 0x48]
mov edx, esi
call fcn.00013e94
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0xc]
call fcn.0004e380
mov eax, dword [ebp - 0xc]
call fcn.00013ecc
test eax, eax
jle 0x4ea3e
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 0xc]
call fcn.0002b220
mov edx, dword [ebp - 0x4c]
lea eax, [ebp - 0xc]
call fcn.00013cd4
mov eax, dword [ebp - 0xc]
call fcn.00014090
mov edi, eax
push edi
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
je 0x4ea0e
mov eax, dword [0x1b3ea0]
or dword [ebp - 0x34], eax
push 0x104
push 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x104
push 0
push edi
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x4ea3e
test byte [ebp - 0x20], 8
jne 0x4ea3e
mov eax, dword [0x1b3e9c]
or dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x4ec8f
cmp dword [0x1b41c8], 0
je 0x4ec87
mov eax, 0x400
call fcn.00019248
mov dword [ebp - 0x3c], eax
mov eax, 0x400
call fcn.00019248
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x40]
mov edx, 0x800
call fcn.0002aea4
xor eax, eax
push ebp
push 0x4ec80
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x3c]
call fcn.00018ad4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
call fcn.00018ad4
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
push ebp
push 0x4ec4e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
call fcn.00014090
push eax
call dword [0x1b41d4]
test eax, eax
je 0x4ebee
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00018af0
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x3c]
call fcn.00018af0
push eax
mov eax, dword [ebp - 0x2c]
push eax
push 0
call dword [0x1b41e4]
test eax, eax
je 0x4ebdd
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0x1c]
call fcn.00018adc
push dword [ebp - 0x50]
push 0x4ece0
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 0x3c]
call fcn.00018adc
push dword [ebp - 0x54]
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.00014618
cmp byte [ebp - 5], 0
je 0x4eb60
lea eax, [ebp - 0x30]
push eax
push 0
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 4
push 6
mov eax, esi
call fcn.00014538
push eax
call dword [0x1b41d0]
jmp 0x4eb65
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
push eax
mov al, byte [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 0x44]
call fcn.00014538
push eax
mov eax, dword [ebp - 0x40]
push eax
call dword [0x1b41e0]
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x40]
push eax
push 1
call dword [0x1b41cc]
mov dword [ebx], eax
cmp dword [ebx], 0
jne 0x4ebcc
push 0
mov eax, dword [ebp - 0x28]
push eax
push 0
push 0
push 4
push 6
mov eax, esi
call fcn.00014538
push eax
call dword [0x1b41d8]
mov dword [ebx], eax
cmp dword [ebx], 0
je 0x4ebfd
mov eax, dword [0x1b3e88]
or dword [ebp - 0x34], eax
jmp 0x4ebfd
call sub.kernel32.dll_GetLastError_1
mov dword [ebx], eax
mov eax, dword [0x1b3e8c]
or dword [ebp - 0x34], eax
jmp 0x4ebfd
call sub.kernel32.dll_GetLastError_1
mov dword [ebx], eax
mov eax, dword [0x1b3e90]
or dword [ebp - 0x34], eax
jmp 0x4ebfd
call sub.kernel32.dll_GetLastError_1
mov dword [ebx], eax
mov eax, dword [0x1b3e94]
or dword [ebp - 0x34], eax
push 0
call sub.kernel32.dll_SetLastError
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ec55
cmp dword [ebp - 0x30], 0
je 0x4ec20
mov eax, dword [ebp - 0x30]
push eax
call sub.kernel32.dll_LocalFree_1
xor eax, eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x2c], 0
je 0x4ec34
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_LocalFree_1
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x28], 0
je 0x4ec48
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_LocalFree_1
xor eax, eax
mov dword [ebp - 0x28], eax
ret
mov eax, dword [0x1b3e98]
or dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ecd1
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.0001432c
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.00013c60
lea eax, [ebp - 0x44]
call fcn.00014314
lea eax, [ebp - 0xc]
call fcn.00013c3c
ret