Function at 0x4bcdc0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [ebp + 8]
mov esi, dword [ebx + 4]
test esi, esi
je 0x4bce15
lea eax, [esi*4 - 4]
mov dword [ebp - 0x2c], eax
lea esi, [esi]
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x2c]
sub esi, 1
mov edi, dword [eax + ecx]
test edi, edi
je 0x4bce0d
mov eax, dword [edi]
test eax, eax
je 0x4bcdfd
mov dword [esp], eax
call fcn.006febd0
mov dword [esp + 4], 0xc
mov dword [esp], edi
call fcn.006fec10
sub dword [ebp - 0x2c], 4
test esi, esi
jne 0x4bcde0
mov eax, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebx + 4], 0
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x2c], eax
call eax
mov esi, eax
sub esp, 8
xor eax, eax
test esi, esi
jne 0x4bce50
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp esi, 0x3ffffffe
ja 0x4bcfe9
lea eax, [esi + esi]
mov dword [esp], eax
call fcn.006fec20
mov dword [esp], esi
mov edi, eax
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
call eax
sub esp, 8
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x4bce84
cmp esi, dword [ebp - 0x2c]
jae 0x4bcea0
xor eax, eax
mov dword [esp], edi
mov byte [ebp - 0x2c], al
call fcn.006febd0
movzx eax, byte [ebp - 0x2c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea ecx, [ebp - 0x24]
call fcn.00473f00
mov esi, 1
xor edx, edx
jmp 0x4bcebb
cmp dword [ebp - 0x2c], esi
lea eax, [esi + 1]
jbe 0x4bcf19
mov esi, eax
cmp word [edi + esi*2 - 2], 0
jne 0x4bceb1
lea eax, [edi + edx*2]
lea ecx, [ebp - 0x24]
mov dword [esp], eax
call fcn.004741d0
sub esp, 4
mov dword [esp], 0xc
call fcn.006fec40
lea edx, [ebp - 0x24]
mov ecx, eax
mov dword [ebp - 0x34], eax
mov dword [esp], edx
call fcn.00474110
mov eax, dword [ebx + 4]
sub esp, 4
cmp eax, dword [ebx + 8]
lea edx, [eax + 1]
mov dword [ebp - 0x30], edx
je 0x4bcf40
mov edx, dword [ebx]
mov ecx, dword [ebp - 0x34]
cmp dword [ebp - 0x2c], esi
mov dword [edx + eax*4], ecx
mov eax, dword [ebp - 0x30]
mov edx, esi
mov dword [ebx + 4], eax
lea eax, [esi + 1]
ja 0x4bceb9
cmp edx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x24]
sete al
test edx, edx
je 0x4bce86
mov dword [esp], edx
mov byte [ebp - 0x2c], al
call fcn.006febd0
movzx eax, byte [ebp - 0x2c]
jmp 0x4bce86
shr eax, 2
add eax, dword [ebp - 0x30]
cmp eax, 0x1fffffff
mov dword [ebp - 0x30], eax
ja 0x4bcfac
shl eax, 2
mov dword [esp], eax
call fcn.006fec20
mov edx, eax
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
test eax, eax
jne 0x4bcf7a
test ecx, ecx
jne 0x4bcf99
mov ecx, dword [ebp - 0x30]
mov dword [ebx], edx
mov dword [ebx + 8], ecx
lea ecx, [eax + 1]
mov dword [ebp - 0x30], ecx
jmp 0x4bcf03
shl eax, 2
mov dword [esp + 4], ecx
mov dword [esp], edx
mov dword [esp + 8], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
mov dword [esp], ecx
mov dword [ebp - 0x38], edx
call fcn.006febd0
mov eax, dword [ebx + 4]
mov edx, dword [ebp - 0x38]
jmp 0x4bcf6a
call fcn.006ff430
mov ebx, eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], 0xc
mov dword [esp], eax
call fcn.006fec10
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4bcfd5
mov dword [esp], eax
call fcn.006febd0
mov dword [esp], edi
call fcn.006febd0
mov dword [esp], ebx
call fcn.005e6130
mov ebx, eax
jmp 0x4bcfc6
call fcn.006ff430
mov ebx, eax
jmp 0x4bcfd5