Function at 0x4c340
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], ebx
mov byte [ebp - 5], cl
mov edi, edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x4c627
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [esi], eax
lea eax, [ebp - 0x44]
mov edx, edi
call fcn.00013f70
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x24]
call fcn.0004c0c0
mov eax, dword [ebp - 0x24]
call fcn.00013fa8
test eax, eax
jle 0x4c402
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x24]
call fcn.00027578
mov edx, dword [ebp - 0x48]
lea eax, [ebp - 0x24]
call fcn.00013db0
mov eax, dword [ebp - 0x24]
call fcn.0001416c
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
je 0x4c3cc
or ebx, dword [0x16bf3c]
push 0x104
push 0
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x40]
push eax
push 0
push 0x104
push 0
mov eax, dword [ebp - 0x24]
call fcn.0001416c
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x4c402
test byte [ebp - 0x38], 8
jne 0x4c402
or ebx, dword [0x16bf38]
test ebx, ebx
jne 0x4c5ef
cmp dword [0x16bf48], 0
je 0x4c5e9
lea eax, [ebp - 0x28]
mov edx, 0x800
call fcn.000271f0
mov dword [ebp - 0x1c], 0x800
lea eax, [ebp - 0x10]
mov edx, 0x800
call fcn.000271f0
mov dword [ebp - 0x14], 0x800
lea eax, [ebp - 0xc]
mov edx, 0x800
call fcn.000271f0
xor eax, eax
mov dword [ebp - 0x3c], eax
xor eax, eax
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
call fcn.0001416c
push eax
call dword [0x16bf60]
test eax, eax
je 0x4c57f
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x20]
push eax
push 0
call dword [0x16bf6c]
test eax, eax
je 0x4c570
lea eax, [ebp - 0x4c]
mov edx, dword [ebp - 0x10]
call fcn.00014548
push dword [ebp - 0x4c]
push 0x4c640
lea eax, [ebp - 0x50]
mov edx, dword [ebp - 0x28]
call fcn.00014548
push dword [ebp - 0x50]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00014700
cmp byte [ebp - 5], 0
je 0x4c4f4
lea eax, [ebp - 0x3c]
push eax
push 0
lea eax, [ebp - 0x34]
push eax
push 0
push 0
push 4
push 1
mov eax, edi
call fcn.00014620
push eax
call dword [0x16bf64]
jmp 0x4c4f9
xor eax, eax
mov dword [ebp - 0x34], 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 - 0x18]
call fcn.00014620
push eax
mov eax, dword [ebp - 0xc]
push eax
call dword [0x16bf54]
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 1
call dword [0x16bf5c]
mov dword [esi], eax
cmp dword [esi], 0
jne 0x4c561
push 0
mov eax, dword [ebp - 0x30]
push eax
push 0
push 0
push 0x80000004
push 1
mov eax, edi
call fcn.00014620
push eax
call dword [0x16bf58]
mov dword [esi], eax
cmp dword [esi], 0
je 0x4c58c
or ebx, dword [0x16bf24]
jmp 0x4c58c
call sub.kernel32.dll_GetLastError_1
mov dword [esi], eax
or ebx, dword [0x16bf28]
jmp 0x4c58c
call sub.kernel32.dll_GetLastError_1
mov dword [esi], eax
or ebx, dword [0x16bf2c]
jmp 0x4c58c
call sub.kernel32.dll_GetLastError_1
mov dword [esi], eax
or ebx, dword [0x16bf30]
push 0
call sub.kernel32.dll_SetLastError
cmp dword [ebp - 0x3c], 0
je 0x4c5a2
mov eax, dword [ebp - 0x3c]
push eax
call sub.kernel32.dll_LocalFree_1
cmp dword [ebp - 0x20], 0
je 0x4c5b1
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_LocalFree_1
cmp dword [ebp - 0x30], 0
je 0x4c5c0
mov eax, dword [ebp - 0x30]
push eax
call sub.kernel32.dll_LocalFree_1
lea eax, [ebp - 0x28]
mov edx, 0x800
call fcn.00027218
lea eax, [ebp - 0x10]
mov edx, 0x800
call fcn.00027218
lea eax, [ebp - 0xc]
mov edx, 0x800
call fcn.00027218
jmp 0x4c5ef
or ebx, dword [0x16bf34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c62e
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.00014408
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00013d3c
lea eax, [ebp - 0x24]
call fcn.00013d18
lea eax, [ebp - 0x18]
call fcn.000143f0
ret