Function at 0x4e600
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 - 0x10], ebx
mov dword [ebp - 0x14], 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 0x4e959
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 - 0x10]
call fcn.0004e380
mov eax, dword [ebp - 0x10]
call fcn.00013ecc
test eax, eax
jle 0x4e6ca
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 0x10]
call fcn.0002b220
mov edx, dword [ebp - 0x4c]
lea eax, [ebp - 0x10]
call fcn.00013cd4
mov eax, dword [ebp - 0x10]
call fcn.00014090
mov edi, eax
push edi
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
je 0x4e69a
mov eax, dword [0x1b3ea0]
or dword [ebp - 0x34], eax
push 0x104
push 0
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x38]
push eax
push 0
push 0x104
push 0
push edi
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x4e6ca
test byte [ebp - 0x3c], 8
jne 0x4e6ca
mov eax, dword [0x1b3e9c]
or dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x4e91e
cmp dword [0x1b41c8], 0
je 0x4e916
mov eax, 0x400
call fcn.00019248
mov dword [ebp - 0x18], eax
mov eax, 0x400
call fcn.00019248
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x30]
mov edx, 0x800
call fcn.0002aea4
xor eax, eax
push ebp
push 0x4e90f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
call fcn.00018ad4
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x20]
call fcn.00018ad4
mov dword [ebp - 0x44], eax
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
push ebp
push 0x4e8dd
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 0x4e87d
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x20]
call fcn.00018af0
push eax
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x18]
call fcn.00018af0
push eax
mov eax, dword [ebp - 0x2c]
push eax
push 0
call dword [0x1b41e4]
test eax, eax
je 0x4e86c
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0x20]
call fcn.00018adc
push dword [ebp - 0x50]
push 0x4e970
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 0x18]
call fcn.00018adc
push dword [ebp - 0x54]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00014618
cmp byte [ebp - 5], 0
je 0x4e7ec
lea eax, [ebp - 0x24]
push eax
push 0
lea eax, [ebp - 0x28]
push eax
push 0
push 0
push 4
push 1
mov eax, esi
call fcn.00014538
push eax
call dword [0x1b41d0]
jmp 0x4e7f1
xor eax, eax
mov dword [ebp - 0x28], 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 - 0x14]
call fcn.00014538
push eax
mov eax, dword [ebp - 0x30]
push eax
call dword [0x1b41e0]
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x30]
push eax
push 1
call dword [0x1b41cc]
mov dword [ebx], eax
cmp dword [ebx], 0
jne 0x4e85b
push 0
mov eax, dword [ebp - 0x1c]
push eax
push 0
push 0
push 0x80000004
push 1
mov eax, esi
call fcn.00014538
push eax
call dword [0x1b41d8]
mov dword [ebx], eax
cmp dword [ebx], 0
je 0x4e88c
mov eax, dword [0x1b3e88]
or dword [ebp - 0x34], eax
jmp 0x4e88c
call sub.kernel32.dll_GetLastError_1
mov dword [ebx], eax
mov eax, dword [0x1b3e8c]
or dword [ebp - 0x34], eax
jmp 0x4e88c
call sub.kernel32.dll_GetLastError_1
mov dword [ebx], eax
mov eax, dword [0x1b3e90]
or dword [ebp - 0x34], eax
jmp 0x4e88c
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 0x4e8e4
cmp dword [ebp - 0x24], 0
je 0x4e8af
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_LocalFree_1
xor eax, eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x2c], 0
je 0x4e8c3
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_LocalFree_1
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x1c], 0
je 0x4e8d7
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_LocalFree_1
xor eax, eax
mov dword [ebp - 0x1c], 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 0x4e960
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.0001432c
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.00013c60
lea eax, [ebp - 0x14]
call fcn.00014314
lea eax, [ebp - 0x10]
call fcn.00013c3c
ret