Function at 0x4b7100
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 0x4b7155
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 0x4b714d
mov eax, dword [esi]
test eax, eax
je 0x4b713d
mov dword [esp], eax
call fcn.006eb310
mov dword [esp + 4], 0xc
mov dword [esp], esi
call fcn.006eb350
sub dword [ebp - 0x2c], 4
test edi, edi
jne 0x4b7120
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 0x4b7190
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp esi, 0x3ffffffe
ja 0x4b7312
lea eax, [esi + esi]
mov dword [esp], eax
call fcn.006eb360
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 0x4b71c2
cmp esi, dword [ebp - 0x2c]
jae 0x4b71e0
xor eax, eax
mov dword [esp], edi
mov byte [ebp - 0x2c], al
call fcn.006eb310
movzx eax, byte [ebp - 0x2c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea ecx, [ebp - 0x24]
call fcn.00472730
mov esi, 1
xor edx, edx
jmp 0x4b71fb
cmp dword [ebp - 0x2c], esi
lea eax, [esi + 1]
jbe 0x4b7253
mov esi, eax
cmp word [edi + esi*2 - 2], 0
jne 0x4b71f1
lea eax, [edi + edx*2]
lea ecx, [ebp - 0x24]
mov dword [esp], eax
call fcn.004729e0
sub esp, 4
mov dword [esp], 0xc
call fcn.006eb380
lea edx, [ebp - 0x24]
mov ecx, eax
mov dword [ebp - 0x30], eax
mov dword [esp], edx
call fcn.00472920
sub esp, 4
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
je 0x4b7280
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 0x4b71f9
cmp edx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x24]
sete al
test edx, edx
je 0x4b71c4
mov dword [esp], edx
mov byte [ebp - 0x2c], al
call fcn.006eb310
movzx eax, byte [ebp - 0x2c]
jmp 0x4b71c4
mov edx, eax
shr edx, 2
lea eax, [eax + edx + 1]
cmp eax, 0x1fffffff
mov dword [ebp - 0x34], eax
ja 0x4b731b
shl eax, 2
mov dword [esp], eax
call fcn.006eb360
mov edx, eax
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
test eax, eax
jne 0x4b72d0
test ecx, ecx
je 0x4b72c2
mov dword [esp], ecx
mov dword [ebp - 0x38], edx
call fcn.006eb310
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 0x4b723d
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 0x4b72b1
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4b7302
mov dword [esp], eax
call fcn.006eb310
mov dword [esp], edi
call fcn.006eb310
mov dword [esp], ebx
call fcn.005d7530
call fcn.006ebc70
mov ebx, eax
jmp 0x4b7302
call fcn.006ebc70
mov ebx, eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], 0xc
mov dword [esp], eax
call fcn.006eb350
jmp 0x4b72f3