Function at 0x4b5ad0
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 edi, dword [ebx + 4]
test edi, edi
je 0x4b5b25
lea eax, [edi*4 - 4]
mov dword [ebp - 0x2c], eax
lea esi, [esi]
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x2c]
sub edi, 1
mov esi, dword [eax + ecx]
test esi, esi
je 0x4b5b1d
mov eax, dword [esi]
test eax, eax
je 0x4b5b0d
mov dword [esp], eax
call fcn.006e9860
mov dword [esp + 4], 0xc
mov dword [esp], esi
call fcn.006e98a0
sub dword [ebp - 0x2c], 4
test edi, edi
jne 0x4b5af0
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 0x4b5b60
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp esi, 0x3ffffffe
ja 0x4b5ce2
lea eax, [esi + esi]
mov dword [esp], eax
call fcn.006e98b0
mov dword [esp], esi
mov edi, eax
mov dword [esp + 4], eax
call dword [ebp - 0x2c]
sub esp, 8
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x4b5b92
cmp esi, dword [ebp - 0x2c]
jae 0x4b5bb0
xor eax, eax
mov dword [esp], edi
mov byte [ebp - 0x2c], al
call fcn.006e9860
movzx eax, byte [ebp - 0x2c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea ecx, [ebp - 0x24]
call fcn.00472910
mov esi, 1
xor edx, edx
jmp 0x4b5bcb
cmp dword [ebp - 0x2c], esi
lea eax, [esi + 1]
jbe 0x4b5c23
mov esi, eax
cmp word [edi + esi*2 - 2], 0
jne 0x4b5bc1
lea eax, [edi + edx*2]
lea ecx, [ebp - 0x24]
mov dword [esp], eax
call fcn.00472ad0
sub esp, 4
mov dword [esp], 0xc
call fcn.006e98d0
lea edx, [ebp - 0x24]
mov ecx, eax
mov dword [ebp - 0x30], eax
mov dword [esp], edx
call fcn.00472a10
sub esp, 4
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
je 0x4b5c50
mov edx, dword [ebx]
mov ecx, dword [ebp - 0x30]
mov dword [edx + eax*4], ecx
add eax, 1
cmp dword [ebp - 0x2c], esi
mov dword [ebx + 4], eax
mov edx, esi
lea eax, [esi + 1]
ja 0x4b5bc9
cmp edx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x24]
sete al
test edx, edx
je 0x4b5b94
mov dword [esp], edx
mov byte [ebp - 0x2c], al
call fcn.006e9860
movzx eax, byte [ebp - 0x2c]
jmp 0x4b5b94
mov edx, eax
shr edx, 2
lea eax, [eax + edx + 1]
cmp eax, 0x1fffffff
mov dword [ebp - 0x34], eax
ja 0x4b5ceb
shl eax, 2
mov dword [esp], eax
call fcn.006e98b0
mov edx, eax
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
test eax, eax
jne 0x4b5ca0
test ecx, ecx
je 0x4b5c92
mov dword [esp], ecx
mov dword [ebp - 0x38], edx
call fcn.006e9860
mov eax, dword [ebx + 4]
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov dword [ebx], edx
mov dword [ebx + 8], ecx
jmp 0x4b5c0d
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 ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
jmp 0x4b5c81
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4b5cd2
mov dword [esp], eax
call fcn.006e9860
mov dword [esp], edi
call fcn.006e9860
mov dword [esp], ebx
call fcn.005d5ce0
call fcn.006ea1c0
mov ebx, eax
jmp 0x4b5cd2
call fcn.006ea1c0
mov ebx, eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], 0xc
mov dword [esp], eax
call fcn.006e98a0
jmp 0x4b5cc3