Function at 0x48fa7f
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8760
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x770
mov dword [ebp - 0x77c], ecx
lea eax, [ebp - 0x410]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea ecx, [ebp - 0x410]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
movsx eax, byte [edx]
test eax, eax
je 0x48fd48
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 2
je 0x48fafb
cmp dword [ebp - 0x414], 3
je 0x48fafb
cmp dword [ebp - 0x414], 6
jne 0x48fd2d
mov dword [ebp - 0x520], 0
mov byte [ebp - 0x51c], 0
push 0x104
lea edx, [ebp - 0x750]
push edx
push 0
push 0
push 0
push 0x104
lea eax, [ebp - 0x51c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x48fb84
push 4
push 0x52fdbc
lea edx, [ebp - 0x750]
push edx
call fcn.004acde0
add esp, 0xc
test eax, eax
jne 0x48fb5e
mov dword [ebp - 0x520], 2
jmp 0x48fb82
push 3
push 0x52fdc4
lea eax, [ebp - 0x750]
push eax
call fcn.004acde0
add esp, 0xc
test eax, eax
jne 0x48fb82
mov dword [ebp - 0x520], 1
jmp 0x48fbdd
mov dword [ebp - 0x520], 0
lea ecx, [ebp - 0x754]
call fcn.00404dc0
mov dword [ebp - 4], 0
push 0xefa3
lea ecx, [ebp - 0x754]
call fcn.004d46c7
lea ecx, [ebp - 0x754]
call fcn.00447470
push eax
lea ecx, [ebp - 0x750]
push ecx
call fcn.004aa670
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x754]
call fcn.004d37cb
movsx edx, byte [ebp - 0x51c]
test edx, edx
jne 0x48fc37
lea ecx, [ebp - 0x758]
call fcn.00404dc0
mov dword [ebp - 4], 1
push 0xefa4
lea ecx, [ebp - 0x758]
call fcn.004d46c7
lea ecx, [ebp - 0x758]
call fcn.00447470
push eax
lea eax, [ebp - 0x51c]
push eax
call fcn.004aa670
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x758]
call fcn.004d37cb
mov ecx, dword [ebp - 0x10]
mov dl, byte [ecx]
mov byte [ebp - 0x418], dl
movsx eax, byte [ebp - 0x418]
push eax
call fcn.004aaac7
add esp, 4
mov byte [ebp - 0x418], al
mov ecx, dword [ebp + 8]
and ecx, 0xff
test ecx, ecx
je 0x48fc80
mov dl, byte [ebp - 0x418]
push edx
mov ecx, dword [ebp - 0x77c]
call fcn.00490621
cmp eax, 0xffffffff
jne 0x48fd2d
lea eax, [ebp - 0x750]
push eax
movsx ecx, byte [ebp - 0x418]
push ecx
lea edx, [ebp - 0x51c]
push edx
push str.__s___c:__:__s
lea eax, [ebp - 0x64c]
push eax
call fcn.004a9b8d
add esp, 0x14
xor ecx, ecx
cmp dword [ebp - 0x414], 2
sete cl
push ecx
lea edx, [ebp - 0x64c]
push edx
mov eax, dword [ebp - 0x520]
push eax
mov cl, byte [ebp - 0x418]
push ecx
lea ecx, [ebp - 0x778]
call fcn.00464700
mov dword [ebp - 4], 2
lea edx, [ebp - 0x778]
push edx
lea ecx, [ebp - 0x760]
call fcn.004910c0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x760]
push eax
mov ecx, dword [ebp - 0x77c]
add ecx, 0xf8
call fcn.00490ee0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x760]
call fcn.00491180
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x778]
call fcn.00464782
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004a9710
add esp, 4
mov edx, dword [ebp - 0x10]
lea eax, [edx + eax + 1]
mov dword [ebp - 0x10], eax
jmp 0x48fabe
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4